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

fix: make specs pass with ruby 3.4 #1092

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Juanmcuello
Copy link

The hash serialization to string seems to be different in ruby 3.4:

$ chruby 3.3
$ ruby -e 'puts ({"a" => 1}).to_s'
{"a"=>1}

$ chruby 3.4
$ ruby -e 'puts ({"a" => 1}).to_s'
{"a" => 1}

This change makes specs to use the serialized string instead of the hardcoded string, so the output is now independent of the way the string is serialized.

The hash serialization to string seems to be different in ruby 3.4:

$ chruby 3.3
$ ruby -e 'puts ({"a" => 1}).to_s'
{"a"=>1}

$ chruby 3.4
$ ruby -e 'puts ({"a" => 1}).to_s'
{"a" => 1}

This change makes specs to use the serialized string instead of the hardcoded
string, so the output is now independent of the way the string is serialized.
@Juanmcuello Juanmcuello force-pushed the ruby-3.4-fix-hash-specs branch from 0df4a45 to cccfedd Compare January 12, 2025 02:33
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