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

Update Rails and JS dependencies #266

Merged
merged 6 commits into from
Sep 30, 2020
Merged

Update Rails and JS dependencies #266

merged 6 commits into from
Sep 30, 2020

Conversation

ijdickinson
Copy link
Contributor

  • Fix sundry Rubocop warnings
  • Update Ruby dependencies
  • Update Javascript dependencies
  • Update version and changelog

Copy link
Contributor

@joescottdave joescottdave left a comment

Choose a reason for hiding this comment

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

Bit confused by the 0.0 => 0.0001 change
Looks good otherwise.

@@ -75,7 +75,7 @@ def to_value(val)
def format_percentage(change)
if change == 'unknown'
change
elsif change == 0.0
elsif change.abs <= 0.0001
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this change for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Rubocop was whining that exact comparisons (==) on floating point numbers are unreliable. While that is true for floating point in general, it shouldn't be true for 0.0. So a better change might have been to rubocop:disable that check on that line

Copy link
Contributor

@joescottdave joescottdave left a comment

Choose a reason for hiding this comment

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

Lgtm

@@ -75,7 +75,7 @@ def to_value(val)
def format_percentage(change)
if change == 'unknown'
change
elsif change == 0.0
elsif change.zero?
Copy link
Contributor

Choose a reason for hiding this comment

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

😄

@ijdickinson ijdickinson merged commit f7802e0 into dev Sep 30, 2020
@ijdickinson ijdickinson deleted the task/update-dependencies branch September 30, 2020 13:49
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