diff options
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r-- | lib/rubygems/commands/cert_command.rb | 4 | ||||
-rw-r--r-- | lib/rubygems/commands/list_command.rb | 2 |
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 |