To develop gems and use them in rails projects with a bunch, is there a faster way?

I am writing a gem for a Rails project and making changes to its git repository. The Rails project refers to it in the Gemfile.

gem "blah", :git => "blah", :branch => "development" 

The problem is patience. Every time I commit changes to the stone, I need to run a โ€œpackage updateโ€ (or at least bundle update blah ) to use the gem, which takes some time. Is there a way to get around the package upgrade step and use the latest gem whenever I restart the Rails application?

+4
source share
1 answer

Firstly:

Use the path:

 gem "blah", :path => "~/Code/blah" 

Second (to answer the Zabba question as-comment): Currently, it is not possible to automatically reload your gems in development mode. You have to restart your server every time you change your gem.

The best way would be to create your gem with a dummy application included in its test suite and test it.

+3
source

All Articles