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

ruby-changes:61516

From: David <ko1@a...>
Date: Fri, 5 Jun 2020 07:33:47 +0900 (JST)
Subject: [ruby-changes:61516] 01fcc291dc (master): [rubygems/rubygems] Don't leave side effects on verbosity

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

From 01fcc291dc8a4c43c0763ebbb04e2e9e137cc738 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Sat, 16 May 2020 14:42:34 +0200
Subject: [rubygems/rubygems] Don't leave side effects on verbosity

https://github.com/rubygems/rubygems/commit/c58e711598

diff --git a/test/rubygems/test_gem_package_task.rb b/test/rubygems/test_gem_package_task.rb
index 02cd7b0..da1c4aa 100644
--- a/test/rubygems/test_gem_package_task.rb
+++ b/test/rubygems/test_gem_package_task.rb
@@ -9,9 +9,17 @@ class TestGemPackageTask < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_package_task.rb#L9
     super
 
     Rake.application = Rake::Application.new
+
+    @original_rake_fileutils_verbosity = RakeFileUtils.verbose_flag
     RakeFileUtils.verbose_flag = false
   end
 
+  def teardown
+    RakeFileUtils.verbose_flag = @original_rake_fileutils_verbosity
+
+    super
+  end
+
   def test_gem_package
     gem = Gem::Specification.new do |g|
       g.name = "pkgr"
-- 
cgit v0.10.2


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

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