您传递了:github作为gem'spree_gateway'的选项,但它无效

时间:2013-01-26 17:51:18

标签: ruby-on-rails-3 ruby-on-rails-3.2 spree

当我尝试在新应用上安装spree时,我收到此错误:

您传递了:github作为gem'spree_gateway'的选项,但它无效。

我在Windows 7机器上使用rails 3.2.11。

D:\Dropbox\web\rails_projects\testapp>spree install
Would you like to install the default gateways? (Recommended) (yes/no) [yes] y
Would you like to install the default authentication system? (yes/no) [yes] y
Would you like to run the migrations? (yes/no) [yes] y
Would you like to load the seed data? (yes/no) [yes] y
Would you like to load the sample data? (yes/no) [yes] y
     gemfile  spree
     gemfile  spree_gateway
     gemfile  spree_auth_devise
         run  bundle install from "."
←[31mYou passed :github as an option for gem 'spree_gateway', but it is invalid.←[0m

1 个答案:

答案 0 :(得分:6)

TL; DR:升级到更高版本的Bundler。

你可能有旧版本的Bundler。例如,在我的测试中,这个版本给了我错误:

$ bundle --version
Bundler version 1.0.21

在我的机器上运行的版本是:

$ bundle --version
Bundler version 1.2.3

我没有看得更近,但很明显,在某些方面,捆绑者有一个更改,以支持该选项。这两者之间有一个版本,它将开始工作。这可能是您所看到的问题。