How do you pack a gem into your rails engine?

210 views Asked by At

I'm building a rails engine and I need to pack a gem inside it because it is not available publicly. What is the best way to do that?

2

There are 2 answers

2
Brad Werth On BEST ANSWER

You would need to vendor the gem, at a point when you do have access to the gem that is not publicly available. This will make the source code, but not the location of, the not publicly available gem available. Here is a guide describing how to vendor a single rails gem, with or without bundler.

1
John Naegle On

In your Gemfile:

gem 'super-private-sneaky-gem', :git => 'https://github.com/Inc1982/super-private-sneaky-gem', :branch => 'master'