Skip to content

Commit c19fca4

Browse files
authoredMay 28, 2024··
DEV: Update rubocop-discourse to version 3.8.0 (#292)
1 parent 87d7958 commit c19fca4

File tree

5 files changed

+33
-28
lines changed

5 files changed

+33
-28
lines changed
 

‎Gemfile.lock

+26-20
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
activesupport (7.1.3.2)
4+
activesupport (7.1.3.3)
55
base64
66
bigdecimal
77
concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -13,58 +13,64 @@ GEM
1313
tzinfo (~> 2.0)
1414
ast (2.4.2)
1515
base64 (0.2.0)
16-
bigdecimal (3.1.6)
16+
bigdecimal (3.1.8)
1717
concurrent-ruby (1.2.3)
1818
connection_pool (2.4.1)
19-
drb (2.2.0)
20-
ruby2_keywords
21-
i18n (1.14.1)
19+
drb (2.2.1)
20+
i18n (1.14.5)
2221
concurrent-ruby (~> 1.0)
23-
json (2.7.1)
22+
json (2.7.2)
2423
language_server-protocol (3.17.0.3)
25-
minitest (5.22.2)
24+
minitest (5.23.1)
2625
mutex_m (0.2.0)
2726
parallel (1.24.0)
28-
parser (3.3.0.5)
27+
parser (3.3.1.0)
2928
ast (~> 2.4.1)
3029
racc
3130
prettier_print (1.2.1)
32-
prism (0.24.0)
33-
racc (1.7.3)
31+
racc (1.8.0)
32+
rack (3.0.11)
3433
rainbow (3.1.1)
35-
regexp_parser (2.9.0)
34+
regexp_parser (2.9.2)
3635
rexml (3.2.8)
3736
strscan (>= 3.0.9)
38-
rubocop (1.61.0)
37+
rubocop (1.64.0)
3938
json (~> 2.3)
4039
language_server-protocol (>= 3.17.0)
4140
parallel (~> 1.10)
4241
parser (>= 3.3.0.2)
4342
rainbow (>= 2.2.2, < 4.0)
4443
regexp_parser (>= 1.8, < 3.0)
4544
rexml (>= 3.2.5, < 4.0)
46-
rubocop-ast (>= 1.30.0, < 2.0)
45+
rubocop-ast (>= 1.31.1, < 2.0)
4746
ruby-progressbar (~> 1.7)
4847
unicode-display_width (>= 2.4.0, < 3.0)
49-
rubocop-ast (1.31.0)
50-
parser (>= 3.3.0.4)
51-
prism (>= 0.24.0)
48+
rubocop-ast (1.31.3)
49+
parser (>= 3.3.1.0)
5250
rubocop-capybara (2.20.0)
5351
rubocop (~> 1.41)
54-
rubocop-discourse (3.7.1)
52+
rubocop-discourse (3.8.0)
5553
activesupport (>= 6.1)
5654
rubocop (>= 1.59.0)
5755
rubocop-capybara (>= 2.0.0)
5856
rubocop-factory_bot (>= 2.0.0)
57+
rubocop-rails (>= 2.25.0)
5958
rubocop-rspec (>= 2.25.0)
6059
rubocop-factory_bot (2.25.1)
6160
rubocop (~> 1.41)
62-
rubocop-rspec (2.26.1)
61+
rubocop-rails (2.25.0)
62+
activesupport (>= 4.2.0)
63+
rack (>= 1.1)
64+
rubocop (>= 1.33.0, < 2.0)
65+
rubocop-ast (>= 1.31.1, < 2.0)
66+
rubocop-rspec (2.29.2)
6367
rubocop (~> 1.40)
6468
rubocop-capybara (~> 2.17)
6569
rubocop-factory_bot (~> 2.22)
70+
rubocop-rspec_rails (~> 2.28)
71+
rubocop-rspec_rails (2.28.3)
72+
rubocop (~> 1.40)
6673
ruby-progressbar (1.13.0)
67-
ruby2_keywords (0.0.5)
6874
strscan (3.1.0)
6975
syntax_tree (6.2.0)
7076
prettier_print (>= 1.2.0)
@@ -80,4 +86,4 @@ DEPENDENCIES
8086
syntax_tree
8187

8288
BUNDLED WITH
83-
2.5.4
89+
2.5.10

‎lib/discourse_data_explorer/data_explorer.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def self.add_extra_data(pg_result)
170170
end
171171

172172
needed_classes.each do |cls, column_nums|
173-
next unless column_nums.present?
173+
next if column_nums.blank?
174174
support_info = extra_data_pluck_fields[cls]
175175
next unless support_info
176176

‎lib/discourse_data_explorer/parameter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(identifier, type, default, nullable)
2525
@default = default
2626
@nullable = nullable
2727
begin
28-
cast_to_ruby default unless default.blank?
28+
cast_to_ruby default if default.present?
2929
rescue ValidationError
3030
raise ValidationError.new(
3131
"Parameter declaration error - the default value is not a valid #{type}",

‎package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"name": "discourse-data-explorer",
32
"private": true,
43
"devDependencies": {
5-
"@discourse/lint-configs": "^1.3.5",
6-
"ember-template-lint": "^5.13.0",
7-
"eslint": "^8.56.0",
8-
"prettier": "^2.8.8"
4+
"@discourse/lint-configs": "1.3.9",
5+
"ember-template-lint": "6.0.0",
6+
"eslint": "8.57.0",
7+
"prettier": "2.8.8"
98
}
109
}

‎plugin.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ module ::DiscourseDataExplorer
105105
next
106106
end
107107

108-
unless recipients.present?
108+
if recipients.blank?
109109
Rails.logger.warn "#{DiscourseDataExplorer::PLUGIN_NAME} - couldn't find any recipients for automation #{automation.id}"
110110
next
111111
end

0 commit comments

Comments
 (0)
Please sign in to comment.