Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 321543

Summary: dev-ruby/rails-2.3.5: Warning: Gem::Dependency#version_requirements is deprecated
Product: Gentoo Linux Reporter: Kai Krakow <hurikhan77+bgo>
Component: Current packagesAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://github.com/rails/rails/commit/268c9040d5c3c7ed30f3923eee71a78eeece8a8a
Whiteboard:
Package list:
Runtime testing required: ---

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.