我正在尝试将spree_mail gem添加到我的Spree项目中。
&安培;当我运行“捆绑安装”
我收到此消息:
Bundler找不到gem“devise”的兼容版本: 在Gemfile中: spree_mail(= 0.40.0.4)ruby依赖于 设计(= 1.2.rc)红宝石
spree_auth_devise (>= 0) ruby depends on
devise (2.2.3)
Bundler无法找到gem“spree_core”的兼容版本: 在Gemfile中: spree_mail(= 0.40.0.4)ruby依赖于 spree_core(= 0.30.1)ruby
spree_mail (= 0.40.0.4) ruby depends on
spree_core (1.3.2)
我的Gemfile
source 'http://rubygems.org'
gem 'spree_i18n', :git => "git://github.com/spree/spree_i18n.git"
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
gem 'spree', '1.3.2'
gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '1-3-stable'
gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '1-3-stable'
gem 'spree_mail', '0.40.0.4'
答案 0 :(得分:1)
虽然扩展名将spree_core >= 0.30.1
指定为依赖项,但这几乎肯定不适用于spree 1.3.2而不进行修改。
如果您查看此gem的github network,可能会有更新的分支,您可以使用。或者,我建议您使用Mailchimp这样的产品作为邮件列表,至少还有一个更新extension for that。