You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ruby test.rb
/store/gems/ruby-2.7.0-rc2/gems/sinatra-contrib-2.0.8.1/lib/sinatra/reloader.rb:
308: warning: The last argument is used as keyword parameters; maybe ** should b
e added to the call
/store/gems/ruby-2.7.0-rc2/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1360: warnin
g: The called method `add_filter' is defined here
/store/gems/ruby-2.7.0-rc2/gems/sinatra-contrib-2.0.8.1/lib/sinatra/reloader.rb:275: warning: The last argument is used as keyword parameters; maybe ** should be added to the call
/store/gems/ruby-2.7.0-rc2/gems/sinatra-2.0.8.1/lib/sinatra/base.rb:1622: warning: The called method `compile!' is defined here
== Sinatra (v2.0.8.1) has taken the stage on 3000 for development with backup from Puma
Puma starting in single mode...
...
I can confirm that changing both options = {} to **options removes the warnings.
I wanted to submit a PR, but running tests (even before the change) triggers tons of warnings and errors.
The text was updated successfully, but these errors were encountered:
Testing with Ruby 2.7.0-rc2 (which is the currently latest available with RVM), I am getting some warnings when
sinatra/reloader
is required.Code to reproduce
Output
Versions
Offending code
sinatra/sinatra-contrib/lib/sinatra/reloader.rb
Line 272 in a4dd24a
and
sinatra/sinatra-contrib/lib/sinatra/reloader.rb
Line 305 in a4dd24a
I can confirm that changing both
options = {}
to**options
removes the warnings.I wanted to submit a PR, but running tests (even before the change) triggers tons of warnings and errors.
The text was updated successfully, but these errors were encountered: