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

ruby-changes:71855

From: Hiroshi <ko1@a...>
Date: Wed, 18 May 2022 10:03:02 +0900 (JST)
Subject: [ruby-changes:71855] 7e580d4156 (ruby_3_1): [rubygems/rubygems] Move testing_ruby_repo into test helper

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

From 7e580d4156ed4b62f5452bcc821d2ea60a65974c Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 28 Apr 2022 17:48:04 +0900
Subject: [rubygems/rubygems] Move testing_ruby_repo into test helper

https://github.com/rubygems/rubygems/commit/6590debe55
---
 test/rubygems/helper.rb       | 8 ++++++++
 test/rubygems/test_require.rb | 4 ----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/test/rubygems/helper.rb b/test/rubygems/helper.rb
index 946a792854..70b9b662b6 100644
--- a/test/rubygems/helper.rb
+++ b/test/rubygems/helper.rb
@@ -1183,6 +1183,14 @@ Also, a list: https://github.com/ruby/ruby/blob/trunk/test/rubygems/helper.rb#L1183
     RUBY_PLATFORM.match('mswin')
   end
 
+  ##
+  # Is this test being run on a ruby/ruby repository?
+  #
+
+  def testing_ruby_repo?
+    !ENV["GEM_COMMAND"].nil?
+  end
+
   ##
   # Returns the make command for the current platform. For versions of Ruby
   # built on MS Windows with VC++ or Borland it will return 'nmake'. On all
diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index 90b943dff3..8857ceef25 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -671,10 +671,6 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L671
 
   private
 
-  def testing_ruby_repo?
-    !ENV["GEM_COMMAND"].nil?
-  end
-
   def util_install_extension_file(name)
     spec = quick_gem name
     util_build_gem spec
-- 
cgit v1.2.1


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

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