Skip to content

Commit

Permalink
Fix: Ruby 2.7 warning (#344)
Browse files Browse the repository at this point in the history
`gems/i18n-tasks-0.9.30/lib/i18n/tasks/data/adapter/yaml_adapter.rb:12: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call`

I think this doesn't break anything else, so should be good to go. Thanks for the gem!
  • Loading branch information
pjaspers authored Mar 6, 2020
1 parent 460ffd8 commit 1038034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/data/adapter/yaml_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class << self
# @return [Hash] locale tree
def parse(str, options)
if YAML.method(:load).arity.abs == 2
YAML.load(str, options || {})
YAML.load(str, **(options || {}))
else
# older jruby and rbx 2.2.7 do not accept options
YAML.load(str)
Expand Down

0 comments on commit 1038034

Please sign in to comment.