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

lithium4010 · 2017年01月16日 · 最后由 lithium4010 回复于 2017年01月16日 · 4688 次阅读
/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 关闭了讨论。 01月19日 08:43
需要 登录 后方可回复, 如果你还没有账号请 注册新账号