I have a private gem, called X
, whose source code is hosted on Github. If I want to use X
in a project, I add gem 'X', :git => 'git@github.com:my-org/x.git'
to my project's Gemfile
. I can then launch irb
and type require 'bundler/setup'
and then require 'x'
. The functionality of X
is available.
Now, I have a different private gem, called Y
, whose source code is also hosted on Github. I want to use X
from within Y
.
How can I accomplish this?