Heroku, Zentest, Rails 3 - error on push

I'm trying to push the hero git push heroku master

. And I have this error.

 Fetching source index for http://rubygems.org/
       Installing rake ( 
       Installing ZenTest (4.6.2) /usr/ruby1.9.2/lib/ruby/1.9.1/rubygems/installer.rb:170:in `install': ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself. (Gem::InstallError)


But I don't need ZenTest at all. I removed this gem from my gemfile.

Now my gemfile looks like this

source 'http://rubygems.org'

gem 'rails', '3.1.1'
gem 'sqlite3'
gem 'jquery-rails'
gem "rmagick"
gem "carrierwave"

#gem 'compass_twitter_bootstrap'
#gem 'gravatar_image_tag', '1.0.0.pre2'

group :development do
  #gem 'rspec-rails', '2.6.1'
  #gem 'annotate', '2.4.0' 

group :test do
  #gem 'rspec-rails', '2.6.1'
  #gem 'webrat', '0.7.1'
   gem 'turn', :require => false 


group :assets do
  gem 'sass-rails',   '~> 3.1.4'
  gem 'coffee-rails', '~> 3.1.1'
  gem 'uglifier', '>= 1.0.3'
  gem 'twitter-bootstrap-rails'


source :gemcutter
    gem 'sinatra', '1.0'


Then run rvmsudo bundle to remove it from gemfile.lock.

But I still have this error. What can you do about it?


source to share

2 answers

Did you run git commit after changing the gemfile?



OP didn't need this ZenTest test stone, but for those who got here due to heroku not being able to use ZenTest 4.7.0 (which may be required by some dependency stone, for example RubyInline

), use gem 'ZenTest', '~> 4.3.0'

in your GemFile (hopefully this version is sufficient).

A later version is probably also supported, not tested.




All Articles