rails_apps_composer
rails_apps_composer copied to clipboard
Remove Hub from Gemfile after GitHub repo is created
The creator of the Hub gem does not recommend installing Hub via RubyGems, as it's slower than the standalone version. See the README: https://github.com/defunkt/hub#rubygems
The Hub gem is used by the Rails Apps Composer one time only in order to facilitate the creation of the GitHub repo. I wouldn't want to have a gem in the Gemfile that is not a required dependency, especially for apps with multiple contributors. Once the GitHub repo has been created with the Hub gem, the Rails app no longer needs the gem. If a contributor wants to use hub as a replacement for day-to-day git commands, it's up to them to install it on their machine via the recommended installation methods.
It would be nice if RAP removed Hub from the Gemfile after the repo is created. If that's not possible, could the gem install be run from the command line, as in run "gem install hub"
from within the recipe? I tried that, and it worked (I verified that hub was included in my gemset), but when it tries to run "hub create #{app_name}"
, it fails by saying:
hub is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
Thoughts?
Good point. I think it would be easy to simply remove Hub from the Gemfile after the repo is created.