What's causing "support for RegExp patterns is deprecated" error?

railer:sphinx railer$ script/generate scaffold Dummy
Gem::SourceIndex#search support for Regexp patterns is deprecated
/Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/rails_generator/lookup.rb:
211:in `each’ is outdated
exists app/models/
exists app/controllers/


MAC OS X 10.5.5
1.8.6
railer:sphinx railer$ gem -v
1.3.0

railer:sphinx railer$ rails -v
Rails 2.1.1

railer:sphinx railer$ gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.3.0
  • RUBY VERSION: (2008-03-03 patchlevel 114) [universal-darwin9.0]
  • INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8
  • RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/
    Versions/1.8/usr/bin/ruby
  • EXECUTABLE DIRECTORY: /usr/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • universal-darwin-9
  • GEM PATHS:
    • /Library/Ruby/Gems/1.8
    • /Users/railer/.gem/ruby/1.8
    • /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
      ruby/gems/1.8
  • GEM CONFIGURATION:
  • REMOTE SOURCES:

On 4 Oct 2008, at 19:26, Jochen K. wrote:

railer:sphinx railer$ script/generate scaffold Dummy
Gem::SourceIndex#search support for Regexp patterns is deprecated
/Library/Ruby/Gems/1.8/gems/rails-2.1.1/lib/rails_generator/lookup.rb:
211:in `each’ is outdated
exists app/models/
exists app/controllers/

rubygems 1.3 is brand new, sounds like they’ve deprecated something
that current versions of rails use. It’s not an error, it’s a warning
that future versions of rubygems won’t support this (and that rails
should be fixed accordingly)

Fred