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