Invalid Rails Warning

I have been trying to get rid of these outdated warnings for 2 weeks now with no luck. Would really appreciate if someone could point me in the right direction.

First warning

WARNING: using the built-in Timeout class which is known to have issues when used for opening connections. Install the SystemTimer gem if you want to make sure the Redis client will not hang. 

Second warning

 /Users/ChuckJHardy/.rvm/gems/ree-1.8.7-2010.02/gems/bundler-1.0.7/lib/bundler/shared_helpers.rb:101:Warning: Gem::LoadError#version_requirement= is deprecated and will be removed on or after January 2011. Use #requirement. 

Third warning

 /Users/ChuckJHardy/Code/Sites/www/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 
+4
source share
3 answers

OK, this is a side solution. Put this in your environment file or initializers.

 ActiveSupport::Deprecation.silenced = true 
0
source

The first error comes from REDIS. Judging by googling 's quick search , it comes when Redis tries to load the gem system_timer. Try adding this to your gems and see if it resolves.

The second and third errors look like this problem in rails 2.3.5 and Ruby Enterprise Edition. Additional information about the lighthouse , including a couple of corrections.

+3
source

For the first, just install the SystemTimer gem according to the instructions.

 rvmsudo gem install systemtimer 

For the next two, upgrade rubygems.

 rvmsudo gem update --system 
+2
source

Source: https://habr.com/ru/post/1335731/


All Articles