Actions
Bug #17824
closedGem::Deprecate#deprecate doesn't work with method with keyword arguments
Description
Method with keyword argument cannot be used with Gem::Deprecate
. Here is an example:
class Thing
extend Gem::Deprecate
def foo(name:)
puts name
end
def bar(name:)
foo(name: name)
end
deprecate :bar, :foo, 2021, 9
end
Thing.new.bar(name: 'ABC') # raise ArgumentError (wrong number of arguments (given 1, expected 0; required keyword: name))
Updated by mame (Yusuke Endoh) about 3 years ago
Thank you for your report. I've created a pull request to rubygems upstream. https://github.com/rubygems/rubygems/pull/4558
Updated by jeremyevans0 (Jeremy Evans) almost 3 years ago
- Status changed from Open to Closed
Actions
Like0
Like0Like0