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 rubocop 1.46.0 → 1.59.0 (minor) #337

Merged
merged 2 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,15 @@ GEM
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (2.6.3)
json (2.7.1)
json_api_client (1.21.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
addressable (~> 2.2)
faraday (>= 0.15.2, < 2.0)
faraday_middleware (>= 0.9.0, < 2.0)
rack (>= 0.2)
language_server-protocol (3.17.0.3)
launchy (2.5.2)
addressable (~> 2.8)
listen (3.8.0)
Expand Down Expand Up @@ -198,9 +199,10 @@ GEM
nokogiri (1.16.0-x86_64-linux)
racc (~> 1.4)
oj (3.14.2)
parallel (1.22.1)
parser (3.2.1.0)
parallel (1.24.0)
parser (3.3.0.2)
ast (~> 2.4.1)
racc
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand Down Expand Up @@ -250,28 +252,29 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
regexp_parser (2.8.3)
regexp_parser (2.9.0)
rexml (3.2.6)
roo (2.8.3)
nokogiri (~> 1)
rubyzip (>= 1.3.0, < 3.0.0)
rubocop (1.46.0)
rubocop (1.59.0)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.2.0.0)
parser (>= 3.2.2.4)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 1.8, < 3.0)
rexml (>= 3.2.5, < 4.0)
rubocop-ast (>= 1.26.0, < 2.0)
rubocop-ast (>= 1.30.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.26.0)
rubocop-ast (1.30.0)
parser (>= 3.2.1.0)
rubocop-rails (2.17.4)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
ruby-progressbar (1.11.0)
ruby-progressbar (1.13.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
sassc (2.4.0)
Expand Down Expand Up @@ -313,7 +316,7 @@ GEM
concurrent-ruby (~> 1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.4.2)
unicode-display_width (2.5.0)
webrick (1.7.0)
websocket (1.2.10)
websocket-driver (0.7.6)
Expand Down
2 changes: 1 addition & 1 deletion app/models/presenter/tag_layout_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Presenter::TagLayoutTemplate < Presenter::Template

def grouped_templates
compatible_templates.group_by do |template|
template_is_suggested = (suggested_names == :all || suggested_names.include?(template.name))
template_is_suggested = suggested_names == :all || suggested_names.include?(template.name)
template_is_suggested ? 'Suggested Templates' : 'Other Templates'
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/qc_asset_creator/multiple_tag2_conversion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def all_tag2_locations
end

def each_tag2_template_with_tube_and_locations
tag2_tubes_barcodes.each do |index, barcode|
tag2_tubes_barcodes.each_value do |barcode|
qcable = tag2_qcables[barcode]
yield qcable.lot.template.uuid, qcable.asset.uuid, tag2_locations_for_barcode(barcode)
end
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def respond_to?(method, include_private = false)
super || instance.respond_to?(method, include_private)
end

def method_missing(method, *args, &)
instance.send(method, *args, &)
def method_missing(method, *, &)
instance.send(method, *, &)
end
protected :method_missing

Expand Down
10 changes: 5 additions & 5 deletions test/mock_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def initialize(parent, resource_name, records)

##
# Method missing first tries passing things on to the association array
def method_missing(method_name, *args, &)
return @records.send(:"#{method_name}", *args, &) if @records.respond_to?(:"#{method_name}")
def method_missing(method_name, *, &)
return @records.send(:"#{method_name}", *, &) if @records.respond_to?(:"#{method_name}")
super
end

Expand Down Expand Up @@ -206,9 +206,9 @@ def registry
))
end

def each_resource
registry.each { |resource, records| yield resource }
aliases.each { |resource, _| yield resource.to_s }
def each_resource(&)
registry.each_key(&)
aliases.each_key { |resource| yield resource.to_s }
end

def aliases
Expand Down
Loading