forwardable icon indicating copy to clipboard operation
forwardable copied to clipboard

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

Open AlexWayfer opened this issue 5 years ago • 0 comments

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?

AlexWayfer avatar Aug 21 '20 08:08 AlexWayfer