aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-06 02:02:04 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-06 02:02:04 +0000
commit14543d0d8d0e61ea9311ad282b65eb3835d65e22 (patch)
tree5c3e598ae1f980613be2901be39300d153af723f /lib
parent4b4fec4b3a84ae980c25ef38e511784468e908ab (diff)
downloadruby-14543d0d8d0e61ea9311ad282b65eb3835d65e22.tar.gz
Merge RubyGems 2.7.1.
* Fix `gem update --system` with RubyGems 2.7+. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb2
-rw-r--r--lib/rubygems/commands/setup_command.rb6
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index d32df84be1..c4c279e964 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -10,7 +10,7 @@ require 'rbconfig'
require 'thread'
module Gem
- VERSION = "2.7.0"
+ VERSION = "2.7.1"
end
# Must be first since it unloads the prelude from 1.9.2
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index f322ca9df5..5f39b4c93c 100644
--- a/lib/rubygems/commands/setup_command.rb
+++ b/lib/rubygems/commands/setup_command.rb
@@ -352,8 +352,10 @@ By default, this RubyGems will install gem as:
def install_default_bundler_gem
return unless Gem::USE_BUNDLER_FOR_GEMDEPS
+ mkdir_p Gem::Specification.default_specifications_dir
+
bundler_spec = Gem::Specification.load("bundler/bundler.gemspec")
- bundler_spec.files = Dir["bundler/{*.md,{lib,exe,man}/**/*}"]
+ bundler_spec.files = Dir.chdir("bundler") { Dir["{*.md,{lib,exe,man}/**/*}"] }
bundler_spec.executables -= %w[bundler bundle_ruby]
Dir.entries(Gem::Specification.default_specifications_dir).
select {|gs| gs.start_with?("bundler-") }.
@@ -370,6 +372,8 @@ By default, this RubyGems will install gem as:
mkdir_p bundler_spec.bin_dir
bundler_spec.executables.each {|e| cp File.join("bundler", bundler_spec.bindir, e), File.join(bundler_spec.bin_dir, e) }
+
+ say "Bundler #{bundler_spec.version} installed"
end
def make_destination_dirs(install_destdir)