Skip to content

Replace Fixnum with Integer and assert_equal(nil,...) with assert_nil(...)#5

Open
jolohaga wants to merge 2 commits into
arirusso:masterfrom
jolohaga:master
Open

Replace Fixnum with Integer and assert_equal(nil,...) with assert_nil(...)#5
jolohaga wants to merge 2 commits into
arirusso:masterfrom
jolohaga:master

Conversation

@jolohaga

@jolohaga jolohaga commented Jun 4, 2026

Copy link
Copy Markdown

The presence of the Fixnum class in the Composite module is causing runtime errors with current versions of Ruby. Fixnum was deprecated with Ruby 2.4 and replaced with the Integer class.

Additionally, Minitest requires the method assert_nil(…) instead of assert_equal(nil,…).

These two commits fix these issues.

@arirusso I'm glad to have found your gem. I'm successfully using the patched version with Ruby 3.3.6 on a generative music project.

jolohaga added 2 commits June 4, 2026 11:26
Fixnum is deprecated since Ruby 2.4 and replaced by Integer.

This commit replaces all references to Fixnum with Integer.
The tests for nil fail unless using assert_nil.

This commit replaces assert_equal(nil,...) with assert_nil(...).
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