Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Fix Fixnum Bignum deprecation warning #220

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sfcgeorge
Copy link

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.

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](https://github.com/jeremy/rails/blob/b9bda7fd891147a0bc0cffa6dd9d15601be8b472/activesupport/lib/active_support/core_ext/numeric/conversions.rb#L131) to support both older and newer versions of Ruby.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant