Skip to content

Commit 83813c9

Browse files
Bump rubocop-rails from 2.25.1 to 2.33.4 (#5459)
* Bump rubocop-rails from 2.25.1 to 2.33.4 Bumps [rubocop-rails](https://github.com/rubocop/rubocop-rails) from 2.25.1 to 2.33.4. - [Release notes](https://github.com/rubocop/rubocop-rails/releases) - [Changelog](https://github.com/rubocop/rubocop-rails/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop-rails@v2.25.1...v2.33.4) --- updated-dependencies: - dependency-name: rubocop-rails dependency-version: 2.33.4 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix lint failures --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Daniel Orner <[email protected]>
1 parent b362ccf commit 83813c9

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ group :development, :test do
156156
gem "rubocop"
157157
# Rails add-on for static analysis.
158158
gem 'rubocop-performance'
159-
gem "rubocop-rails", "~> 2.25.1"
159+
gem "rubocop-rails", "~> 2.33.4"
160160
# More concise test ("should") matchers
161161
gem "shoulda-matchers", "~> 6.5"
162162
# Default rules for Rubocop.

Gemfile.lock

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ GEM
341341
actionview (>= 5.0.0)
342342
activesupport (>= 5.0.0)
343343
jmespath (1.6.2)
344-
json (2.16.0)
344+
json (2.17.1)
345345
jwt (3.1.2)
346346
base64
347347
kaminari (1.2.2)
@@ -629,11 +629,12 @@ GEM
629629
lint_roller (~> 1.1)
630630
rubocop (>= 1.75.0, < 2.0)
631631
rubocop-ast (>= 1.38.0, < 2.0)
632-
rubocop-rails (2.25.1)
632+
rubocop-rails (2.33.4)
633633
activesupport (>= 4.2.0)
634+
lint_roller (~> 1.1)
634635
rack (>= 1.1)
635-
rubocop (>= 1.33.0, < 2.0)
636-
rubocop-ast (>= 1.31.1, < 2.0)
636+
rubocop (>= 1.75.0, < 2.0)
637+
rubocop-ast (>= 1.44.0, < 2.0)
637638
ruby-graphviz (1.2.5)
638639
rexml
639640
ruby-progressbar (1.13.0)
@@ -702,9 +703,9 @@ GEM
702703
standard-performance (1.8.0)
703704
lint_roller (~> 1.1)
704705
rubocop-performance (~> 1.25.0)
705-
standard-rails (1.1.0)
706+
standard-rails (1.5.0)
706707
lint_roller (~> 1.0)
707-
rubocop-rails (~> 2.25.0)
708+
rubocop-rails (~> 2.33.4)
708709
stimulus-rails (1.3.4)
709710
railties (>= 6.0.0)
710711
stringio (3.1.9)
@@ -831,7 +832,7 @@ DEPENDENCIES
831832
rspec-rails (~> 8.0.2)
832833
rubocop
833834
rubocop-performance
834-
rubocop-rails (~> 2.25.1)
835+
rubocop-rails (~> 2.33.4)
835836
sass-rails
836837
shoulda-matchers (~> 6.5)
837838
simple_form

app/models/organization.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ def ordered_requests
167167

168168
# Computes full address string based on street, city, state, and zip, adding ', ' and ' ' separators
169169
def address
170-
state_and_zip = [state, zipcode].select(&:present?).join(' ')
171-
[street, city, state_and_zip].select(&:present?).join(', ')
170+
state_and_zip = [state, zipcode].compact_blank.join(' ')
171+
[street, city, state_and_zip].compact_blank.join(', ')
172172
end
173173

174174
def address_changed?
@@ -298,6 +298,6 @@ def get_admin_email
298298
end
299299

300300
def logo_size_check
301-
errors.add(:logo, 'File size is greater than 1 MB') if logo.byte_size > 1.megabytes
301+
errors.add(:logo, 'File size is greater than 1 MB') if logo.byte_size > 1.megabyte
302302
end
303303
end

spec/rails_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
# directory. Alternatively, in the individual `*_spec.rb` files, manually
3232
# require only the support files necessary.
3333
#
34-
Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |f| require f }
35-
Dir[Rails.root.join("spec/controllers/shared_examples/*.rb")].sort.each { |f| require f }
34+
Rails.root.glob("spec/support/**/*.rb").sort.each { |f| require f }
35+
Rails.root.glob("spec/controllers/shared_examples/*.rb").sort.each { |f| require f }
3636

3737
# Checks for pending migration and applies them before tests are run.
3838
# If you are not using ActiveRecord, you can remove this line.

spec/system/storage_location_system_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@
185185
create(:storage_location, :with_items, item: item3, item_quantity: 10, name: "Baz")
186186
visit subject
187187

188-
expect(page.all('select[name="filters[containing]"] option').map(&:text).select(&:present?)).to eq(expected_order)
189-
expect(page.all('select[name="filters[containing]"] option').map(&:text).select(&:present?)).not_to eq(expected_order.reverse)
188+
expect(page.all('select[name="filters[containing]"] option').map(&:text).compact_blank).to eq(expected_order)
189+
expect(page.all('select[name="filters[containing]"] option').map(&:text).compact_blank).not_to eq(expected_order.reverse)
190190
end
191191
end
192192

0 commit comments

Comments
 (0)