rubocop-discourse 3.7.1 → 3.8.0

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: e5b75497583add89cff544cd40ac534768c6694e53ff350469e6a4a83bf5e285
4
+ data.tar.gz: 840195a9bbe85b1fc5d83c3d87af5b137418fe037e1890997de40bb3a1b61692
5
5
  SHA512:
6
- metadata.gz: f47590c8de489ac68e8ca6d4d5ec012a5cf07455ad63c123aa14963c6ef6dec3d9f934a5106b45f01fbdca5b34e70542ac77fe9e0b46d9bb828b06d21a934d41
7
- data.tar.gz: be49ff2f39df90a0dec57f813b621570b7fe895656ac7b65f54e4938490bc6714fdbc9fb0b9b92fe19b82fa26fe1997ceae6c3cf2734eb637714e9880569ba97
6
+ metadata.gz: f082de2cc3cad1becdb56cceb6576d653337a93d3912012be3fbb2fe9b18dcfde6c8182051b3a71389f9c943f36122817e7f52bc5c409357c98d0d077796d4b5
7
+ data.tar.gz: c3eaf22eb291495aae7ee022585892e451361b30e59b59c176d37ffee91fa53e3c57d650189a543e591166a4759ff5c90c531e4a4779f3a1e765474576d8b82b
@@ -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.0"
6
6
  s.summary = "Custom rubocop cops used by Discourse"
7
7
  s.authors = ["Discourse Team"]
8
8
  s.license = "MIT"
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_runtime_dependency "rubocop-rspec", ">= 2.25.0"
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"
19
20
 
20
21
  s.add_development_dependency "rake", "~> 13.1.0"
21
22
  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
@@ -226,5 +226,5 @@ RSpec/Yield:
226
226
  RSpec/Capybara/FeatureMethods:
227
227
  Enabled: true
228
228
 
229
- RSpec/Rails/HttpStatus:
229
+ RSpecRails/HttpStatus:
230
230
  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.0
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-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -80,6 +80,20 @@ 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
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rake
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +165,7 @@ files:
151
165
  - rubocop-discourse.gemspec
152
166
  - rubocop-factory_bot.yml
153
167
  - rubocop-layout.yml
168
+ - rubocop-rails.yml
154
169
  - rubocop-rspec.yml
155
170
  - spec/fixtures/controllers/bad_controller.rb
156
171
  - spec/fixtures/controllers/base_controller.rb