Last active
December 14, 2015 01:49
-
-
Save gkop/5009369 to your computer and use it in GitHub Desktop.
Bundle from git a gem with additional require paths
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
# bundle from git and the ext/ directory in the gem is not found in the require path | |
gem 'rbtagger', :git => "git://github.com/taf2/rb-brill-tagger.git" | |
# bundling from rubygems or local path works, however | |
# gem 'rbtagger' | |
# or | |
# gem 'rbtagger', :path => "~/play/rb-brill-tagger" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ bundle | |
... | |
$ bundle exec irb | |
1.9.3-p327 :001 > require 'rbtagger' | |
LoadError: cannot load such file -- word_tagger/word_tagger | |
from /home/gabe2/.rvm/gems/ruby-1.9.3-p327@scratch/bundler/gems/rb-brill-tagger-d83a3a6f4cf3/lib/word/tagger.rb:2:in `require' | |
from /home/gabe2/.rvm/gems/ruby-1.9.3-p327@scratch/bundler/gems/rb-brill-tagger-d83a3a6f4cf3/lib/word/tagger.rb:2:in `<top (required)>' | |
from /home/gabe2/.rvm/gems/ruby-1.9.3-p327@scratch/bundler/gems/rb-brill-tagger-d83a3a6f4cf3/lib/rbtagger.rb:10:in `require' | |
from /home/gabe2/.rvm/gems/ruby-1.9.3-p327@scratch/bundler/gems/rb-brill-tagger-d83a3a6f4cf3/lib/rbtagger.rb:10:in `<top (required)>' | |
from (irb):1:in `require' | |
from (irb):1 | |
from /home/gabe2/.rvm/rubies/ruby-1.9.3-p327/bin/irb:13:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment