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
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [2.6, 2.7, "3.0", 3.1]
ruby: [2.6, 2.7, "3.0", 3.1, 3.2, 3.3]
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ rvm:
- "1.9.2"
- "1.9.3"
- "2.0.0"
- "2.4.0"
- "3.0.0"
- "3.3.0"
- jruby
- rbx

Expand Down
2 changes: 1 addition & 1 deletion lib/paggio/css/unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def to_u
end
end

[Fixnum, Float].each {|klass|
(Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4.0') ? [Fixnum, Float] : [Integer, Float]).each {|klass|
klass.class_eval {
alias old_percent %

Expand Down