title: How to hack boot.rb to stop annoying warning? Gem::SourceIndex#search support for String patterns is deprecated
body: <p>Everytime I run rake or most rails commands, I get an annoying warning.  I'm still a beginner with Ruby/Rails, and I would like advice on how to hack boot.rb to stop the annoying warning.  I'm using Rails 1.2.6 and RubyGems 1.3.1.  (I haven't upgraded Rails to 2.x because I'm still learning Rails from a book that uses 1.2.x.)  I'm grateful for any advice.  I've been unable to find a solution through googling.  Thanks!</p>
  
  <p>boot.rb line 20:</p>
  
  <pre><code>rails_gem = Gem.cache.search('rails', "=#{rails_gem_version}.0").sort_by { |g| g.version.version }.last
  </code></pre>
  
  <p>Annoying message:</p>
  
  <pre><code>boot.rb:20:Warning: Gem::SourceIndex#search support for String patterns is deprecated
  </code></pre>