[前][次][番号順一覧][スレッド一覧]

ruby-changes:50184

From: usa <ko1@a...>
Date: Thu, 8 Feb 2018 16:23:26 +0900 (JST)
Subject: [ruby-changes:50184] usa:r62302 (trunk): no need to set bundled bundler unless Gem::USE_BUNDLER_FOR_GEMDEPS

usa	2018-02-08 16:23:21 +0900 (Thu, 08 Feb 2018)

  New Revision: 62302

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62302

  Log:
    no need to set bundled bundler unless Gem::USE_BUNDLER_FOR_GEMDEPS

  Modified files:
    trunk/test/rubygems/test_gem_commands_setup_command.rb
Index: test/rubygems/test_gem_commands_setup_command.rb
===================================================================
--- test/rubygems/test_gem_commands_setup_command.rb	(revision 62301)
+++ test/rubygems/test_gem_commands_setup_command.rb	(revision 62302)
@@ -8,7 +8,7 @@ class TestGemCommandsSetupCommand < Gem: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_setup_command.rb#L8
 
   gem = File.exist?(gem = File.expand_path("bin/gem", @@project_dir)) ?
     [ENV["RUBY"] || "ruby", gem] : ["gem"]
-  BUNDLER_VERS = IO.popen(gem + %w[list -e bundler], &:read)[/([^() ]+)\)\Z/, 1] || "1.16.1"
+  BUNDLER_VERS = IO.popen(gem + %w[list -e bundler], &:read)[/([^() ]+)\)\Z/, 1] || "1.16.1" if Gem::USE_BUNDLER_FOR_GEMDEPS
 
   def setup
     super
@@ -25,6 +25,8 @@ class TestGemCommandsSetupCommand < Gem: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_setup_command.rb#L25
     File.open 'lib/rubygems/test_case.rb', 'w' do |io| io.puts '# test_case.rb' end
     File.open 'lib/rubygems/ssl_certs/rubygems.org/foo.pem', 'w' do |io| io.puts 'PEM'       end
 
+    return unless Gem::USE_BUNDLER_FOR_GEMDEPS
+
     FileUtils.mkdir_p 'bundler/exe'
     FileUtils.mkdir_p 'bundler/lib/bundler'
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]