mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Revert deprecation of deprecate method for now.
https://github.com/rubygems/rubygems/commit/965eee1741
This commit is contained in:
parent
0e85a39dc7
commit
60cafe8ea9
Notes:
git
2020-05-08 07:39:26 +09:00
2 changed files with 0 additions and 2 deletions
|
@ -63,7 +63,6 @@ module Gem::Deprecate
|
|||
". 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
|
||||
|
|
|
@ -112,7 +112,6 @@ class TestDeprecate < Gem::TestCase
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue