I have a couple of gem files which I install via gem install xx.gem
. Can I tell Bundler to use them? Or do I have to specify the source path?
Ruby – How to specify local .gem files in the Gemfile
bundlerrubyrubygems
Related Topic
- How to install gem from GitHub source
- Mysql – Error installing thesql2: Failed to build gem native extension
- Ruby – Should Gemfile.lock be included in .gitignore
- Ruby-on-rails – How to specify a local gem in the Gemfile
- Ruby-on-rails – bundle install fails with SSL certificate verification error
- Ruby – Update just one gem with bundler
- Ruby: How to install a specific version of a ruby gem
- Json – Error while installing json gem ‘mkmf.rb can’t find header files for ruby’
Best Answer
This isn't strictly an answer to your question about installing
.gem
packages, but you can specify all kinds of locations on a gem-by-gem basis by editing your Gemfile.Specifying a
:path
attribute will install the gem from that path on your local machine.Alternately, specifying a
:git
attribute will install the gem from a remote git repository.(As @JHurrah mentioned in his comment.)