Dependency warning found on fresh rails 2.3.5 installation

hi guys,

I just installed rails 2.3.5 and ruby 1.9 on a new ubuntu karmic
koala machine.

For some silly reason, when I run “script/server”, I got the following
warning…

/usr/local/lib/ruby/gems/1.9.1/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.

This is a fresh installation. Why is this error surfacing?

also posted in
http://github.com/carlhuda/bundler/issues/issue/185/#comment_159206

ct9a wrote:

hi guys,

I just installed rails 2.3.5 and ruby 1.9 on a new ubuntu karmic
koala machine.

For some silly reason, when I run “script/server”, I got the following
warning…

/usr/local/lib/ruby/gems/1.9.1/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.

This is a fresh installation. Why is this error surfacing?

I assume you installed the latest version of RubyGems. I’m also getting
this warning. As far as I can tell it’s not causing any problems, and
the only way to fix it would be to fork Rails and fix it there.

So bottom line is, don’t worry about it unless it’s causing you
problems. I expect this will get fixed in the next release of Rails.

Yep. Thanks for that but I find it weird because on my older machine
which
runs rails 2.3.5 and ruby 1.8.7, it doesn’t happen.

I ran an fgrep on “vendor_requirements” and it’s all in the vendor
directory. I am not specifying it in my app files.
This is messed up

[email protected]:~/projects/myApp $ fgrep -Rn version_requirements *
vendor/gems/authlogic-2.1.1/.specification:19: version_requirements: !
ruby/object:Gem::Requirement
vendor/rails/railties/test/vendor/gems/dummy-gem-
g-1.0.0/.specification:14: version_requirements: !ruby/
object:Gem::Requirement
vendor/rails/railties/test/vendor/gems/dummy-gem-
f-1.0.0/.specification:14: version_requirements: !ruby/
object:Gem::Requirement
vendor/rails/railties/lib/tasks/framework.rake:27:
Gem::GemRunner.new.run([“unpack”, g.name, “–version”,
g.version_requirements.to_s])
vendor/rails/railties/lib/rails/gem_dependency.rb:70:
GemDependency.new(dependency.name, :requirement =>
dependency.version_requirements)
vendor/rails/railties/lib/rails/gem_dependency.rb:89:
version_requirements =
Gem::Requirement.create("=#{existing_spec.version}")
vendor/rails/railties/lib/rails/gem_dependency.rb:99: r =
version_requirements

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs