$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ rails -v
Rails 2.3.5
Whenever I run script/server
I get this warning:
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119: \
Warning: Gem::Dependency#version_requirements is deprecated and \
will be removed on or after August 2010. Use #requirement
What can I do about it?
Should I upgrade Rails or some part of Rails?
Or is there something else I should do to address the warning?
I'm not sure what they mean by "Use#requirement
". Where should I use it?
BTW, I'm not ready to switch to Rails 3 yet. I would have to update too many production apps and I don't have time right now. So a solution that keeps me on Rails 2.x is best.
My environment.rb
file:
require File.join(File.dirname(__FILE__), 'boot')
Rails::Initializer.run do |config|
config.gem('haml', :source => 'http://gemcutter.org')
config.gem('fastercsv', :source => 'http://gemcutter.org')
config.gem('ruby-net-ldap', :lib => 'net/ldap', :source => 'http://gemcutter.org')
config.gem('paperclip', :source => 'http://gemcutter.org')
config.gem('searchlogic', :source => 'http://gemcutter.org')
config.action_controller.session = {
:session_key => '_employeedata_session',
:secret => '...'
}
config.active_record.schema_format = :sql
config.time_zone = 'Pacific Time (US & Canada)'
config.after_initialize do
ExceptionNotifier.exception_recipients = %w( ... )
ExceptionNotifier.sender_address = %( ... )
ExceptionNotifier.email_prefix = "[Employee Data app error] "
end
end