在2016年12月27日Nokogiri宝石更新之前,一切似乎都很好,这就是它在heroku日志中所说的,我似乎无法找到如何解决它。它适用于开发,它只是不推送到heroku。提前谢谢
enter code here.
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
###### WARNING:
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
In rare occasions Bundler may not be able to resolve your dependencies at all.
https://devcenter.heroku.com/articles/bundler-windows-gemfile
-----> Installing dependencies using bundler 1.13.6
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
nokogiri-1.7.0 requires ruby version >= 2.1.0, which is incompatible with the
current version, ruby 2.0.0p648
Bundler Output: Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
nokogiri-1.7.0 requires ruby version >= 2.1.0, which is incompatible with the
current version, ruby 2.0.0p648
!
! Failed to install gems via Bundler.
!
! Push rejected, failed to compile Ruby app.
! Push failed
答案 0 :(得分:2)
您可以将gemfile更新为兼容的版本: 例如:
gem'nokogiri','〜> 1.5.9'