From bddf4b0237f9598df782effc5484120d3786c2f9 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 24 Jun 2016 04:13:11 +0000 Subject: * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2.6.5 and 2.6.6. Release note of 2.6.5: https://github.com/rubygems/rubygems/commit/656f5d94dc888d78d0d00f3598a4fa37391aac80 Release note of 2.6.6: https://github.com/rubygems/rubygems/commit/ccb9c3300c063f5b5656669972d24a10ef8afbf5 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/commands/update_command.rb | 2 +- lib/rubygems/config_file.rb | 2 +- lib/rubygems/defaults.rb | 18 ++++++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) (limited to 'lib/rubygems') diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb index 688e9b0e6c..f3d70a92a6 100644 --- a/lib/rubygems/commands/update_command.rb +++ b/lib/rubygems/commands/update_command.rb @@ -241,7 +241,7 @@ command to remove old versions. update_gem 'rubygems-update', version installed_gems = Gem::Specification.find_all_by_name 'rubygems-update', requirement - version = installed_gems.last.version + version = installed_gems.first.version install_rubygems version end diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb index c8014814b4..3a5e7718df 100644 --- a/lib/rubygems/config_file.rb +++ b/lib/rubygems/config_file.rb @@ -54,7 +54,7 @@ class Gem::ConfigFile # For Ruby implementers to set configuration defaults. Set in # rubygems/defaults/#{RUBY_ENGINE}.rb - PLATFORM_DEFAULTS = {} + PLATFORM_DEFAULTS = Gem.platform_defaults # :stopdoc: diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb index 16fa96eb2d..43d57fc808 100644 --- a/lib/rubygems/defaults.rb +++ b/lib/rubygems/defaults.rb @@ -175,4 +175,22 @@ module Gem RbConfig::CONFIG['ruby_version'] end + ## + # Default options for gem commands. + # + # The options here should be structured as an array of string "gem" + # command names as keys and a string of the default options as values. + # + # Example: + # + # def self.platform_defaults + # { + # 'install' => '--no-rdoc --no-ri --env-shebang', + # 'update' => '--no-rdoc --no-ri --env-shebang' + # } + # end + + def self.platform_defaults + {} + end end -- cgit v1.2.3