Forum: Ruby on Rails What's causing "support for RegExp patterns is deprecated" error?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dbd101103dfae8f49477547dafe0eecb?d=identicon&s=25 Jochen Kaechelin (Guest)
on 2008-10-04 20:26
(Received via mailing list)
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:
      - :update_sources => true
      - :verbose => true
      - :benchmark => false
      - :backtrace => false
      - :bulk_threshold => 1000
      - :sources => ["http://gems.rubyforge.org/",
"http://gems.github.com
"]
   - REMOTE SOURCES:
      - http://gems.rubyforge.org/
      - http://gems.github.com
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2008-10-04 23:57
(Received via mailing list)
On 4 Oct 2008, at 19:26, Jochen Kaechelin 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
This topic is locked and can not be replied to.