File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 7
7
group :development do
8
8
gem 'rake' , '>= 13'
9
9
gem 'rspec' , '~> 3.13.0'
10
- gem 'rubocop' , '~> 1.76.1 '
10
+ gem 'rubocop' , '~> 1.77.0 '
11
11
gem 'rubocop-performance' , '~> 1.25.0'
12
12
gem 'rubocop-rake' , '~> 0.7.1'
13
13
gem 'rubocop-rspec' , '~> 3.6.0'
Original file line number Diff line number Diff line change @@ -421,9 +421,9 @@ def _to_space(space)
421
421
def _in_gamut?
422
422
return true unless _space . bounded?
423
423
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 ] )
427
427
end
428
428
429
429
def _to_gamut ( method )
@@ -485,7 +485,7 @@ def _normalize_hue(hue, invert:)
485
485
( ( hue % 360 ) + 360 + ( invert ? 180 : 0 ) ) % 360
486
486
end
487
487
488
- def _is_channel_in_gamut ( value , channel )
488
+ def _is_channel_in_gamut? ( value , channel )
489
489
case channel
490
490
when LinearChannel
491
491
FuzzyMath . less_than_or_equals? ( value , channel . max ) && FuzzyMath . greater_than_or_equals? ( value , channel . min )
You can’t perform that action at this time.
0 commit comments