From b3f371b50bda01eaac999d1134a69c8437a9cc37 Mon Sep 17 00:00:00 2001 From: Piet Jaspers Date: Fri, 6 Mar 2020 11:35:03 +0100 Subject: [PATCH] Fix: Ruby 2.7 warning `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! --- lib/i18n/tasks/data/adapter/yaml_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/i18n/tasks/data/adapter/yaml_adapter.rb b/lib/i18n/tasks/data/adapter/yaml_adapter.rb index 98e3b6ae..d3704d42 100644 --- a/lib/i18n/tasks/data/adapter/yaml_adapter.rb +++ b/lib/i18n/tasks/data/adapter/yaml_adapter.rb @@ -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)