zaru / webpush

webpush, Encryption Utilities for Web Push protocol
MIT License
394 stars 73 forks source link

Ruby 2.7 deprecation warning #92

Closed morgoth closed 4 years ago

morgoth commented 4 years ago

This line https://github.com/zaru/webpush/blob/master/lib/webpush/request.rb#L134 is producing warning when run on Ruby 2.7: /home/wojtek/.asdf/installs/ruby/2.7.1/lib/ruby/gems/2.7.0/gems/webpush-1.0.0/lib/webpush/request.rb:134: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

I guess adding **subscription.fetch(:keys) should be enough to fix it