I just had the same problem trying to push my app to heroku and none of the above answers fixed it.
I solved the issue by emptying my RVM Gemset with rvm gemset empty
, deleting my Gemfile.lock (probably best to just rename it) and reinstalling my gems. Pushing worked fine after this.