If you’re getting Ruby Gem deprecation warnings (eg: after switching to Ruby 1.9.2) you can most likely fix it by doing the following.
1. Take note of the accused Ruby Gem.
NOTE: Gem::Specification#default_executable= is deprecated with no replacement. It will be removed on or after 2011-10-01. Gem::Specification#default_executable= called from /home/**username**/.rvm/gems/ruby-1.9.2-p180@global/specifications/rake-0.8.7.gemspec:10.
In the case of above it’s Rake.
2. Run the following to pristine that Gem
gem pristine rake
You can also apparently go ahead and pristine all your gems. However only did it to the ones throwing warnings. If you want to pristine all, fee free.
gem pristine --all --no-extensions