今天早上,当我尝试更新我的网站时,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文件中没有paperclip- 3.1.3。我不确定为什么要找回纸夹3.1.3 这是我的宝石文件
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
答案 0 :(得分:1)
Paperclip 3.1.3版由于某种原因被“猛拉”。您可以在RubyGems page for that version上看到这一点。显然,你的Gemfile在这个Gem可用的短暂时期内被捆绑了。
如果你不想升级到最新版本(3.3.1),版本3.1.4是它的直接替代品。
要使用此功能,您应该将Gemfile更新为:
gem 'paperclip', '~> 3.1.4'
编辑Gemfile后运行bundle update paperclip
。
“我的宝石文件中没有paperclip- 3.1.3。我不确定为什么要找回纸夹3.1.3”
~>3.0
就像在说>=3.0
和<4.0
。因此3.1.3是有效的。相关文档可在Bundler website上找到。