Sunday, 15 January 2012

ruby on rails - need to build gemspec and install gem everytime in make a change in gem file -


I am composed of a custom gem scratch, and every time I make a change in the gem file, and the console Restart, the change is not effective.

I need to establish the gem and install the gem for my changes every time, there is such an attitude that can save some time, thanks.

Yes, it is possible to install the functionality of your gem without installing it every time and without it. Simply specify the path option in your code Gemfile (not in your gem):

  Mani 'your gem name', path: ' Path  

After that you can only restart the application to reload the changes in your gem.

There is more details about the path option.


No comments:

Post a Comment