Ruby 升级到 2.4.0 后收到的一些 warning

lithium4010 · January 16, 2017 · Last by lithium4010 replied at January 16, 2017 · 4671 hits
/server/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.0/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.0/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/redis-3.3.2/lib/redis/client.rb:459: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/activejob-5.0.1/lib/active_job/arguments.rb:38: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/activejob-5.0.1/lib/active_job/arguments.rb:38: warning: constant ::Bignum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/redis-3.3.2/lib/redis/client.rb:459: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.0/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.0/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.0/lib/elasticsearch/transport/transport/base.rb:52: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/elasticsearch-transport-5.0.0/lib/elasticsearch/transport/transport/base.rb:54: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/redis-3.3.2/lib/redis/client.rb:459: warning: constant ::Fixnum is deprecated
/server/vendor/bundle/ruby/2.4.0/gems/redis-3.3.2/lib/redis/client.rb:459: warning: constant ::Fixnum is deprecated

Ruby 2.4.0 Released

Unify Fixnum and Bignum into Integer Though ISO/IEC 30170:2012 doesn’t specify details of the Integer class, Ruby had two visible Integer classes: Fixnum and Bignum. Ruby 2.4 unifies them into Integer. All C extensions which touch the Fixnum or Bignum class need to be fixed.

#3 楼 @platokon 嗯,这些 gem 好像还没有更新

lithium4010 closed this topic. 19 Jan 08:43
You need to Sign in before reply, if you don't have an account, please Sign up first.