updated rake task for Ruby 2.0 compatibility

Gem.searcher is deprecated, so I updated the rake task to use
Gem::Specification.find_all_by_name instead.