0

1) 我使用 spree 在我的 gem 文件代码中创建应用程序。

rails 4.1.6
gem 'spree', '2.3.4'
gem 'spree_gateway', :git => 'https://github.com/spree/spree_gateway.git', :branch => '2-3-stable'

gem 'spree_auth_devise', :git => ' https://github.com/spree/spree_auth_devise.git ', :branch => '2-3-stable'

2)bundle install

3)它工作正常。

4)但我需要添加扩展gem 'spree_gift_card', github: 'jdutil/spree_gift_card'

5)bundle install

6)给出这样的错误,

Bundler 找不到 gem "spree_frontend" 的兼容版本:

In Gemfile:
  spree_gift_card (>= 0) ruby depends on
    spree_frontend (~> 2.2.0) ruby

  spree (= 2.3.4) ruby depends on
    spree_frontend (2.3.4)
4

1 回答 1

0

你有两个选择

  1. 使用 spree 2.2 - 或扩展最后使用的任何版本
  2. 对于扩展,更改 gemspec 文件以使用后来的 spree 版本,并交叉手指说新版本没有破坏扩展(或者修复它,如果它这样做了)
于 2014-10-17T06:40:41.023 回答