Hi,

When I execute gem install with --test, it says "Gem::SourceIndex#search
support for String patterns is deprecated".


$ gem19 install ramaze --test
============================================================

Thank you for installing Ramaze!
You can now do following:

* Create a new project using the `ramaze' command:
    ramaze --create yourproject

============================================================
Successfully installed ramaze-2008.06
1 gem installed
Installing ri documentation for ramaze-2008.06...
Updating class cache with 1878 classes...
Installing RDoc documentation for ramaze-2008.06...
Gem::SourceIndex#search support for String patterns is deprecated
/home/mame/work/ruby19/local/lib/ruby/1.9.0/rubygems/commands/install_command.rb:134:in
`block in execute' is outdated
(snip)


Here is an instant patch.  I'm not familiar with rubygems, so it may be
wrong.


Index: lib/rubygems/commands/install_command.rb
===================================================================
--- lib/rubygems/commands/install_command.rb	(revision 19769)
+++ lib/rubygems/commands/install_command.rb	(working copy)
@@ -131,7 +131,8 @@

     if options[:test] then
       installed_gems.each do |spec|
-        gem_spec =
Gem::SourceIndex.from_installed_gems.search(spec.name,
spec.version.version).first
+        dep = Gem::Dependency.new spec.name, spec.version.version
+        gem_spec = Gem::SourceIndex.from_installed_gems.search(dep).first
         result = Gem::Validator.new.unit_test(gem_spec)
         if result and not result.passed?
           unless ask_yes_no("...keep Gem?", true) then

-- 
Yusuke ENDOH <mame / tsg.ne.jp>