GEM Version Requirements Deprecated

Posted by Kevin Sylvestre on Stack Overflow See other posts from Stack Overflow or by Kevin Sylvestre
Published on 2010-04-02T09:15:55Z Indexed on 2010/04/05 12:03 UTC
Read the original article Hit count: 324

Filed under:

When creating a new Rails project using:

rails sample

Then creating a model using:

script/generate model person first_name:string last_name:string

Everything is fine. However, if I add any gems to my environment.rb:

config.gem "authlogic"

And run the same generator, I get the following:

/Library/Ruby/Gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010.

The warning just recently appeared (I think), but I would like to fix it if possible. Any hints or similar experiences?

Thanks.

© Stack Overflow or respective owner

Related posts about ruby-on-rails