Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for unified Integer class in Ruby 2.4+ #439

Merged
merged 1 commit into from
Jul 11, 2016

Conversation

koic
Copy link

@koic koic commented Jun 22, 2016

Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005

Ruby ~2.3 1234.class is Fixnum and 123456789012345678901234567890.class is Bignum.
Ruby 2.4+ 1234.class is Integer and 123456789012345678901234567890.class is Integer.

So what we should do is defining visit_Integer method to visitors.

Backport of dc85a6e

Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005

Ruby ~2.3 `1234.class` is `Fixnum` and `123456789012345678901234567890.class`
is `Bignum`.
Ruby 2.4+ `1234.class` is `Integer` and `123456789012345678901234567890.class`
is `Integer`.

So what we should do is defining `visit_Integer` method to visitors.
@vipulnsward
Copy link
Member

LGTM

@sgrif sgrif merged commit 0bf38d2 into rails:6-0-stable Jul 11, 2016
@koic koic deleted the backport-integer branch July 11, 2016 15:13
amatsuda added a commit to amatsuda/bullet that referenced this pull request Aug 11, 2024
Rails < 4.2 that require Arel < 6 doesn't seem to run on Ruby >= 2.5 due
to this bug that was never backported to Arel < 6
rails/arel#439

And now that we support Ruby >= 2.7 only, no supported version of Ruby
can run Rails < 4.2.
amatsuda added a commit to amatsuda/bullet that referenced this pull request Aug 11, 2024
Rails < 4.2 that require Arel < 6 doesn't seem to run on Ruby >= 2.5 due
to this bug that was never backported to Arel < 6
rails/arel#439

And now that we support Ruby >= 2.7 only, no supported version of Ruby
can run Rails < 4.2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants