2014-03-26 75 views

回答

0

完成rake spec的第二步后,您将安装gem build bundler.gemspecgem install --local bundler-1.6.0.rc2.gem

这意思是当打捆本身是一个宝石和魔耙后,您需要安装打捆宝石的这个混帐主版本。要检查您是否使用捆绑软件的主版本,请在任何目录上运行bundle --version,并且ti应该返回捆绑软件版本1.6.0.rc2或类似的东西。

http://bundler.io/v1.5/man/bundle.1.html显示您可以在包二进制使用ARGS。

为了测试包的这个主二进制文件,创建一个新的目录,并做bundle init,一些宝石加给它安装。例如:

# A sample Gemfile 
source "https://rubygems.org" 

gem "hello-world" 
gem "gem-man" 

and run `bundle install`. 
now: 
[email protected] ~/code/rsoc/bunch_of_gemfiles % bundle list 
Gems included by the bundle: 
    * bundler (1.6.0.rc2) 
    * gem-man (0.3.0) 
    * hello-world (1.2.0) 

[email protected] ~/code/rsoc/bunch_of_gemfiles % bundle check 
The Gemfile's dependencies are satisfied 

[email protected] ~/code/rsoc/bunch_of_gemfiles % bundle platform           
Your platform is: x86_64-linux 

Your app has gems that work on these platforms: 
* ruby 

Your Gemfile does not specify a Ruby version requirement. 

基本上捆绑就像pacman的宝石,但提供了精确的宝石的子集,在你想要的确切版本。使用它的唯一方法就是使用它将在gem上使用它,也就是说:使用这个捆绑包的git master二进制文件来安装gems,测试应用程序的gemfile中的deps是否满足等等。

0

是的,这些应该是您的克隆的Bundler git回购中的binlib目录的路径。

dbundle别名的想法是,您可以通过在另一个项目中运行dbundle来轻松测试出您对Bundler所做的更改。由于别名指向源代码的副本,因此每次更改时无需构建和安装Bundler gem,就可以看到它的作用。

+0

谢谢,帮助! –