Hosted gem/plugin development infrastructure
Developing gems is often tricky because they act like separate projects with regard to the applications you use them in.
"Hosted" development infrastructure makes gem development easier by including them into (making them "hosted by") your live application. Then you update your gem's code like you update regular application code.
Add to your
gem "hosted_gem_development" #gem "hosted_gem_development", :git => "git://github.com/dadooda/hosted_gem_development.git" # Edge version.
Install the gem:
$ bundle install
$ rails generate hosted_gem_development
config/boot.rb does this before the
require File.expand_path("../clone_hosted_gems", __FILE__)
.gitignore contains the following:
Check out the gem you are working on:
$ cd vendor/gems_dev $ git clone git://github.com/author/cool_gem.git
Include the gem into your
gem "cool_gem", :path => "vendor/gems/cool_gem"
Now you can work on
vendor/gems_dev/cool_gem like you do on regular
application code. Changes to the gem become instantly available to
the application whenever you load your Rails environment.
Copyright © 2012 Alex Fortuna.
Licensed under the MIT License.
Send bug reports, suggestions and criticisms through project's page on GitHub.