rubocop-discourse 3.7.1 → 3.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb795aa24e9b2d88571ef2140d2dce87afd493b20c5d1d643b8a58b3d7b97fd5
4
- data.tar.gz: 7950d13ba0da8dbeb2a690f48f33f1df8e72dbfd00240f4da07172dfbe3f91c6
3
+ metadata.gz: a6b21abdd18093c8fdfbcf7811f0bb520da340cbd12b70a4f47bb996d960e9c8
4
+ data.tar.gz: dd1e656a4ce9b42ae87ea61717db604d102c693e5bed2b9d56b9ac1b75e9b32f
5
5
  SHA512:
6
- metadata.gz: f47590c8de489ac68e8ca6d4d5ec012a5cf07455ad63c123aa14963c6ef6dec3d9f934a5106b45f01fbdca5b34e70542ac77fe9e0b46d9bb828b06d21a934d41
7
- data.tar.gz: be49ff2f39df90a0dec57f813b621570b7fe895656ac7b65f54e4938490bc6714fdbc9fb0b9b92fe19b82fa26fe1997ceae6c3cf2734eb637714e9880569ba97
6
+ metadata.gz: 455fa288eb139814eb3deb1ad92495ff3822ab055b4584f44da708be10958049f10e7023d3a2df0080861979aa1302d84e00688bb116edff957c6bdc56de930c
7
+ data.tar.gz: 90ada24a89b5649487653c5a9c40b0ad7199b839c92a3388ecf8b5b2e71bb4e73381a1d6ca511b2cf78b0a5257b31d49ac2f700041a91710a70253d4e9f83c38
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rubocop-discourse"
5
- s.version = "3.7.1"
5
+ s.version = "3.8.1"
6
6
  s.summary = "Custom rubocop cops used by Discourse"
7
7
  s.authors = ["Discourse Team"]
8
8
  s.license = "MIT"
@@ -13,9 +13,11 @@ Gem::Specification.new do |s|
13
13
 
14
14
  s.add_runtime_dependency "activesupport", ">= 6.1"
15
15
  s.add_runtime_dependency "rubocop", ">= 1.59.0"
16
- s.add_runtime_dependency "rubocop-rspec", ">= 2.25.0"
16
+ s.add_runtime_dependency "rubocop-rspec", ">= 3.0.1"
17
17
  s.add_runtime_dependency "rubocop-factory_bot", ">= 2.0.0"
18
18
  s.add_runtime_dependency "rubocop-capybara", ">= 2.0.0"
19
+ s.add_runtime_dependency "rubocop-rails", ">= 2.25.0"
20
+ s.add_runtime_dependency "rubocop-rspec_rails", ">= 2.30.0"
19
21
 
20
22
  s.add_development_dependency "rake", "~> 13.1.0"
21
23
  s.add_development_dependency "rspec", "~> 3.12.0"
data/rubocop-rails.yml ADDED
@@ -0,0 +1,11 @@
1
+ require:
2
+ - rubocop-rails
3
+
4
+ Rails:
5
+ Enabled: false
6
+
7
+ Rails/EnumHash:
8
+ Enabled: true
9
+
10
+ Rails/EnumUniqueness:
11
+ Enabled: true
data/rubocop-rspec.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  require:
2
2
  - rubocop-rspec
3
+ - rubocop-rspec_rails
3
4
 
4
5
  RSpec/AnyInstance:
5
6
  Enabled: false # To be decided
@@ -223,8 +224,15 @@ RSpec/VoidExpect:
223
224
  RSpec/Yield:
224
225
  Enabled: true
225
226
 
226
- RSpec/Capybara/FeatureMethods:
227
+ RSpec/Dialect:
227
228
  Enabled: true
229
+ PreferredMethods:
230
+ background: :before
231
+ scenario: :it
232
+ xscenario: :xit
233
+ given: :let
234
+ given!: :let!
235
+ feature: :describe
228
236
 
229
- RSpec/Rails/HttpStatus:
237
+ RSpecRails/HttpStatus:
230
238
  Enabled: true
data/stree-compat.yml CHANGED
@@ -6,6 +6,7 @@ inherit_from:
6
6
  - ./rubocop-capybara.yml
7
7
  - ./rubocop-factory_bot.yml
8
8
  - ./rubocop-rspec.yml
9
+ - ./rubocop-rails.yml
9
10
 
10
11
  AllCops:
11
12
  TargetRubyVersion: 3.2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-discourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.1
4
+ version: 3.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Discourse Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-29 00:00:00.000000000 Z
11
+ date: 2024-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 2.25.0
47
+ version: 3.0.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 2.25.0
54
+ version: 3.0.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-factory_bot
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,34 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.0.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 2.25.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: 2.25.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-rspec_rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: 2.30.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 2.30.0
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: rake
85
113
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +179,7 @@ files:
151
179
  - rubocop-discourse.gemspec
152
180
  - rubocop-factory_bot.yml
153
181
  - rubocop-layout.yml
182
+ - rubocop-rails.yml
154
183
  - rubocop-rspec.yml
155
184
  - spec/fixtures/controllers/bad_controller.rb
156
185
  - spec/fixtures/controllers/base_controller.rb