Replies: 3 comments 6 replies
-
You can point to gem source code using In theory you should be able to do: mkdir /gems/mygem
mv mygem-0.0.1.gem /gems/mygem
cd /gems/mygem
tar -xvf mygem-0.0.1.gem # this extracts 3 file -> metadata.gz, data.tar.gz, checksums.yaml.gz
tar -xvzf data.tar.gz # extract data and in Gemfile point to that path using |
Beta Was this translation helpful? Give feedback.
-
By the way, these instructions tar -xvf mygem-0.0.1.gem
tar -xvzf data.tar.gz # Gemfile
gem 'mygem', path: '/gems/mygem' do not work for me unless the directory also contains the gemspec file... |
Beta Was this translation helpful? Give feedback.
-
@simi what would be the expected option? should it work with |
Beta Was this translation helpful? Give feedback.
-
Hey all,
I was trying to figure out if this is possible, but this page did not reveal the answer.
I have an internal, private gem, that I wish to avoid pushing anywhere (not even a private gem repo).
I wish to just put it in directory in the project, and have it install normally when I run
bundle install
I was hoping for something like this:
or even better, without specifying the exact filename (which includes version), to just point bundler to a directory containing a file named
<gem_name>-*.gem
:and in
mygem-dir
havemygem-0.0.1.gem
, and bundler will search for/install the latest version or the one specified in the lock file.Is something like this possible? If not, any proposed alternative for this scenario (other than the usual install from source) are welcome.
Beta Was this translation helpful? Give feedback.
All reactions