I have a Gem that I need to install it from github using bundler I added it to my Gemfile
gem 'attr_encrypted', :git => "git://github.com/danpal/attr_encrypted.git"
Bundle installed it:
$bundle show attr_encrypted
/Users/dani/.rvm/gems/ruby-1.9.2-p290@railsrc/bundler/gems/attr_encrypted-05bbe677eae6
The problem is that rubygems won't see it:
Because Rubygems lacks the ability to handle gems from git, any gems installed from a git repository will not show up in gem list. They will, however, be available after running
Bundler.setup
.
Now if I run bundler/setup it does work:
DANIELs-MacBook-Air-2:authy-SSO dani$ irb
ruby-1.9.2-p290 :001 > require 'attr_encrypted'
LoadError: no such file to load -- attr_encrypted
from /Users/dani/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/dani/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from (irb):1
from /Users/dani/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
ruby-1.9.2-p290 :002 > require 'bundler/setup'
=> true
ruby-1.9.2-p290 :003 > require 'attr_encrypted'
=> true
The question is, where do I add this load paths to rails3.1 so that all gems I get from Bundler are automatically in the load path?