cache_method icon indicating copy to clipboard operation
cache_method copied to clipboard

Ruby 3.0 issue with keyword arguments

Open apiology opened this issue 4 years ago • 2 comments

It looks like cache_method no longer works on methods with keyword arguments as of Ruby 3.0; it attempts to send them as an additional final hash positional argument as opposed to Ruby 3.0-style keyword arguments (see https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/ )

I can provide a detailed example if someone would be interested in helping out with a fix. If not, I may eventually be able to create a PR once I feel the need to upgrade my cache_method-using projects over to Ruby 3.0+; not sure on the timeline, though.

apiology avatar Jul 11 '21 22:07 apiology

@seamusabshere @rubemz @itspriddle let me know if you're interested in this PR and perhaps a new maintainer; I almost have the patch ready.

apiology avatar Oct 16 '22 13:10 apiology

Hi @seamusabshere @rubemz @itspriddle - pinging on this.

apiology avatar Nov 06 '23 12:11 apiology