ruby / forwardable

Provides delegation of specified methods to a designated object
BSD 2-Clause "Simplified" License
41 stars 17 forks source link

Fix keyword argument separation warnings on Ruby 2.7+ #5

Closed jeremyevans closed 4 years ago

jeremyevans commented 5 years ago

Do so in a way that is also compatible with previous versions.

eregon commented 4 years ago

Looks fine, any reason not to use ... which would then work forever vs ruby2_keywords which might get removed?

jeremyevans commented 4 years ago

@eregon You can't currently use ... with added lead arguments, and forwardable does that.

piotrmurach commented 4 years ago

Hey, I just came across this issue when testing one of my Ruby gems against 2.7.0-preview2. I virtually had hundreds of warnings due to Forwardable module hash into keyword args coercion. Is this patch going to be released with the final Ruby 2.7.0? Is there anything I could help with on this issue?