[Rubygems-developers] Gem::SourceIndex#search deprecation?

Eric Hodel drbrain at segment7.net
Mon Mar 23 17:52:52 EDT 2009

On Mar 21, 2009, at 09:29, Daniel Berger wrote:
> I installed the latest from svn, and ran a "gem clean ptools". I got  
> this warning:
> /usr/local/lib/ruby/site_ruby/1.8/rubygems/commands/ 
> cleanup_command.rb:45:Warning: Gem::SourceIndex#search support for  
> Regexp patterns is deprecated
> Why is regex search deprecated?

I'm trying to reduce code duplication.  Both Gem::SourceIndex and  
Gem::Dependency had code to turn a Regexp into a Gem::Dependency.  I'd  
rather have just Gem::Dependency have that code.

More information about the Rubygems-developers mailing list