Seen when running scripts/console, Ruby version not important. What is this telling me? Loading development environment (Rails 2.3.5) /opt/local/lib/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 Checking gem_dependency.rb shows: 118: def requirement 119: r = version_requirements 120: (r == Gem::Requirement.default) ? nil : r 121: end which function, if commented out, shuts off the warning. Of course, replacing "version_requirements" with "requirement" produces the expected recursive stack level error. Any thoughts? Rick -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Prabu Duraisamy
2010-Jul-13 18:56 UTC
Re: Gem::Dependency#version_requirements is deprecated...
Rick Lloyd wrote:> Seen when running scripts/console, Ruby version not important. > > What is this telling me? > > Loading development environment (Rails 2.3.5) > /opt/local/lib/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 > > Checking gem_dependency.rb shows: > > 118: def requirement > 119: r = version_requirements > 120: (r == Gem::Requirement.default) ? nil : r > 121: end > > which function, if commented out, shuts off the warning. Of course, > replacing "version_requirements" with "requirement" produces the > expected recursive stack level error. > > Any thoughts? > > RickHi Its may be problem of gem version you have installed. I have also face same problem with rails 2.3.2 and gem 1.3.7. Solution may here it is follow the URL http://github.com/rails/rails/commit/268c9040d5c3c7ed30f3923eee71a78eeece8a8a But I get an another error `method_defined?'' for #<Rails::GemDependency:0x2da16d0> (NoMethodError) Any Solution for this? Thanks in advance -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Reasonably Related Threads
- delayed)_job gem installation issue
- Memcached: "no such file to load -- memcache-client" when running script/console
- no such file to load -- ZenTest but I have already installed ZenTest
- `method_missing_without_paginate': undefined method `class_attribute' for ActiveRecord::Base:Class
- `load_missing_constant': uninitialized constant Rails::Railt