如何在Bundle添加Git源?
Specifying a ref, branch, or tag for a git repository specified inline works exactly the same way
gem 'nokogiri', :git => 'https://github.com/rack/rack.git', :ref => '0bd839d'
gem 'nokogiri', :git => 'https://github.com/rack/rack.git', :tag => '2.0.1'
gem 'nokogiri', :git => 'https://github.com/rack/rack.git', :branch => 'rack-1.5'
Bundler can use HTTP(S), SSH, or git
gem 'rack', :git => 'https://github.com/rack/rack.git'
gem 'rack', :git => 'git@github.com:rack/rack.git'
gem 'rack', :git => 'git://github.com/rack/rack.git'
怎么告诉Bundle Gemfile在哪
通常Gemfile就放$PWD/Gemfile, 但有些情况下需要其他的文件名.
最简单的方法就是设置BUNDLE_GEMFILE
环境变量.