ruby-changes:50183
From: nobu <ko1@a...>
Date: Thu, 8 Feb 2018 16:14:58 +0900 (JST)
Subject: [ruby-changes:50183] nobu:r62301 (trunk): test_gem_commands_setup_command.rb: BUNDLER_VERS
nobu 2018-02-08 16:14:52 +0900 (Thu, 08 Feb 2018) New Revision: 62301 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62301 Log: test_gem_commands_setup_command.rb: BUNDLER_VERS * test/rubygems/test_gem_commands_setup_command.rb: run bundled gem command, instead of installed one. 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 62300) +++ test/rubygems/test_gem_commands_setup_command.rb (revision 62301) @@ -6,7 +6,9 @@ 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 - BUNDLER_VERS = `gem list -e bundler`[/([^() ]+)\)\Z/, 1] || "1.16.1" + 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" def setup super -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/