[前][次][番号順一覧][スレッド一覧]

ruby-changes:26215

From: drbrain <ko1@a...>
Date: Sat, 8 Dec 2012 15:02:04 +0900 (JST)
Subject: [ruby-changes:26215] drbrain:r38272 (trunk): * lib/rubygems/commands/cleanup_command.rb: Skip default gems when

drbrain	2012-12-08 15:01:49 +0900 (Sat, 08 Dec 2012)

  New Revision: 38272

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38272

  Log:
    * lib/rubygems/commands/cleanup_command.rb:  Skip default gems when
      cleaning up.
    * test/rubygems/test_gem_commands_cleanup_command.rb:  Test for above.
    
    * lib/rubygems/commands/query_command.rb:  Fixed listing remote gems.
    
    * lib/rubygems/dependency_installer.rb:  Ignore non-files when looking
      for local gems.
    * test/rubygems/test_gem_dependency_installer.rb:  Test for above.
    
    * lib/rubygems/uninstaller.rb:  The user must confirm uninstalling gems
      that have dependencies.
    * test/rubygems/test_gem_uninstaller.rb:  Test for above.
    
    * lib/rubygems.rb (module Gem):  Updated version.
    
    * test/rubygems/*.pem:  Updated to run in FIPS mode.
    * test/rubygems/test_gem_security.rb:  ditto.
    * test/rubygems/test_gem_security_signer.rb:  ditto.

  Modified files:
    trunk/ChangeLog
    trunk/lib/rubygems/commands/cleanup_command.rb
    trunk/lib/rubygems/commands/query_command.rb
    trunk/lib/rubygems/dependency_installer.rb
    trunk/lib/rubygems/uninstaller.rb
    trunk/lib/rubygems.rb
    trunk/test/rubygems/alternate_cert.pem
    trunk/test/rubygems/alternate_cert_32.pem
    trunk/test/rubygems/alternate_key.pem
    trunk/test/rubygems/child_cert.pem
    trunk/test/rubygems/child_cert_32.pem
    trunk/test/rubygems/child_key.pem
    trunk/test/rubygems/expired_cert.pem
    trunk/test/rubygems/future_cert.pem
    trunk/test/rubygems/future_cert_32.pem
    trunk/test/rubygems/grandchild_cert.pem
    trunk/test/rubygems/grandchild_cert_32.pem
    trunk/test/rubygems/grandchild_key.pem
    trunk/test/rubygems/invalid_issuer_cert.pem
    trunk/test/rubygems/invalid_issuer_cert_32.pem
    trunk/test/rubygems/invalid_key.pem
    trunk/test/rubygems/invalid_signer_cert.pem
    trunk/test/rubygems/invalid_signer_cert_32.pem
    trunk/test/rubygems/invalidchild_cert.pem
    trunk/test/rubygems/invalidchild_cert_32.pem
    trunk/test/rubygems/invalidchild_key.pem
    trunk/test/rubygems/private_key.pem
    trunk/test/rubygems/public_cert.pem
    trunk/test/rubygems/public_cert_32.pem
    trunk/test/rubygems/public_key.pem
    trunk/test/rubygems/test_gem_commands_cleanup_command.rb
    trunk/test/rubygems/test_gem_dependency_installer.rb
    trunk/test/rubygems/test_gem_security.rb
    trunk/test/rubygems/test_gem_security_signer.rb
    trunk/test/rubygems/test_gem_uninstaller.rb
    trunk/test/rubygems/wrong_key_cert.pem
    trunk/test/rubygems/wrong_key_cert_32.pem

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38271)
+++ ChangeLog	(revision 38272)
@@ -1,3 +1,25 @@
+Sat Dec  8 15:01:35 2012  Eric Hodel  <drbrain@s...>
+
+	* lib/rubygems/commands/cleanup_command.rb:  Skip default gems when
+	  cleaning up.
+	* test/rubygems/test_gem_commands_cleanup_command.rb:  Test for above.
+
+	* lib/rubygems/commands/query_command.rb:  Fixed listing remote gems.
+
+	* lib/rubygems/dependency_installer.rb:  Ignore non-files when looking
+	  for local gems.
+	* test/rubygems/test_gem_dependency_installer.rb:  Test for above.
+
+	* lib/rubygems/uninstaller.rb:  The user must confirm uninstalling gems
+	  that have dependencies.
+	* test/rubygems/test_gem_uninstaller.rb:  Test for above.
+
+	* lib/rubygems.rb (module Gem):  Updated version.
+
+	* test/rubygems/*.pem:  Updated to run in FIPS mode.
+	* test/rubygems/test_gem_security.rb:  ditto.
+	* test/rubygems/test_gem_security_signer.rb:  ditto.
+
 Sat Dec  8 12:34:01 2012  Shugo Maeda  <shugo@r...>
 
 	* vm_insnhelper.c (vm_search_normal_superclass): super in a
Index: lib/rubygems/dependency_installer.rb
===================================================================
--- lib/rubygems/dependency_installer.rb	(revision 38271)
+++ lib/rubygems/dependency_installer.rb	(revision 38272)
@@ -33,6 +33,7 @@
     :prerelease          => false,
     :security_policy     => nil, # HACK NoSecurity requires OpenSSL. AlmostNo? Low?
     :wrappers            => true,
+    :build_args          => nil,
     :build_docs_in_background => false,
   }.freeze
 
@@ -53,6 +54,7 @@
   # :security_policy:: See Gem::Installer::new and Gem::Security.
   # :user_install:: See Gem::Installer.new
   # :wrappers:: See Gem::Installer::new
+  # :build_args:: See Gem::Installer::new
 
   def initialize(options = {})
     if options[:install_dir] then
@@ -79,6 +81,7 @@
     @security_policy     = options[:security_policy]
     @user_install        = options[:user_install]
     @wrappers            = options[:wrappers]
+    @build_args          = options[:build_args]
     @build_docs_in_background = options[:build_docs_in_background]
 
     # Indicates that we should not try to update any deps unless
@@ -257,7 +260,7 @@
     set = Gem::AvailableSet.new
 
     if consider_local?
-      if File.exists? gem_name
+      if File.file? gem_name then
         src = Gem::Source::SpecificFile.new(gem_name)
         set.add src.spec, src
       else
@@ -353,7 +356,8 @@
                                 :install_dir         => @install_dir,
                                 :security_policy     => @security_policy,
                                 :user_install        => @user_install,
-                                :wrappers            => @wrappers
+                                :wrappers            => @wrappers,
+                                :build_args          => @build_args
 
       spec = inst.install
 
Index: lib/rubygems/commands/cleanup_command.rb
===================================================================
--- lib/rubygems/commands/cleanup_command.rb	(revision 38271)
+++ lib/rubygems/commands/cleanup_command.rb	(revision 38272)
@@ -47,16 +47,17 @@
       end
     end
 
-    gems_to_cleanup = unless options[:args].empty? then
-                        options[:args].map do |gem_name|
-                          Gem::Specification.find_all_by_name gem_name
-                        end.flatten
-                      else
-                        Gem::Specification.to_a
-                      end
+    candidate_gems = unless options[:args].empty? then
+                       options[:args].map do |gem_name|
+                         Gem::Specification.find_all_by_name gem_name
+                       end.flatten
+                     else
+                       Gem::Specification.to_a
+                     end
 
-    gems_to_cleanup = gems_to_cleanup.select { |spec|
-      primary_gems[spec.name].version != spec.version
+    gems_to_cleanup = candidate_gems.select { |spec|
+      !spec.default_gem? and
+        primary_gems[spec.name].version != spec.version
     }
 
     full = Gem::DependencyList.from_specs
@@ -102,6 +103,14 @@
     end
 
     say "Clean Up Complete"
+
+    if Gem.configuration.really_verbose then
+      skipped = candidate_gems.
+        select { |spec| spec.default_gem? }.
+        map { |spec| spec.full_name}
+
+      say "Skipped default gems: #{skipped.join ', '}"
+    end
   end
 
 end
Index: lib/rubygems/commands/query_command.rb
===================================================================
--- lib/rubygems/commands/query_command.rb	(revision 38271)
+++ lib/rubygems/commands/query_command.rb	(revision 38272)
@@ -132,8 +132,8 @@
       if options[:name].source.empty?
         spec_tuples = fetcher.detect(type) { true }
       else
-        spec_tuples = fetcher.detect(type) do |gem_name, ver, plat|
-          options[:name] === gem_name
+        spec_tuples = fetcher.detect(type) do |name_tuple|
+          options[:name] === name_tuple.name
         end
       end
 
Index: lib/rubygems/uninstaller.rb
===================================================================
--- lib/rubygems/uninstaller.rb	(revision 38271)
+++ lib/rubygems/uninstaller.rb	(revision 38272)
@@ -296,7 +296,7 @@
 
     msg << 'If you remove this gem, these dependencies will not be met.'
     msg << 'Continue with Uninstall?'
-    return ask_yes_no(msg.join("\n"), true)
+    return ask_yes_no(msg.join("\n"), false)
   end
 
   def formatted_program_filename(filename)
Index: lib/rubygems.rb
===================================================================
--- lib/rubygems.rb	(revision 38271)
+++ lib/rubygems.rb	(revision 38272)
@@ -98,7 +98,7 @@
 require 'rbconfig'
 
 module Gem
-  VERSION = '2.0.0.preview2'
+  VERSION = '2.0.0.preview2.1'
 end
 
 # Must be first since it unloads the prelude from 1.9.2
Index: test/rubygems/invalidchild_key.pem
===================================================================
--- test/rubygems/invalidchild_key.pem	(revision 38271)
+++ test/rubygems/invalidchild_key.pem	(revision 38272)
@@ -1,9 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIBOgIBAAJBAL60XLp5UqlKYdbpB5kbUSBu3PaZw3LBS9Rm9dBUAyH/upbJaQps
-cBd4B4XDpmFHeMLoywR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QErGJjZrUq
+sujNj5RBAoGBAPgdiY+6B7WvmLlCBCwI4PXjgRQ/6A1Ycgvi1LdSQzccSHddogNI
+tWKa0pIrYyH7y7jB/UzstFSnsOXAf4H6Xt70VUrFPq1/dRRw1CtSLA1sFspBAD8v
+aGl9R0XqWOk1t60mfgES9b4LJu46cTm7UMfyC7EbWkqHYWqf15umRgwrAoGBAOz4
+nZGqBVBW/ERDs+Imf9NcwDeuwllQ0S9ZBPHF///SQ4Rscz2Bl8GhjhTHldLNJg9k
+HjP8W2BOPas66K3WM+WC3AiGrdJfs6Ju3r27X4wA0hnNc6bcoRaoSNRaqThSkgCH
+l34l7yrB1gwpa5HlIfYXjHfJ7coX7WRMQK7wmVsVAoGBAJ/Y97z/DuSAgpYn7+Qm
+vDfuIETZfzjJ2H/L3VtVxjQFJrKwQiZ3e1RRhoPhK/bC79bSM8yRWwSHHLKIOB2X
+HfPp2eFX/i9sxBMtNaPLRtJG5s/a3LvYYR5FNdvXRPzKPNFy0Q8EFgofyS8Fu9iD
+02FdkSbDBoKpgZtd61w93TcNAoGBAKtM4SKeRC8aYku6oTtW10pkHvNhmk5UVJMk
+h6V6mx9D0NjWSMvqdVhcv8eXq19yOxQfLJIp16gbhwrTj8WyNVuwp/xl1xtfYQyH
+lu6Sl3QuV7KdSQATN0OYrOUNEIyNa8uEOOfQ5j4DVwb9niwd9dnelgU17HYNq+a4
+FH4hoMotAoGBAJk/9+RPAdxqJsr/oVp9E4wU9ffpZ2Lr0faN7/WqBFPPhhFOMWu2
+zj8fcRaP/9Wv9g2xK/GfCKhrX8FMfq/NMkZsNx6V3W0M8Zbarp9ZvA4Sj0OvsZAO
+J1NQjkvFjMCE0A29jtjY1zRmLzoC+Ds7Ola8IOKvAN8SM1X/CC6bOgGz
 -----END RSA PRIVATE KEY-----
Index: test/rubygems/test_gem_dependency_installer.rb
===================================================================
--- test/rubygems/test_gem_dependency_installer.rb	(revision 38271)
+++ test/rubygems/test_gem_dependency_installer.rb	(revision 38272)
@@ -466,6 +466,22 @@
     assert_equal %w[b-1], inst.installed_gems.map { |s| s.full_name }
   end
 
+  def test_install_build_args
+    util_setup_gems
+
+    FileUtils.mv @a1_gem, @tempdir
+    inst = nil
+    build_args = %w[--a --b="c"]
+
+    Dir.chdir @tempdir do
+      inst = Gem::DependencyInstaller.new(
+        :build_args => build_args)
+      inst.install 'a'
+    end
+
+    assert_equal build_args.join("\n"), File.read(inst.installed_gems.first.build_info_file).strip
+  end
+
   def test_install_ignore_dependencies
     util_setup_gems
 
@@ -778,6 +794,20 @@
     assert_equal Gem::Source.new(@gem_repo), s.source
   end
 
+  def test_find_spec_by_name_and_version_directory
+    Dir.mkdir 'rdoc'
+
+    inst = Gem::DependencyInstaller.new
+
+    e = assert_raises Gem::SpecificGemNotFoundException do
+      inst.find_spec_by_name_and_version 'rdoc'
+    end
+
+    assert_equal "Could not find a valid gem 'rdoc' (>= 0) " +
+                 "locally or in a repository",
+                 e.message
+  end
+
   def test_find_gems_with_sources_local
     util_setup_gems
 
Index: test/rubygems/child_cert_32.pem
===================================================================
--- test/rubygems/child_cert_32.pem	(revision 38271)
+++ test/rubygems/child_cert_32.pem	(revision 38272)
@@ -1,9 +1,18 @@
 -----BEGIN CERTIFICATE-----
-MIIBQzCB7qADAgECAgEBMA0GCSqGSIb3DQEBBQUAMCoxDzANBgNVBAMMBm5vYm9k
-eTEXMBUGCgmSJomT8ixkARkWB2V4YW1wbGUwIBcNMTIwMTEzMDAxNTE4WhgPMjAz
-ODAxMTkwMzE0MDdaMCkxDjAMBgNVBAMMBWNoaWxkMRcwFQYKCZImiZPyLGQBGRYH
-ZXhhbXBsZTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQC93Mml1yQmsUDalFT1PH4z
-z8Al8ki969L/NHUWdkG6DuM0krWiWPBkO+Moj+6NMH2TrGWyHPfYv5zQ3zn9ai+d
-AgMBAAEwDQYJKoZIhvcNAQEFBQADQQB7JhifNXK4PTYVZv5NYmqyi4ze7h2sxxNl
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hEJkJrzRu3Q0yYIPJaJ+mY9vp
 -----END CERTIFICATE-----
Index: test/rubygems/grandchild_key.pem
===================================================================
--- test/rubygems/grandchild_key.pem	(revision 38271)
+++ test/rubygems/grandchild_key.pem	(revision 38272)
@@ -1,9 +1,27 @@
 -----BEGIN RSA PRIVATE KEY-----
-MIIBOgIBAAJBANdq9Op4fT5e0EzNl3GjwYublS6sjPAX4p8XPfwCXxL7xgosf0xT
-9GPRN6lcU3NVg7D3UKk2TalY2/IYt1utuOkCAwEAAQJBAKpS7Td+8Tgha31uiTHX
-Eq854ui2kfE8UXkMvXvGvDma2W40lkQKVLMJO0Y9zfJ+8E4+70nS0Eny+3feErLo
-2aECIQDw9+BSwRVBaEIwGUD4wg8ganZvMBkmU+o+1jUKjbUgrQIhAOTbDeS1NyB5
-Zm2ViTKOMadvzwUZax86TZ1rwfMDIbStAiA9eB4DPjn722q29lo6mtZdAIuBxZVE
-z7c7nE0fihKgaQIgfaDiV5JC2MjLuYxE7EOybj+qXRo++719rdThew1VC2ECIB5f
-4Xzx62LvumYHJ7U56PHbAmSgAqEIixoDc+Bw9pE+
+MIIEpgIBAAKCAQEAkfgyEbzcRpXvpNA0s75R8gOVk7ENEPX5uXUElbzHbVEmHkC/
+NFsWZXV0vxGFfZrrnEkTY2kDaMMkfZX9rriRIvsZpxyqrdX87QfQTZ1ktDoytVnd
++gw9A6AXB6PR7uoPymsof/lZYJ8BWP9fIU39nogiptFqsgkpOtKSFjJfMILkcMAe
+BPs2B5HV5l4oLrpJ7Ns/0vazCXGakTByAXNKBagJWR43gh+RUQWF6Uh04VQTQ7EN
+GWI83088SKAPtCCcgKxrROHI025S7o7vEfDEqEn+gtu+4ndaLuRp+2AmF3YK8dED
+iLXrrvEvG1r4+gIB/6tSMUfkkJtBleZrDoIAgQIDAQABAoIBAQCFbg4+vpfQghBM
+ZPI399oqUvJwziA2h9Kdn4TwZ18Y41vnvaHKdxUS63orihWvSmTjOL1bWsv+AJuj
+nO8GvroU8tlxM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AvFQXMaWywOBe3TUz7SmLIxMjWpXKiX5YIFkS
+tOiEEmET4ZYS87flEmldnmeDFLHHbMLOw5S0dJa4PyFRn6j9su8d8mWw
 -----END RSA PRIVATE KEY-----
Index: test/rubygems/test_gem_uninstaller.rb
===================================================================
--- test/rubygems/test_gem_uninstaller.rb	(revision 38271)
+++ test/rubygems/test_gem_uninstaller.rb	(revision 38272)
@@ -25,6 +25,22 @@
     assert_match %r|/foo/bar$|, uninstaller.instance_variable_get(:@gem_home)
   end
 
+  def test_ask_if_ok
+    c = quick_spec 'c'
+
+    uninstaller = Gem::Uninstaller.new nil
+
+    ok = :junk
+
+    ui = Gem::MockGemUi.new "\n"
+
+    use_ui ui do
+      ok = uninstaller.ask_if_ok c
+    end
+
+    refute ok
+  end
+
   def test_remove_all
     uninstaller = Gem::Uninstaller.new nil
 
Index: test/rubygems/invalid_signer_cert.pem
===================================================================
--- test/rubygems/invalid_signer_cert.pem	(revision 38271)
+++ test/rubygems/invalid_signer_cert.pem	(revision 38272)
@@ -1,9 +1,18 @@
 -----BEGIN CERTIFICATE-----
-MIIBRjCB8aADAgECAgEBMA0GCSqGSIb3DQEBBQUAMCsxEDAOBgNVBAMMB2ludmFs
-aWQxFzAVBgoJkiaJk/IsZAEZFgdleGFtcGxlMCAXDTEyMDExMzIyNDE1NVoYDzk5
-OTkxMjMxMjM1OTU5WjArMRAwDgYDVQQDDAdpbnZhbGlkMRcwFQYKCZImiZPyLGQB
-GRYHZXhhbXBsZTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDTFjcNUw8RHSM/+LOi
-puA1Hd2r4x+P9BW+t/5ylkm2nCspL2pWAlVtzd8Z4IYK9ZliA9X6IjHRmZYkF3wp
-ZcrdAgMBAAEwDQYJKoZIhvcNAQEFBQADQQBAT7aP57Q3HJW4EfPAl0anJPpAI8g1
-yWGhg/vUIUpBDImJ+jRJU9AuRGRPKWIRonOon+LV9sammaM4GWsU1FLb
+MIIC8TCCAdmgAwIBAgIBDDANBgkqhkiG9w0BAQUFADArMRAwDgYDVQQDDAdpbnZh
+bGlkMRcwFQYKCZImiZPyLGQBGRYHZXhhbXBsZTAgFw0xMjEyMDgwMDAwMDBaGA85
+OTk5MTIzMTIzNTk1OVowKzEQMA4GA1UEAwwHaW52YWxpZDEXMBUGCgmSJomT8ixk
+ARkWB2V4YW1wbGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDNMnDk
+oUjigxoQ5T2d/iQFsKeygdqbP1ZS4SLGZdLgB8wgBjzSNSOOoJpWtYOxoeNvX2Hi
+dFYHkU8SP60VjSdB19iPY4WiagJIjqleUZOkZCb/9JVNVUrtSAYykZleql4jXgVg
+PHbhDzXXesyl+1KCnGIJhtwTA7hMuuwKllIGTo3PVlJ3eovpsFnIjLjarpevbzLw
+eYKOHP64LadWNz4SwyK4XmD/bPgc2tTDadBVBZaz5y+YM2U7D/yF9ru5BdwhISgm
+V2T19KGXP6W6iEtjrkPU+n7ekrUsAPvSIQMgnifWxsgWCu/EsoknxCyshim5O+Ep
+kQKo6TdjyV96P4JPAgMBAAGjHjAcMBoGA1UdEQQTMBGBD2ludmFsaWRAZXhhbXBs
+ZTANBgkqhkiG9w0BAQUFAAOCAQEAd0sGT1z4eppqGMxGdx5ZjXRbgKJZNwz2jHGJ
+CbceA4slPLQOwLXKscXm7QkhMg7L0SJWX2WgLbY/Re5jrexgXnM/fxiIW/wLo5Bv
+V+ajcbZt0uC5scX9DSpwUftlQiMIARbwWb5Lg4UDzT3nB44BgrUIx/YC2084BSsb
+Lrr3YNW4ZGyxN6qVIILCemg3YpsmFspQtsCdRUsn/5Hjc0J05qA6XDSNXRZYYGA2
+tstMcYuwmhp6WjIEWU0i6t84ZKzOrNm2qwjhT6nYYJvvKQtexa1W/WTM5IHKcxiA
+oWnrRCZWt33UtHF4//zjXSJm0S8gb8FDRicxS5CbDiVe20GDkA==
 -----END CERTIFICATE-----
Index: test/rubygems/grandchild_cert.pem
===================================================================
--- test/rub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088SKAPtCCcgKxr
+ROHI025S7o7vEfDEqEn+gtu+4ndaLuRp+2AmF3YK8dEDiLXrrvEvG1r4+gIB/6tS
+MUfkkJtBleZrDoIAgQIDAQABoyEwHzAdBgNVHREEFjAUgRJncmFuZGNoaWxkQGV4
+YW1wbGUwDQYJKoZIhvcNAQEFBQADggEBAFNdoYo7A9eThXpNy1buoVpeVR19VpEG
+nvzen8ipQ7uGQ/62aBvJlqgj2/xFKWidtMNH8769SY94ePembHWABFvVBZpMU5ZO
+LYuC5rUSpJcxfw6T5eLytYHOAr56kWjQB6AVF4mQ5IavQ0MoHsm1RZ7L9amNQY1J
+zFIJpN4/T4wJ/+M58zCUFKg0aC3uUcYRgc44xhxmzceUoI3H8Bx1gqfuVM9KleLA
+Bi/BdD6GTQ16stbQP/fso5kjwAUr2x0NttwkzO0Sd7y3G7RXCmJux3zQrdu+3HoF
+edxj9I39tX+v8AbCFl2vO162ZGwLGewdk1FImb28c96t3B17jL1U/H4=
 -----END CERTIFICATE-----
Index: test/rubygems/invalid_signer_cert_32.pem
===================================================================
--- test/rubygems/invalid_signer_cert_32.pem	(revision 38271)
+++ test/rubygems/invalid_signer_cert_32.pem	(revision 38272)
@@ -1,9 +1,18 @@
 -----BEGIN CERTIFICATE-----
-MIIBRjCB8aADAgECAgEBMA0GCSqGSIb3DQEBBQUAMCsxEDAOBgNVBAMMB2ludmFs
-aWQxFzAVBgoJkiaJk/IsZAEZFgdleGFtcGxlMCAXDTEyMDExMzIyNDE1NVoYDzIw
-MzgwMTE5MDMxNDA3WjArMRAwDgYDVQQDDAdpbnZhbGlkMRcwFQYKCZImiZPyLGQB
-GRYHZXhhbXBsZTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDTFjcNUw8RHSM/+LOi
-puA1Hd2r4x+P9BW+t/5ylkm2nCspL2pWAlVtzd8Z4IYK9ZliA9X6IjHRmZYkF3wp
-ZcrdAgMBAAEwDQYJKoZIhvcNAQEFBQADQQAXkBGQZ4sr9p2uF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+Tr1zrCDc728aPjN4Qh76xUy/hyCcSgXalhz1LMHgv0VDx/M=
 -----END CERTIFICATE-----
Index: test/rubygems/test_gem_commands_cleanup_command.rb
===================================================================
-- (... truncated)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]