ruby-changes:50185
From: usa <ko1@a...>
Date: Thu, 8 Feb 2018 16:34:46 +0900 (JST)
Subject: [ruby-changes:50185] usa:r62303 (trunk): revert r62302 and force to define the version constant
usa 2018-02-08 16:34:41 +0900 (Thu, 08 Feb 2018) New Revision: 62303 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62303 Log: revert r62302 and force to define the version constant 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 62302) +++ test/rubygems/test_gem_commands_setup_command.rb (revision 62303) @@ -6,9 +6,7 @@ require 'rubygems/commands/setup_command https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_setup_command.rb#L6 class TestGemCommandsSetupCommand < Gem::TestCase - 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" if Gem::USE_BUNDLER_FOR_GEMDEPS + BUNDLER_VERS = "1.16.1" def setup super @@ -25,8 +23,6 @@ class TestGemCommandsSetupCommand < Gem: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_setup_command.rb#L23 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/