diff --git a/.rubocop.yml b/.rubocop.yml index 8a8e2bb..547737a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,7 +8,7 @@ require: AllCops: NewCops: enable - TargetRubyVersion: '2.4' + TargetRubyVersion: '2.7' Exclude: - vendor/**/* diff --git a/lib/puppet-syntax/templates.rb b/lib/puppet-syntax/templates.rb index 38c47df..8e840bd 100644 --- a/lib/puppet-syntax/templates.rb +++ b/lib/puppet-syntax/templates.rb @@ -73,7 +73,7 @@ def validate_erb(filename) erb = if RUBY_VERSION >= '2.6' ERB.new(template, trim_mode: '-') else - ERB.new(template, nil, '-') + ERB.new(template, trim_mode: '-') end erb.filename = filename erb.result