ruby / forwardable

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

Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call #17

Open AlexWayfer opened 4 years ago

AlexWayfer commented 4 years ago

Hello.

I see ruby2_keywords usage, but I'm getting such warnings for some reason in my project:

/home/alex/Projects/ruby/forwardable/lib/forwardable.rb:238: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/home/alex/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/ferrum-0.9/lib/ferrum/page/screenshot.rb:35: warning: The called method `pdf' is defined here
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]

I see this referenced source: https://github.com/rubycdp/ferrum/blob/6906d98/lib/ferrum/page/screenshot.rb#L35

def pdf(**opts)

What changes are expected and where?