palkan / anyway_config

Configuration library for Ruby gems and applications
MIT License
778 stars 52 forks source link

Warnings about deprecation of using the last argument as keyword arguments in Ruby 2.7 #48

Closed storkvist closed 4 years ago

storkvist commented 4 years ago

What did you do?

Used gem with Ruby 2.7.

What did you expect to happen?

Everything should work.

What actually happened?

Everything worked as expected but I saw warnings about the deprecation of using the last argument as keyword arguments.

Additional context

/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/rails/config.rb:30: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/rails/config.rb:36: warning: The called method `load_from_file' is defined here
/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/rails/config.rb:31: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/rails/config.rb:47: warning: The called method `load_from_secrets' is defined here
/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/rails/config.rb:32: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/rails/config.rb:53: warning: The called method `load_from_credentials' is defined here
/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/rails/config.rb:33: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/Users/storkvist/.asdf/installs/ruby/2.7.0/lib/ruby/gems/2.7.0/gems/anyway_config-2.0.0.pre2/lib/anyway/config.rb:188: warning: The called method `load_from_env' is defined here

Environment

Ruby Version: 2.7

Framework Version (Rails, whatever): 6.0.2.1

Anyway Config Version: 2.0.0.pre2