socketry / async-http

MIT License
298 stars 45 forks source link

[Chore] Ruby 2.7.0 changes #42

Closed noraj closed 4 years ago

noraj commented 4 years ago
/home/noraj/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/async-http-0.38.3/lib/async/http/url_endpoint.rb:163: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call

Ruby 2.7

The warning must be due to Separation of positional and keyword arguments

Related issue https://github.com/picatz/shodanz/issues/32

ioquatix commented 4 years ago

I believe this issue is already fixed in async-http 0.50.0

noraj commented 4 years ago

You're right I'm using outdated versions.

Creating a simple Gemfile

source 'https://rubygems.org'

gem 'shodanz', '>=2.0.1'
gem 'async-http', '>=0.50'
gem 'async-io',   '~>1.27'

And executing with bundle exec ruby make it right.