bundler install RAILS_ENV = test再次安装所有宝石?

时间:2011-04-07 10:36:00

标签: ruby-on-rails-3 testing bundler

我试图安装我的测试宝石,突然捆绑者试图再次安装所有宝石。为什么会这样?不应该和我的开发人员一样看同一个宝石吗?

bundle install RAILS_ENV=test
Fetching git://github.com/odorcicd/authlogic.git
remote: Counting objects: 3652, done.
remote: Compressing objects: 100% (1337/1337), done.
remote: Total 3652 (delta 2389), reused 3331 (delta 2193)
Receiving objects: 100% (3652/3652), 574.45 KiB | 15 KiB/s, done.
Resolving deltas: 100% (2389/2389), done.
Fetching git://github.com/stalcottsmith/rails3_acts_as_paranoid.git
remote: Counting objects: 250, done.
remote: Compressing objects: 100% (202/202), done.
remote: Total 250 (delta 131), reused 93 (delta 44)
Receiving objects: 100% (250/250), 45.66 KiB | 30 KiB/s, done.
Resolving deltas: 100% (131/131), done.
Fetching git://github.com/stalcottsmith/watir.git
remote: Counting objects: 15547, done.
remote: Compressing objects: 100% (5377/5377), done.
remote: Total 15547 (delta 10218), reused 14217 (delta 9908)
Receiving objects: 100% (15547/15547), 8.64 MiB | 18 KiB/s, done.
Resolving deltas: 100% (10218/10218), done.
Fetching source index for http://rubygems.org/
Fetching source index for http://gemcutter.org/
Installing rake (0.8.7) 
Installing abstract (1.0.0) 
Installing activesupport (3.0.3) 
Installing builder (2.1.2) 
Installing i18n (0.5.0) 
Installing activemodel (3.0.3) 
Installing erubis (2.6.6) 
Installing rack (1.2.1) 
Installing rack-mount (0.6.13) 
Installing rack-test (0.5.7) 
Installing tzinfo (0.3.24) 
Installing actionpack (3.0.3) 
Installing mime-types (1.16) 
Installing polyglot (0.3.1) 
Installing treetop (1.4.9) 
Installing mail (2.2.14) 
Installing actionmailer (3.0.3) 
Installing arel (2.0.7) 
Installing activerecord (3.0.3) 
Installing activeresource (3.0.3) 
Installing acts_as_versioned (0.6.0) 
Installing andand (1.3.1) 
Installing annotate (2.4.0) 
Installing hoe (2.8.0) 
Installing ar_fixtures (0.0.4) 
Installing archive-tar-minitar (0.5.2) 
Using authlogic (2.1.3) from git://github.com/odorcicd/authlogic.git (at rails3) 
Using bundler (1.0.7) 
Installing celerity (0.8.7) 
Installing culerity (0.2.14) 
Installing nokogiri (1.4.4) with native extensions 

2 个答案:

答案 0 :(得分:1)

TROLOLOL!

显然bundler install <something>会将所有宝石安装在该文件夹中。当我看到一个名为“RAILS_ENV = test /”的未提交文件夹时,我刚刚发现git状态。

作为补充说明,它“记住”旧路径,因此任何后续捆绑安装都会再次创建RAILS_ENV = test /文件夹。要重置它,请使用:

bundler install --system

答案 1 :(得分:0)

您正在寻找的命令是

bundle install --system

在Bundler版本1.0.10上测试