I am trying to git push heroku but have been getting the same error below
For anyone else who lands here...
I had the same exact error, and in my case it was because of errors in my Gemfile.
The Gemfile causing the errors:
source "http://rubygems.org"require 'gem-name-here'require 'another-gem-here'
Which should've been:
source "http://rubygems.org"gem 'gem-name-here'gem 'another-gem-here'
(I copied the "require" lines from the ruby script file I was working on, and forgot to change them to say "gem" instead.)