Skip to content

Commit 6215d34

Browse files
Update rubocop requirement from ~> 1.76.1 to ~> 1.77.0 (#316)
* Update rubocop requirement from ~> 1.76.1 to ~> 1.77.0 Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v1.76.1...v1.77.0) --- updated-dependencies: - dependency-name: rubocop dependency-version: 1.77.0 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * Fix lint --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: なつき <[email protected]>
1 parent 15b15d5 commit 6215d34

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ gemspec
77
group :development do
88
gem 'rake', '>= 13'
99
gem 'rspec', '~> 3.13.0'
10-
gem 'rubocop', '~> 1.76.1'
10+
gem 'rubocop', '~> 1.77.0'
1111
gem 'rubocop-performance', '~> 1.25.0'
1212
gem 'rubocop-rake', '~> 0.7.1'
1313
gem 'rubocop-rspec', '~> 3.6.0'

lib/sass/value/color.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -421,9 +421,9 @@ def _to_space(space)
421421
def _in_gamut?
422422
return true unless _space.bounded?
423423

424-
_is_channel_in_gamut(channel0, _space.channels[0]) &&
425-
_is_channel_in_gamut(channel1, _space.channels[1]) &&
426-
_is_channel_in_gamut(channel2, _space.channels[2])
424+
_is_channel_in_gamut?(channel0, _space.channels[0]) &&
425+
_is_channel_in_gamut?(channel1, _space.channels[1]) &&
426+
_is_channel_in_gamut?(channel2, _space.channels[2])
427427
end
428428

429429
def _to_gamut(method)
@@ -485,7 +485,7 @@ def _normalize_hue(hue, invert:)
485485
((hue % 360) + 360 + (invert ? 180 : 0)) % 360
486486
end
487487

488-
def _is_channel_in_gamut(value, channel)
488+
def _is_channel_in_gamut?(value, channel)
489489
case channel
490490
when LinearChannel
491491
FuzzyMath.less_than_or_equals?(value, channel.max) && FuzzyMath.greater_than_or_equals?(value, channel.min)

0 commit comments

Comments
 (0)