aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/commands
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-04 21:54:58 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-04 21:54:58 +0000
commit091c24d51b962745bf887a729c81e847b257dc11 (patch)
tree0a8cd1085f63ffa64eff0d3c4da0d5a449e0c5a1 /lib/rubygems/commands
parent0454c0a2818ffc1df72e0672e4e272486b2ba536 (diff)
downloadruby-091c24d51b962745bf887a729c81e847b257dc11.tar.gz
* lib/rubygems: Update to RubyGems 2.0.3
* test/rubygems: Tests for the above. * NEWS: Added RubyGems 2.0.3 note. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r--lib/rubygems/commands/cert_command.rb4
-rw-r--r--lib/rubygems/commands/list_command.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/commands/cert_command.rb b/lib/rubygems/commands/cert_command.rb
index 13e5e2c37c..5a9320f9c4 100644
--- a/lib/rubygems/commands/cert_command.rb
+++ b/lib/rubygems/commands/cert_command.rb
@@ -180,7 +180,7 @@ For further reading on signing gems see `ri Gem::Security`.
end
def load_default_cert
- cert_file = File.join Gem.user_home, 'gem-public_cert.pem'
+ cert_file = File.join Gem.default_cert_path
cert = File.read cert_file
options[:issuer_cert] = OpenSSL::X509::Certificate.new cert
rescue Errno::ENOENT
@@ -196,7 +196,7 @@ For further reading on signing gems see `ri Gem::Security`.
end
def load_default_key
- key_file = File.join Gem.user_home, 'gem-private_key.pem'
+ key_file = File.join Gem.default_key_path
key = File.read key_file
options[:key] = OpenSSL::PKey::RSA.new key
rescue Errno::ENOENT
diff --git a/lib/rubygems/commands/list_command.rb b/lib/rubygems/commands/list_command.rb
index 71b8a93fad..d9b7a9535e 100644
--- a/lib/rubygems/commands/list_command.rb
+++ b/lib/rubygems/commands/list_command.rb
@@ -3,7 +3,7 @@ require 'rubygems/commands/query_command'
##
# An alternate to Gem::Commands::QueryCommand that searches for gems starting
-# with the supplied argument.
+# with the the supplied argument.
class Gem::Commands::ListCommand < Gem::Commands::QueryCommand