hyper-react icon indicating copy to clipboard operation
hyper-react copied to clipboard

Fix Fixnum Bignum deprecation warning

Open sfcgeorge opened this issue 8 years ago • 0 comments

Ruby 2.4 unifies Fixnum and Bignum into Integer and prints a warning if the old constants are accessed. hyper-react causes this warning to be printed on boot:

lib/reactive-ruby/serializers.rb:1: warning: constant ::Bignum is deprecated
lib/reactive-ruby/serializers.rb:1: warning: constant ::Fixnum is deprecated

I've fixed this in the same way as Rails to support both older and newer versions of Ruby.

sfcgeorge avatar Sep 18 '17 10:09 sfcgeorge