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.
Merge pull request #21 from mothra/ruby2

updated rake task for Ruby 2.0 compatibility