Skip to content

Conversation

@orien
Copy link
Member

@orien orien commented Jan 9, 2022

Ruby 3.0 and 3.1 have been released. Let's test against these latest Ruby versions in the CI build.

Comment on lines +6 to +10
if RUBY_VERSION >= '3.0.0'
# SparkleFormation has an issue with Ruby 3 and the SortedSet class.
# Remove after merged: https://github.com/sparkleformation/sparkle_formation/pull/271
gem 'faux_sorted_set', require: false
end
Copy link
Member Author

@orien orien Jan 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SparkleFormation has a problem running on Ruby 3. It uses meta-programming to walk the object graph, which fails when visiting the SortedSet constant. This class was removed from the Ruby standard library in version 3.0. Now the standard library raises an informative error if the SortedSet constant is referenced when an implementation has not been provided via a gem.

Adding this gem resolves the problem by providing a fake SortedSet implementation.

Remove this work-around once a fix is merged and released. Perhaps sparkleformation/sparkle_formation#271

@orien orien merged commit 5f5238e into master Jan 25, 2022
@orien orien deleted the ruby-3 branch January 25, 2022 03:23
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.

3 participants