From 27969c3077284c36c7043c4a89bc1d6c09237cde Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 4 Sep 2025 04:14:01 -0400 Subject: [PATCH] Update rubocop to version 1.80.2 (#36007) --- .rubocop_todo.yml | 2 +- Gemfile.lock | 6 +++--- lib/paperclip/color_extractor.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 68ed0ac6c8..0cc9c8d8fc 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --auto-gen-only-exclude --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.79.2. +# using RuboCop version 1.80.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new diff --git a/Gemfile.lock b/Gemfile.lock index 93ed9eb601..0f6f85585c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -771,7 +771,7 @@ GEM rspec-mocks (~> 3.0) sidekiq (>= 5, < 9) rspec-support (3.13.4) - rubocop (1.79.2) + rubocop (1.80.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -801,7 +801,7 @@ GEM rack (>= 1.1) rubocop (>= 1.75.0, < 2.0) rubocop-ast (>= 1.44.0, < 2.0) - rubocop-rspec (3.6.0) + rubocop-rspec (3.7.0) lint_roller (~> 1.1) rubocop (~> 1.72, >= 1.72.1) rubocop-rspec_rails (2.31.0) @@ -903,7 +903,7 @@ GEM unf (0.1.4) unf_ext unf_ext (0.0.9.1) - unicode-display_width (3.1.4) + unicode-display_width (3.1.5) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) uri (1.0.3) diff --git a/lib/paperclip/color_extractor.rb b/lib/paperclip/color_extractor.rb index e0cdfdb523..62daa07795 100644 --- a/lib/paperclip/color_extractor.rb +++ b/lib/paperclip/color_extractor.rb @@ -182,9 +182,9 @@ module Paperclip t += 1 if t.negative? t -= 1 if t > 1 - return (p + ((q - p) * 6 * t)) if t < 1 / 6.0 + return p + ((q - p) * 6 * t) if t < 1 / 6.0 return q if t < 1 / 2.0 - return (p + ((q - p) * ((2 / 3.0) - t) * 6)) if t < 2 / 3.0 + return p + ((q - p) * ((2 / 3.0) - t) * 6) if t < 2 / 3.0 p end