lib/i18n/tasks/data/adapter/yaml_adapter.rb in i18n-tasks-0.9.30 vs lib/i18n/tasks/data/adapter/yaml_adapter.rb in i18n-tasks-0.9.31
- old
+ new
@@ -7,10 +7,10 @@
module YamlAdapter
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)
end
end