lib/gemsmith/generators/rubocop.rb in gemsmith-10.2.0 vs lib/gemsmith/generators/rubocop.rb in gemsmith-10.3.0
- old
+ new
@@ -8,10 +8,10 @@
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
- cli.run "rubocop --auto-correct #{gem_name} > /dev/null"
+ cli.run "bundle exec rubocop --auto-correct #{gem_name} > /dev/null"
end
end
end
end