If I’ve built a private gem (hosted internally at my company, for instance), then I want to reuse that gem in another gem (not app!) that I’m building, how do I do that?
Where do I put my dependencies and tell my new gem how to find the old (already built) privately hosted gem?
So this took me awhile to figure out, because the answer is, it’s in TWO places. Do this:
The reason this works is probably obvious: Your Gemfile specifies the source for your gems and your .gemspec specifies the dependencies.
Hope this saves someone a few minutes.