socketry / async-http

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Chore] Ruby 2.7.0 changes

noraj opened this issue · comments

/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 picatz/shodanz#32

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

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.