lib/gemsmith/generators/rubocop.rb in gemsmith-11.2.0 vs lib/gemsmith/generators/rubocop.rb in gemsmith-11.3.0
- old
+ new
@@ -7,10 +7,10 @@
def run
return unless configuration.dig(:generate, :rubocop)
cli.uncomment_lines "#{gem_name}/Rakefile", /require.+rubocop.+/
cli.uncomment_lines "#{gem_name}/Rakefile", /RuboCop.+/
- cli.template "%gem_name%/.rubocop.yml.tt", configuration
+ template "%gem_name%/.rubocop.yml.tt"
cli.run "bundle exec rubocop --auto-correct #{gem_name} > /dev/null"
end
end
end
end