0

今天早上,当我尝试更新我的网站时,heroku 没有让我推送应用程序。这是我收到的信息。

Fetching gem metadata from http://rubygems.org/.......
   Fetching gem metadata from http://rubygems.org/..
   Fetching git://github.com/drhenner/nifty-generators.git
   Could not find paperclip-3.1.3 in any of the sources
!
!     Failed to install gems via Bundler.
!
!     Heroku push rejected, failed to compile Ruby/rails app

! [remote rejected] master -> master (pre-receive hook declined)

我的 gem 文件中没有回形针 3.1.3。我不确定它为什么要寻找回形针 3.1.3 这是我的 gem 文件

source 'http://rubygems.org'

gem 'rails', '~> 3.2.6'
gem 'asset_sync'
group :assets do
  gem 'uglifier', '>= 1.0.3'
end
gem 'sass-rails', "  ~> 3.2.3"

gem "activemerchant",  '~> 1.17.0' #, :lib => 'active_merchant'
gem 'authlogic', "3.0.3"
gem 'bluecloth',     '~> 2.1.0'
gem 'cancan', '~> 1.6.7'
gem 'compass', '~> 0.12.rc.0'
gem 'compass-rails'
gem 'dalli', '~> 1.1.5'

gem "friendly_id", "~> 3.3"
gem 'haml',  ">= 3.0.13"#, ">= 3.0.4"#, "2.2.21"#,
gem "jquery-rails"

gem 'aws-sdk'

group :production do
  gem  'pg'
  gem 'thin'
end

gem 'nested_set', '~> 1.6.3'
gem 'nokogiri', '~> 1.5.0'
gem 'paperclip', '~> 3.0'
gem 'prawn', '~> 0.12.0'

gem 'rails3-generators', '~> 0.17.0'
gem 'rmagick',    :require => 'RMagick'

gem 'rake', '~> 0.9.2'
gem 'state_machine', '~> 1.1.2'

gem 'sunspot_solr'
gem 'sunspot_rails', '~> 1.3.0rc'

gem 'will_paginate', '~> 3.0.0'
gem 'dynamic_form'

group :development do
  gem 'sqlite3'

  gem "autotest-rails-pure"

  gem "rails-erd"
  gem "ruby-debug19"

end
group :test, :development do
  gem "rspec-rails", "~> 2.8.0"
  gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git'
  gem 'launchy'
  gem 'database_cleaner'
end

group :test do
  gem 'factory_girl', "~> 3.3.0"
  gem 'factory_girl_rails', "~> 3.3.0"
  gem 'mocha', '~> 0.10.0', :require => false
  gem 'rspec-rails-mocha'
  gem "rspec",        "~> 2.8.0"
  gem "rspec-core",         "~> 2.8.0"
  gem "rspec-expectations", "~> 2.8.0"
  gem "rspec-mocks",        "~> 2.8.0"
  gem 'email_spec'
  gem "faker"
  gem "autotest", '~> 4.4.6'
  gem "autotest-rails-pure"
  gem "autotest-growl"
  gem "ZenTest", '4.6.2'

end
4

1 回答 1

1

Paperclip 3.1.3 版由于某种原因被“猛拉”。您可以在该版本的 RubyGems 页面上看到这一点。显然,您的 Gemfile 是在此 Gem 可用的短暂时间内捆绑在一起的。

如果您不想升级到最新版本 (3.3.1),它会立即替换 3.1.4 版本。

要使用它,您应该更新您的 Gemfile 以读取:

gem 'paperclip', '~> 3.1.4'

bundle update paperclip编辑 Gemfile 后运行。

“我的 gem 文件中没有回形针 - 3.1.3。我不确定它为什么要寻找回形针 3.1.3”

~>3.0就像说>=3.0and <4.0。因此 3.1.3 是有效的。相关文档可在Bundler 网站上找到

于 2012-12-01T23:00:00.783 回答