aroundhome_cops 3.0.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fee1b743baec2877e677710e69aaad6247e12404931b357086e2da65129e3681
4
- data.tar.gz: d0dd262d22f6d447ba79416e94e5c750d255a0bee0cf745c39abf7cef45067e6
3
+ metadata.gz: 8b484d9e0fd53c5e4dfee4a328e6eef3fde6db1093a1250b94952598c57bd4ff
4
+ data.tar.gz: c9f5915345577de64e6219fea97f4c5a1812b16563ba59aef4753ba11a55e127
5
5
  SHA512:
6
- metadata.gz: ef8d267ebbab4c5715d9f7bffe05c59df94bf9e519d077d4e15cdf2792b8ceeb4b6eb36f26c6f1f4cceb9c9413d38ee20d1badf3d70d1ff982fff2dccfd2342b
7
- data.tar.gz: e0ec10ec887f77c4a24e9801c23149b6055bc3d5c8b2f9f94e20ecbc59c1dc272109701bed41152f3f4dfda69f6d8aa79babf353a727ebe6d4253fa1c9eb6b93
6
+ metadata.gz: 05be08a5fe3739151a0b6a5b93a138a510b78578825cafea4e922bb42217bd3eb69127ea4c0c4c7c3d32ca82d5077ca901a8f3ec5b0c7fd1f19421dcce598eb0
7
+ data.tar.gz: 9ec6ddc38a5519f2bb734bb77f21e31da82c5b091f33f8513490446e091fb5e4da84c9741f81076e5c7f5350a9d990a3834dc047ef7346184c765dfaa08b40c9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Version 4.0.0
2
+ * Opt into all Rubocop offenses up until 1.18
3
+ * Add rubocop-rspec as a dependency, to enforce better specs
4
+
1
5
  ## Version 3.0.0
2
6
 
3
7
  * Support Rubocop 1.0 and opt into all offenses up until 1.13
@@ -20,5 +20,6 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.5.0'
22
22
 
23
- spec.add_dependency 'rubocop', '~> 1.0'
23
+ spec.add_dependency 'rubocop', '~> 1.18'
24
+ spec.add_dependency 'rubocop-rspec', '~> 2.4'
24
25
  end
data/default.yml CHANGED
@@ -1,3 +1,6 @@
1
+ require:
2
+ - rubocop-rspec
3
+
1
4
  AllCops:
2
5
  Exclude:
3
6
  - 'bin/**/*'
@@ -20,7 +23,6 @@ AllCops:
20
23
  - 'db/migrate/2016*.rb'
21
24
  - 'db/migrate/2017*.rb'
22
25
  SuggestExtensions:
23
- rubocop-rspec: false
24
26
  rubocop-rails: false
25
27
 
26
28
  # While we like to write blocks like the following
@@ -128,6 +130,28 @@ Style/FormatStringToken:
128
130
  Metrics/ParameterLists:
129
131
  CountKeywordArgs: false
130
132
 
133
+ # Adding "and" prefix to list of allowed prefixes to allow for nested contexts
134
+ # that start with "and" as a connector word "when foo is true and bar is false"
135
+ RSpec/ContextWording:
136
+ Prefixes:
137
+ - when
138
+ - with
139
+ - without
140
+ - and
141
+
142
+ # Complex tests require more flexibility in their length than allowed by default (5).
143
+ RSpec/ExampleLength:
144
+ Max: 10
145
+
146
+ # Complex tests often rely on more objects than allowed by default (5).
147
+ RSpec/MultipleMemoizedHelpers:
148
+ Max: 10
149
+
150
+ # Complex tests often generate more readable output with deeper nesting. The
151
+ # default (3) doesn't provide enough flexibility.
152
+ RSpec/NestedGroups:
153
+ Max: 5
154
+
131
155
  # ----------------- Rubocop-forced enablements --------------
132
156
 
133
157
  # Since version 0.80 rubocop wants to cause fewer breaking changes by new cops.
@@ -196,3 +220,22 @@ Style/StringChars: # (new in 1.12)
196
220
  Enabled: true
197
221
  Style/SwapValues: # (new in 1.1)
198
222
  Enabled: true
223
+ Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
224
+ Enabled: true
225
+ Lint/EmptyInPattern: # (new in 1.16)
226
+ Enabled: true
227
+ Naming/InclusiveLanguage: # (new in 1.18)
228
+ Enabled: true
229
+ Style/InPatternThen: # (new in 1.16)
230
+ Enabled: true
231
+ Style/MultilineInPatternThen: # (new in 1.16)
232
+ Enabled: true
233
+ Style/QuotedSymbols: # (new in 1.16)
234
+ Enabled: true
235
+
236
+ # ----------------- Rubocop-Rspec forced enablements --------------
237
+
238
+ RSpec/IdenticalEqualityAssertion: # (new in 2.4)
239
+ Enabled: true
240
+ RSpec/Rails/AvoidSetupHook: # (new in 2.4)
241
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AroundhomeCops
4
- VERSION = '3.0.0'
4
+ VERSION = '4.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aroundhome_cops
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Sandbrink
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-04 00:00:00.000000000 Z
11
+ date: 2021-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '1.18'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '1.18'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.4'
27
41
  description:
28
42
  email:
29
43
  - jan.sandbrink@aroundhome.de
@@ -59,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
73
  - !ruby/object:Gem::Version
60
74
  version: '0'
61
75
  requirements: []
62
- rubygems_version: 3.2.15
76
+ rubygems_version: 3.2.22
63
77
  signing_key:
64
78
  specification_version: 4
65
79
  summary: Dependency and configuration for rubocop.