lib/gemsmith/generators/rubocop.rb in gemsmith-13.7.1 vs lib/gemsmith/generators/rubocop.rb in gemsmith-13.7.2

- 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.+/ template "%gem_name%/.rubocop.yml.tt" - cli.run "bundle exec rubocop --auto-correct #{gem_name} > /dev/null" + cli.run "cd #{gem_name} && bundle exec rubocop --auto-correct > /dev/null" end end end end