ocra
ocra copied to clipboard
Gems installed from git cannot be required
When I use gems like this:
gem 'my-gem', git: "https://github.com/x/y.git"
# ... later in the app:
requrie `my/gem`
I get a LoadError when running the executable. They do show up in the package but under: ocrXYZ.tmp\lib\ruby\gems\2.3.0\bundler\gems
instead of ocrXYZ.tmp\lib\ruby\gems\2.3.0\gems
(like regurarly installed gems). This is the normal behaviour of bundler.
Any help on how to get this resolved is appreciated.
As explained here I tried:
require 'rubygems'
require 'bundler/setup'
But no success.
This on the other hand:
require 'bundler'
Bundler.setup(:default)
Results in Bundler::GemfileNotFound
even if the file in included in the build and is added to $LOAD_PATH
.