Skip to content

Commit

Permalink
Update rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaca-tc committed Jul 4, 2024
1 parent 01f421b commit 627da4a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
32 changes: 19 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,19 @@ GEM
i18n (1.12.0)
concurrent-ruby (~> 1.0)
ice_nine (0.11.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
minitest (5.17.0)
parallel (1.22.1)
parser (3.1.2.0)
parallel (1.25.1)
parser (3.3.3.0)
ast (~> 2.4.1)
racc
racc (1.8.0)
rainbow (3.1.1)
rake (13.0.1)
regexp_parser (2.3.1)
rexml (3.2.8)
strscan (>= 3.0.9)
regexp_parser (2.9.2)
rexml (3.3.1)
strscan
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
Expand All @@ -58,24 +62,26 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.0)
rubocop (1.29.0)
rubocop (1.64.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.1.0.0)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.17.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.17.0)
parser (>= 3.1.1.0)
ruby-progressbar (1.11.0)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.31.3)
parser (>= 3.3.1.0)
ruby-progressbar (1.13.0)
strscan (3.1.0)
thread_safe (0.3.6)
timeliness (0.4.3)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
unicode-display_width (2.1.0)
unicode-display_width (2.5.0)
validates_timeliness (4.1.1)
timeliness (>= 0.3.10, < 1)
virtus (1.0.5)
Expand Down
2 changes: 1 addition & 1 deletion kirico.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Gem::Specification.new do |spec|

spec.add_development_dependency 'bundler', '>= 2.2.13'
spec.add_development_dependency 'factory_bot'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rubocop'
end
2 changes: 1 addition & 1 deletion lib/kirico/validators/sjis_bytesize_validator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SjisBytesizeValidator < ActiveModel::EachValidator
RESERVED_OPTIONS = %i[minimum maximum within is too_short too_long]

def initialize(options)
range = (options.delete(:in) || options.delete(:within))
range = options.delete(:in) || options.delete(:within)
if range
raise ArgumentError, ':in and :within must be a Range' unless range.is_a?(Range)

Expand Down

0 comments on commit 627da4a

Please sign in to comment.