Skip to content

Add support for ruby 2.7.5 - rational doesnt need to be required #510

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

Closed

Conversation

androidStern
Copy link

require 'rational' throws a LoadError in ruby 2.7.5 because the Rational class is now included without needing to require it. I've added a backwards compatible way to require rational when dealing with version of ruby need it.

@andyundso
Copy link
Member

Hi @androidStern, thanks for the contribution! We removed the rational requirement in the meantime back when Rubocop was introduced. so, technically Rubcop removed it.

andyundso@c4873cd

@andyundso andyundso closed this May 29, 2025
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.

2 participants