ruby-changes:61061
From: Josef <ko1@a...>
Date: Fri, 8 May 2020 07:39:27 +0900 (JST)
Subject: [ruby-changes:61061] 60cafe8ea9 (master): [rubygems/rubygems] Revert deprecation of deprecate method for now.
https://git.ruby-lang.org/ruby.git/commit/?id=60cafe8ea9 From 60cafe8ea95cd86bbb7099aaddb934bee3a13781 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= <josef.simanek@g...> Date: Tue, 21 Apr 2020 12:46:04 +0200 Subject: [rubygems/rubygems] Revert deprecation of deprecate method for now. https://github.com/rubygems/rubygems/commit/965eee1741 diff --git a/lib/rubygems/deprecate.rb b/lib/rubygems/deprecate.rb index 31981b1..67285d4 100644 --- a/lib/rubygems/deprecate.rb +++ b/lib/rubygems/deprecate.rb @@ -63,7 +63,6 @@ module Gem::Deprecate https://github.com/ruby/ruby/blob/trunk/lib/rubygems/deprecate.rb#L63 ". It will be removed on or after %4d-%02d-01." % [year, month], "\n#{target}#{name} called from #{Gem.location_of_caller.join(":")}", ] - warn "Gem::Deprecate#deprecate has been deprecated with no replacement and it will be removed in Rubygems 4.\n" unless Gem::Deprecate.skip warn "#{msg.join}." unless Gem::Deprecate.skip send old, *args, &block end diff --git a/test/rubygems/test_deprecate.rb b/test/rubygems/test_deprecate.rb index e5e9350..84b1efb 100644 --- a/test/rubygems/test_deprecate.rb +++ b/test/rubygems/test_deprecate.rb @@ -112,7 +112,6 @@ class TestDeprecate < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_deprecate.rb#L112 end assert_equal "", out - assert_match(/Gem::Deprecate#deprecate has been deprecated with no replacement and it will be removed in Rubygems 4\./, err) assert_match(/Thing#foo is deprecated; use bar instead\./, err) assert_match(/on or after 2099-03-01/, err) end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/