After a time machine migration, some ruby related programs (heroku gem, rails) didn't work anymore. After not getting it fixed with different approaches, I figured that a fresh ruby/rubygems install should do the trick...
Unfortunately I'm not able to get a clean ruby install with homebrew! When I remove ruby and install it again, I get all previously installed gems back. And also rails still does not work. I also tried "brew install --fresh" and deleting the gem folder before removal with brew, the same result!
I have no clue where the gems come from! How do I get homebrew to install a completely fresh ruby version with fresh rubygems?