狂欢:主题安装

时间:2015-10-06 00:19:52

标签: ruby-on-rails spree

我刚刚成功设置了狂欢,但想在其中添加一个新主题。 我选择了那个:

https://github.com/dbwinger/spree_serenity_theme

但是当我尝试“捆绑安装”时,我收到以下消息:

Bundler could not find compatible versions for gem "spree_core":
In snapshot (Gemfile.lock):
spree_core (= 3.0.4)
In Gemfile:
spree_core (= 3.0.4) ruby
spree_core (~> 3.0.0) ruby
spree_core (~> 3.0.0) ruby
spree_fancy (>= 0) ruby depends on
spree_core (~> 2.3.0.beta) ruby

Running `bundle update` will rebuild your snapshot from scratch, 
using only the gems in your Gemfile, which may resolve the conflict.

解决此问题的任何想法?

Ruby:2.2.2p95

Rails:4.2.2

Gemfile:

source 'https://rubygems.org'

gem 'rails', '4.2.2'
gem 'mysql2', '~> 0.3.18'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'

gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc


group :development, :test do
  gem 'byebug'
  gem 'web-console', '~> 2.0'
  gem 'spring'
end


gem 'spree', '3.0.4'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'

gem 'spree_serenity_theme', :git => 'https://github.com/dbwinger/spree_serenity_theme.git'

感谢您的帮助

1 个答案:

答案 0 :(得分:0)

Gem spree_serenity_theme与狂欢版本2兼容,而不与狂欢版本3兼容。 检查gem https://github.com/dbwinger/spree_serenity_theme/blob/master/spree_serenity_theme.gemspec

的依赖关系

这就是它无法正常工作的原因。

当前版本的狂欢核心是3.0.4,您必须从狂欢的2-0稳定分支而不是从主分支安装狂欢。 https://github.com/spree/spree/tree/2-0-stable

您可以创建主题的分叉,并根据您对最新版本的狂欢

的要求进行更改

谢谢