Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warnings after upgrading to ruby 2.2.0

/gems/htmlentities-4.3.2/lib/htmlentities/mappings/expanded.rb:465: warning: duplicated key at line 466 ignored: "inodot"

/gems/ruby-2.2.0/gems/fog-core-1.25.0/lib/fog/core/collection.rb:144: warning: circular argument reference - filters

The obvious suspicion is that these gems don't like ruby 2.2.0, but things seem to be working

Should I fear future, imminent failures, or has these gems just haven't caught up yet?

like image 749
Nick Ginanto Avatar asked Dec 27 '14 17:12

Nick Ginanto


2 Answers

Both problems were solved in newer versions of these gems.

If I am depending on gems like that, I usually wait a little bit before switching the project to the latest and greatest ruby in production. Gems need time to get compatible with all the changes.

like image 103
Samer Buna Avatar answered Sep 23 '22 09:09

Samer Buna


I to have like this error when install redmine 3.2: /usr/lib/ruby/gems/2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: key "inodot" is duplicated and overwritten on line 466

All is simple - just edit this file and remove duplicated line!)

But sometimes need just check your htmlentities version and remove not needed

gem list htmlentities
gem uninstall htmlentities -v '4.x.x'
like image 38
Olexandr Minzak Avatar answered Sep 23 '22 09:09

Olexandr Minzak