RailsApps / rails_apps_composer

A gem with recipes to create Rails application templates for Rails starter apps.
http://railsapps.github.io/rails_apps_composer/
1.42k stars 306 forks source link

Use "require: false" with rubocop in Gemfile #362

Open dcki opened 7 years ago

dcki commented 7 years ago

Is it possible to make rails_apps_composer add "require: false" for rubocop when adding it to a Gemfile?

A Rails app I work on was built a couple of months ago using this gem. I'm not sure exactly how the gem was used to create the project.

The resulting Gemfile checked in by a collaborator included the rubocop gem without specifying "require: false". In rubocop's README.md it says to specify "require: false" for rubocop if you put it in a Gemfile. Since this didn't happen there were "NameError: uninitialized constant Net::HTTP" errors in the production environment. (Fortunately this app has not been deployed to production yet.)

This is how the error occurred:

This seems like a cool project, thanks for your work on it.

DanielKehoe commented 7 years ago

Thanks for the alert. I'll follow up.