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

ruby-changes:61127

From: David <ko1@a...>
Date: Fri, 8 May 2020 14:14:53 +0900 (JST)
Subject: [ruby-changes:61127] c832e3faa4 (master): [rubygems/rubygems] Require open3 before using it

https://git.ruby-lang.org/ruby.git/commit/?id=c832e3faa4

From c832e3faa48d8673af80391b2b6bec4a461455b0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Sun, 29 Mar 2020 22:05:40 +0200
Subject: [rubygems/rubygems] Require open3 before using it

Otherwise if this test file is run in isolation, this test will fail.

https://github.com/rubygems/rubygems/commit/79da003948

diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb
index 8116282..57e1f4f 100644
--- a/test/rubygems/test_gem.rb
+++ b/test/rubygems/test_gem.rb
@@ -305,6 +305,7 @@ class TestGem < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem.rb#L305
 
     install_specs a1
 
+    require "open3"
     output, status = Open3.capture2e(
       { "GEM_HOME" => Gem.paths.home, "DEBUG_RESOLVER" => "1" },
       *ruby_with_rubygems_in_load_path, "-e", "\"Gem.activate_bin_path('a', 'exec', '>= 0')\""
-- 
cgit v0.10.2


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

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