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 riemann-wrapper with older Ruby #290

Merged
merged 1 commit into from
May 30, 2024
Merged

Fix riemann-wrapper with older Ruby #290

merged 1 commit into from
May 30, 2024

Conversation

smortex
Copy link
Member

@smortex smortex commented May 30, 2024

This reverts commit b4254bd.

The YAML.safe_load_file function was added in Psych 3.2.1, but only Ruby
3 and newer provide this version of the Psych library. Since this gem
is supposed to work with older (EOL) Ruby versions, revert this for now.

At some point we will drop support for EOL Ruby, but it will be a
backwards incompatbile change and there is no hurry for that at the
moment, and some supported Linux distro still ship these legacy Ruby
versions.

This reverts commit b4254bd.

The YAML.safe_load_file function was added in Psych 3.2.1, but only Ruby
3 and newer provide this version of the Psych library.  Since this gem
is supposed to work with older (EOL) Ruby versions, revert this for now.

At some point we will drop support for EOL Ruby, but it will be a
backwards incompatbile change and there is no hurry for that at the
moment, and some supported Linux distro still ship these legacy Ruby
versions.
@smortex smortex added bug Something isn't working skip-changelog Excluded from CHANGELOG labels May 30, 2024
@smortex
Copy link
Member Author

smortex commented May 30, 2024

When this was introduced in #285, the rubocop configuration was probably messed-up and not targeting the version or Ruby from the .gemspec file.

This has never been released, so also label the issue as skip-changelog because this fix is not something that will be visible to end-users.

@smortex smortex marked this pull request as ready for review May 30, 2024 18:08
Copy link
Member

@jamtur01 jamtur01 left a comment

Choose a reason for hiding this comment

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

Makes sense to me.

@jamtur01 jamtur01 merged commit faf49d1 into main May 30, 2024
7 checks passed
@smortex smortex deleted the fix-legacy-ruby branch May 30, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working skip-changelog Excluded from CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants