Skip to content

Commit bae3361

Browse files
authored
Merge pull request #18 from github/dependabot/bundler/rubocop-performance-1.19.1
Bump rubocop-performance from 1.14.3 to 1.19.1
2 parents a08f479 + 2eb60ff commit bae3361

5 files changed

Lines changed: 25 additions & 20 deletions

File tree

Gemfile.lock

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@ GEM
1919
minitest (>= 5.1)
2020
tzinfo (~> 2.0)
2121
ast (2.4.2)
22+
base64 (0.1.1)
2223
builder (3.2.4)
2324
concurrent-ruby (1.2.2)
2425
crass (1.0.6)
2526
diff-lcs (1.5.0)
2627
erubi (1.12.0)
2728
i18n (1.14.1)
2829
concurrent-ruby (~> 1.0)
29-
json (2.6.2)
30+
json (2.6.3)
31+
language_server-protocol (3.17.0.3)
3032
loofah (2.21.3)
3133
crass (~> 1.0.2)
3234
nokogiri (>= 1.12.0)
@@ -37,9 +39,10 @@ GEM
3739
racc (~> 1.4)
3840
nokogiri (1.15.4-x86_64-linux)
3941
racc (~> 1.4)
40-
parallel (1.22.1)
41-
parser (3.1.2.0)
42+
parallel (1.23.0)
43+
parser (3.2.2.3)
4244
ast (~> 2.4.1)
45+
racc
4346
racc (1.7.1)
4447
rack (3.0.8)
4548
rails-dom-testing (2.2.0)
@@ -51,8 +54,8 @@ GEM
5154
nokogiri (~> 1.14)
5255
rainbow (3.1.1)
5356
rake (13.0.6)
54-
regexp_parser (2.5.0)
55-
rexml (3.2.5)
57+
regexp_parser (2.8.1)
58+
rexml (3.2.6)
5659
rspec (3.12.0)
5760
rspec-core (~> 3.12.0)
5861
rspec-expectations (~> 3.12.0)
@@ -66,33 +69,35 @@ GEM
6669
diff-lcs (>= 1.2.0, < 2.0)
6770
rspec-support (~> 3.12.0)
6871
rspec-support (3.12.1)
69-
rubocop (1.31.2)
72+
rubocop (1.56.3)
73+
base64 (~> 0.1.1)
7074
json (~> 2.3)
75+
language_server-protocol (>= 3.17.0)
7176
parallel (~> 1.10)
72-
parser (>= 3.1.0.0)
77+
parser (>= 3.2.2.3)
7378
rainbow (>= 2.2.2, < 4.0)
7479
regexp_parser (>= 1.8, < 3.0)
7580
rexml (>= 3.2.5, < 4.0)
76-
rubocop-ast (>= 1.18.0, < 2.0)
81+
rubocop-ast (>= 1.28.1, < 2.0)
7782
ruby-progressbar (~> 1.7)
78-
unicode-display_width (>= 1.4.0, < 3.0)
79-
rubocop-ast (1.19.1)
80-
parser (>= 3.1.1.0)
83+
unicode-display_width (>= 2.4.0, < 3.0)
84+
rubocop-ast (1.29.0)
85+
parser (>= 3.2.1.0)
8186
rubocop-github (0.18.0)
8287
rubocop (>= 1.0.0)
8388
rubocop-performance
8489
rubocop-rails
85-
rubocop-performance (1.14.3)
90+
rubocop-performance (1.19.1)
8691
rubocop (>= 1.7.0, < 2.0)
8792
rubocop-ast (>= 0.4.0)
8893
rubocop-rails (2.15.2)
8994
activesupport (>= 4.2.0)
9095
rack (>= 1.1)
9196
rubocop (>= 1.7.0, < 2.0)
92-
ruby-progressbar (1.11.0)
97+
ruby-progressbar (1.13.0)
9398
tzinfo (2.0.6)
9499
concurrent-ruby (~> 1.0)
95-
unicode-display_width (2.2.0)
100+
unicode-display_width (2.4.2)
96101

97102
PLATFORMS
98103
arm64-darwin-21

test/cop_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ def cop_class
1111
attr_reader :cop
1212

1313
def setup
14-
config = RuboCop::Config.new
15-
@cop = cop_class.new(config)
14+
@config = RuboCop::Config.new
15+
@cop = cop_class.new(@config)
1616
end
1717

1818
def investigate(cop, src, filename = nil)
1919
processed_source = RuboCop::ProcessedSource.new(src, RUBY_VERSION.to_f, filename)
20-
team = RuboCop::Cop::Team.new([cop], nil, raise_error: true)
20+
team = RuboCop::Cop::Team.new([cop], @config, raise_error: true)
2121
report = team.investigate(processed_source)
2222
report.offenses
2323
end

test/test_image_has_alt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_image_has_alt_offense
1515
ERB
1616

1717
assert_equal 1, offenses.count
18-
assert_equal "Images should have an alt prop with meaningful text or an empty string for decorative images",
18+
assert_equal "RailsAccessibility/ImageHasAlt: Images should have an alt prop with meaningful text or an empty string for decorative images",
1919
offenses[0].message
2020
end
2121

test/test_no_positive_tabindex.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_no_positive_tabindex_alt_offense
1515
ERB
1616

1717
assert_equal 1, offenses.count
18-
assert_equal "Positive tabindex is error-prone and often inaccessible.", offenses[0].message
18+
assert_equal "RailsAccessibility/NoPositiveTabindex: Positive tabindex is error-prone and often inaccessible.", offenses[0].message
1919
end
2020

2121
def test_no_positive_tabindex_alt_no_offense

test/test_no_redundant_image_alt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_no_redundant_image_alt_offense
1515
ERB
1616

1717
assert_equal 1, offenses.count
18-
assert_equal "Alt prop should not contain `image` or `picture` as screen readers already announce the element as an image",
18+
assert_equal "RailsAccessibility/NoRedundantImageAlt: Alt prop should not contain `image` or `picture` as screen readers already announce the element as an image",
1919
offenses[0].message
2020
end
2121

0 commit comments

Comments
 (0)