Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321543 - dev-ruby/rails-2.3.5: Warning: Gem::Dependency#version_requirements is deprecated
Summary: dev-ruby/rails-2.3.5: Warning: Gem::Dependency#version_requirements is deprec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL: http://github.com/rails/rails/commit/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 10:34 UTC by Kai Krakow
Modified: 2010-05-31 18:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Krakow 2010-05-26 10:34:15 UTC
Rails applications log the following message upon boot:

/usr/lib64/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.  Use #requirement

This is especially irritating if users run script/runner jobs via cron every some minutes.


$ emerge -p ~rails-2.3.5 ruby rubygems

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/ruby-1.8.7_p249 
[ebuild   R   ] dev-ruby/rubygems-1.3.7-r1 
[ebuild   R   ] dev-ruby/rails-2.3.5 


Reproducible: Always
Comment 1 Hans de Graaff gentoo-dev Security 2010-05-26 17:55:44 UTC
Fixed upstream (see URL). This will be in the forthcoming Rails 2.3.8, to be added in a few days.
Comment 2 Kai Krakow 2010-05-26 19:43:28 UTC
The fix should be backported to gentoo's ebuilds unless version will be bumped anyways.
Comment 3 Alex Legler (RETIRED) archtester gentoo-dev Security 2010-05-26 20:24:54 UTC
(In reply to comment #2)
> The fix should be backported to gentoo's ebuilds unless version will be bumped
> anyways.
> 

Not really, no. As Hans said, we'll shortly have packages for Rails 2.3.8. Until then you have to live with the warnings. If the warnings are so disturbing, might I suggest not using rubygems from ~arch?
Comment 4 Hans de Graaff gentoo-dev Security 2010-05-31 18:25:45 UTC
Rails 2.3.8 is now in CVS, so I'm closing this issue.