简体   繁体   中英

Test Ruby Gem in main application without commiting every change to git


I'm developing a main rails application where I want to mount some rails engines and gems I've developed on my own.
Some of my (under development) engines depend on the main Application and the engines I've already mounted into the main app.

Now, I want to test, if my engine which is under development also works in my main application together with the already mounted engines and gems.

If I want to test it now, I must commit every singe change with git and install the gem / engine via a GitHub repository in the main app.

Is there a better way to test changes of your engine without having to pollute the git commit history / without commiting every single change and install it via a git repository?

Can I mount my engine locally into the main app, change something and it will be immediately available in the main app?

In your Gemfile, you can point gems to your local working copies:

gem 'my_gem', :path => '/my/workspace/my_gem'

See http://bundler.io/v1.3/man/gemfile.5.html#PATH-path-

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM