【问题标题】:When i m using gem 'spree_gift_card' in gem 'spree', '2.3.4' at that time gives error like in rails 4.1.6当我在 gem 'spree' 中使用 gem 'spree_gift_card' 时,当时的 '2.3.4' 会出现类似 rails 4.1.6 中的错误
【发布时间】:2014-12-12 16:40:25
【问题描述】:

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)

【问题讨论】:

    标签: ruby-on-rails-4 spree spree-auth-devise


    【解决方案1】:

    你有两个选择

    1. 使用 spree 2.2 - 或扩展最后使用的任何版本
    2. 对于扩展,更改 gemspec 文件以使用最新的 spree 版本,并祈祷新版本没有破坏扩展(或者修复它,如果它破坏了)

    【讨论】:

    猜你喜欢
    • 2016-11-27
    • 1970-01-01
    • 2012-12-16
    • 2011-11-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-26
    相关资源
    最近更新 更多