错误包括gem' shoppe'

时间:2016-03-22 10:01:44

标签: ruby-on-rails bundler

我试图按照他们的手册设置专柜:tryshoppe.com

因此我在rvm上使用Rails 4.0.1和ruby 2.0.0p643。

关于专柜的设定:设置,或者只是' rails c'我收到以下错误:

/usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'shoppe'. (Bundler::GemRequireError)
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
  from /tmp/foo/config/application.rb:7:in `<top (required)>'
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/railties-4.0.1/lib/rails/commands.rb:60:in `require'
  from /usr/local/rvm/gems/ruby-2.0.0-p643/gems/railties-4.0.1/lib/rails/commands.rb:60:in `<top (required)>'
  from bin/rails:4:in `require'
  from bin/rails:4:in `<main>'

我不明白。虽然我尝试使用ruby 2.2和更新的rails,导致同样的错误。

这是Gemfile:

source 'https://rubygems.org'

gem 'shoppe'

gem 'rails', '4.0.1'
gem 'sqlite3'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'

group :doc do
  gem 'sdoc', require: false
end

1 个答案:

答案 0 :(得分:1)

如果您使用Bundler的最新预发布版或候选发布版(通过gem install bundler --pre),则应对其进行此更改:https://github.com/bundler/bundler/pull/4187

此更改应该允许您查看原始错误上下文,而不仅仅是通用的,无用的Bundler::GemRequireError