简体   繁体   中英

Referencing multiple local ruby gems in development using Bundler

I currently work on an application that consists of many gems. Each of these gems are being developed at the same time, and it is important for us to reference our current local copy from each of the gems.

We currently use Bundler in each of these gems. Currently we are setting an environment variable that tells Bundler to reference our local copies as opposed to the system installed gem.

While this works, it is messy because:

1) The Gemfile.lock is constantly changing when we flip back and forth. This results in errors when deploying. 2) This relies on all developers keeping their directory structures exactly same, unless we also make this configurable (sucky).

What do other people do in this situation?

Upload your gems to private repositores in github, for example, and let Bundler feed from them. Your gem developers should have their repos updated.

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