找不到宝石'refinerycms-blog(〜> 2.1.0)ruby'

时间:2013-10-03 16:42:23

标签: ruby-on-rails refinerycms

我使用refinerycms myapp生成了一个应用程序,
并取消注释gem 'refinerycms-blog', '~> 2.1.0'
提出以下错误

Could not find gem 'refinerycms-blog (~> 2.1.0) ruby' in the gems available on this machine.

我的gemfile:

source 'https://rubygems.org'

gem 'rails', '3.2.13'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

group :development, :test do
  gem 'sqlite3'
end


# 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'

# Refinery CMS
gem 'refinerycms', '~> 2.1.0'

# Optionally, specify additional Refinery CMS Extensions here:
gem 'refinerycms-acts-as-indexed', '~> 1.0.0'
gem 'refinerycms-blog', '~> 2.1.0'
#  gem 'refinerycms-inquiries', '~> 2.1.0'
#  gem 'refinerycms-search', '~> 2.1.0'
#  gem 'refinerycms-page-images', '~> 2.1.0'

更新
更改为2.0.5版并提出以下内容

  Bundler could not find compatible versions for gem "refinerycms-core":
  In Gemfile:
    refinerycms-blog (~> 2.0.5) ruby depends on
      refinerycms-core (~> 2.0.3) ruby

    refinerycms (~> 2.1.0) ruby depends on
      refinerycms-core (2.1.0)

3 个答案:

答案 0 :(得分:1)

refinerycms-blog的最新版本为2.0.5

gem "refinerycms-blog", "~> 2.0.5"

答案 1 :(得分:1)

正如kobaltz所说:最新版本的refinerycms-blog是2.0.5(http://rubygems.org/gems/refinerycms-blog),它需要refinerycms-core~> 2.0.3意味着它不适用于版本refinerycms 2.1

您可以将整个refinerycms降级到2.0.5或直接从git repository使用未发布的refinerycms-blog版本:https://github.com/refinery/refinerycms-blog(master上的版本为2.1)。请注意,它可能不稳定,因为它尚未发布。

答案 2 :(得分:0)

您可以分叉博客存储库并相应地进行更改。在那之前你必须强有力地使用2.0.5。 2.1的引擎支持将需要一些时间,因为它最近已经发布。我不得不降级,原因与使用几乎所有炼油厂引擎的原因相同。