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

Handle Fixnum and Bignum being merged into Integer in Ruby 2.4 #11

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

Conversation

exastencil
Copy link

I've noticed that Paggio doesn't load in versions of Ruby since 2.4. When monkey-patching numeric classes to handle CSS unit calculations it raises when it encounters Fixnum which no longer exists since Ruby 2.4.0.

I'm not sure whether the Travis CI or Github workflows are being honoured because Travis CI doesn't have versions after 2.4 so this is the only place specs should pass, but the latest commit references the Github workflow and all versions there are after 2.4 so it seems the goal is not to support pre-2.4 Rubies anymore. So I've added the major versions to both.

In case the goal is to support older and newer Ruby versions I put a conditional to only patch the correct classes. My recommendation is to release a new version, and set the gemspec to require at least Ruby 2.4 and do away with testing the older versions. I didn't want to presume and do it that, but let me know and I can make that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant