fastlane/lib/fastlane/erb_template_helper.rb in fastlane-2.177.0 vs fastlane/lib/fastlane/erb_template_helper.rb in fastlane-2.178.0

- old
+ new

@@ -22,9 +22,15 @@ super(hash) @trim_mode = trim_mode end def render(template) - ERB.new(template, nil, @trim_mode).result(binding) + # From Ruby 2.6, ERB.new takes keyword arguments and positional ones are deprecated + # https://bugs.ruby-lang.org/issues/14256 + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new("2.6.0") + ERB.new(template, trim_mode: @trim_mode).result(binding) + else + ERB.new(template, nil, @trim_mode).result(binding) + end end end end