在任何来源中都找不到sprockets-2.0.0.beta.10

时间:2011-10-25 15:09:29

标签: ruby ruby-on-rails-3 sprockets

我特意加入#270。你可以在这里看到它:http://railscasts.com/episodes/270-authentication-in-rails-3-1

我已经下载了代码,解压缩它并且我在auth-before目录中。

我运行bundle install,然后

Fetching source index for http://rubygems.org/ Could not find sprockets-2.0.0.beta.10 in any of the sources

我已经尝试过修复自己,我得到了这个:

Bundler could not find compatible versions for gem "sprockets":
  In Gemfile:
    sprockets (~> 2.0) ruby

    sass-rails (~> 3.1.0.rc) ruby depends on
      sprockets (2.0.0.beta.10)

我的宝石文件如下所示:

source 'http://rubygems.org'

gem 'rails', '3.1.0.rc4'

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

gem 'sqlite3'

# Asset template engines
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
gem 'uglifier'

gem 'jquery-rails'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :test do
  # Pretty printed test output
  gem 'turn', :require => false
end

我该怎么做才能解决这个问题?

更新

我按照下面的建议删除了sass-rails的版本号。当我运行更新命令时,我得到以下内容:

Bundler could not find compatible versions for gem "railties":
  In Gemfile:
    sass-rails (>= 0) ruby depends on
      railties (~> 3.1.0) ruby

    rails (= 3.1.0.rc4) ruby depends on
      railties (3.1.0.rc4

1 个答案:

答案 0 :(得分:5)

从Gemfile中删除sass-rails的版本限制,然后运行

bundle update sprockets sass-rails

sass-railssprockets现在都有稳定版本。