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 gem version comparison #45

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

MassimilianoLattanzio
Copy link
Collaborator

Previously, we transformed the gem version to a float because we wanted to compare numbers.

That was causing an issue with 0-ending strings.
For example, "2.10".to_f will be transformed into 2.1 float number.

This PR solves the issue comparing Gem::Version.

Previously, we transformed the gem version to a float
because we wanted to compare numbers.

That was causing an issue with 0-ending strings.
For example, `"2.10".to_f` will be transformed into `2.1` float number.

This commit solves the issue comparing Gem::Version.
Copy link
Collaborator

@DanielePalombo DanielePalombo left a comment

Choose a reason for hiding this comment

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

LGTM

@MassimilianoLattanzio MassimilianoLattanzio merged commit 7b7e07b into master Jul 17, 2023
@MassimilianoLattanzio MassimilianoLattanzio deleted the ml/fix-gem-version-comparison branch July 17, 2023 07:19
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