simplycop 1.12.13 → 1.12.15

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: 7bcd75c07282d6105cb8cb92d7bce94f45c15d39f267bf728cd865eb83db72b6
4
- data.tar.gz: 989276d266d83938c63b3106b868ae155ddf62dd24d53ed6eefb46c0d48b7318
3
+ metadata.gz: 4fa519dff2b48643ea25372e649d86b6d8719f5555f1fde7d3deeda55f584259
4
+ data.tar.gz: b68b2ffc4da368fcb2814c70f04ba93c36d6b86058a0e3800db89e081746dc5f
5
5
  SHA512:
6
- metadata.gz: c61acf3adf95dd5264021d1ad8cb02f5eb413e2a61fd1bd038d27cec7fe1b2f649636a7915b055dea263feac315b8e0ddca8bf3bc990bd675d7366a48bfd4ac8
7
- data.tar.gz: a7d64eea7f27910436e7efb3687d4bbac219ab6fd5dd519402d3ad11f90834f568720a194084b4c1b3c28ad019b43da5a84c9304afe9ba2468f4378efdccc0d7
6
+ metadata.gz: e0c2a9ba168b62e87277f878df05b6fb3af767b7ce84fafadbebef117d3c72d251fbb29f7d017e04dae0765283030050c2bc01554aef3cab6fa9fb36a742771a
7
+ data.tar.gz: 0aee5bf7dae61d592e31d9fda09340cd3166485814c7e042b8601b7f6a76dbb291afc4bb2618171805113ca6c5aed9e63ac47c12373e42b7c49e2491898eb98a
@@ -19,7 +19,7 @@ jobs:
19
19
 
20
20
  strategy:
21
21
  matrix:
22
- ruby-version: ['3.0', '3.1', '3.2', jruby]
22
+ ruby-version: ['2.7', '3.0', '3.1', '3.2', jruby]
23
23
 
24
24
  steps:
25
25
  - uses: actions/checkout@v3
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.4
1
+ 2.7.8
data/.simplycop_rspec.yml CHANGED
@@ -1,9 +1,38 @@
1
1
  require:
2
2
  - rubocop-rspec
3
3
 
4
+ RSpec/BeEq:
5
+ Enabled: true
6
+
4
7
  RSpec/BeforeAfterAll:
5
8
  Enabled: false
6
9
 
10
+ RSpec/BeNil:
11
+ Enabled: true
12
+
13
+ RSpec/ChangeByZero:
14
+ Enabled: true
15
+
16
+ RSpec/ClassCheck:
17
+ Enabled: true
18
+
19
+ RSpec/Capybara:
20
+ Enabled: true
21
+ Include:
22
+ - spec/integration/*.rb
23
+
24
+ RSpec/Capybara/NegationMatcher:
25
+ Enabled: true
26
+
27
+ RSpec/Capybara/SpecificActions:
28
+ Enabled: true
29
+
30
+ RSpec/Capybara/SpecificFinders:
31
+ Enabled: true
32
+
33
+ RSpec/Capybara/SpecificMatcher:
34
+ Enabled: true
35
+
7
36
  RSpec/DescribeClass:
8
37
  Enabled: false
9
38
 
@@ -13,15 +42,34 @@ RSpec/DescribeMethod:
13
42
  RSpec/DescribedClass:
14
43
  Enabled: false
15
44
 
45
+ RSpec/DuplicatedMetadata:
46
+ Enabled: true
47
+
16
48
  RSpec/ExampleLength:
17
49
  Enabled: false
18
50
 
51
+ RSpec/ExcessiveDocstringSpacing:
52
+ Enabled: true
53
+
19
54
  RSpec/ExpectOutput:
20
55
  Enabled: false
21
56
 
57
+ RSpec/FactoryBot/ConsistentParenthesesStyle:
58
+ Enabled: true
59
+
60
+ RSpec/FactoryBot/FactoryNameStyle:
61
+ Enabled: true
62
+
63
+ # Prefer explicit factorybot call
64
+ RSpec/FactoryBot/SyntaxMethods:
65
+ Enabled: false
66
+
22
67
  RSpec/FilePath:
23
68
  Enabled: false
24
69
 
70
+ RSpec/IdenticalEqualityAssertion:
71
+ Enabled: true
72
+
25
73
  RSpec/InstanceVariable:
26
74
  Enabled: false
27
75
 
@@ -38,6 +86,9 @@ RSpec/NestedGroups:
38
86
  Enabled: true
39
87
  Max: 4
40
88
 
89
+ RSpec/NoExpectationExample:
90
+ Enabled: true
91
+
41
92
  RSpec/NotToNot:
42
93
  Enabled: false
43
94
 
@@ -47,8 +98,24 @@ RSpec/ScatteredSetup:
47
98
  RSpec/StubbedMock:
48
99
  Enabled: false
49
100
 
101
+ RSpec/SortMetadata:
102
+ Enabled: true
103
+
104
+ # Bug https://github.com/rubocop/rubocop-rspec/issues/1521
105
+ RSpec/PendingWithoutReason:
106
+ Enabled: false
107
+
50
108
  RSpec/SubjectDeclaration: # new in 2.5
51
109
  Enabled: true
52
110
 
53
111
  RSpec/Rails/AvoidSetupHook: # new in 2.4
54
112
  Enabled: true
113
+
114
+ RSpec/Rails/HaveHttpStatus:
115
+ Enabled: true
116
+
117
+ RSpec/Rails/InferredSpecType:
118
+ Enabled: true
119
+
120
+ RSpec/VerifiedDoubleReference:
121
+ Enabled: true
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.12.13'
10
+ VERSION = '1.12.15'
11
11
  end
data/simplycop.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.version = Simplycop::VERSION
10
10
  spec.authors = ['Simply Business']
11
11
  spec.email = ['tech@simplybusiness.co.uk']
12
- spec.required_ruby_version = '>= 3.0.4'
12
+ spec.required_ruby_version = '>= 2.7'
13
13
  spec.license = 'MIT'
14
14
  spec.summary = 'Provides a single point of reference for common rubocop rules.'
15
15
  spec.description = 'Require this gem in your application to use Simply Business common rubocop rules.'
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.require_paths = ['lib']
19
19
 
20
20
  spec.add_dependency 'rubocop', '~> 1.42'
21
- spec.add_dependency 'rubocop-rails', '~> 2.15'
22
- spec.add_dependency 'rubocop-rspec', '~> 2.12'
21
+ spec.add_dependency 'rubocop-rails', '~> 2.17'
22
+ spec.add_dependency 'rubocop-rspec', '~> 2.16'
23
23
  spec.add_development_dependency 'bundler', '>= 2.2.15'
24
24
  spec.add_development_dependency 'rake', '>= 12.3.3'
25
25
  spec.add_development_dependency 'rspec', '~> 3.10'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.13
4
+ version: 1.12.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.15'
33
+ version: '2.17'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.15'
40
+ version: '2.17'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.12'
47
+ version: '2.16'
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.12'
54
+ version: '2.16'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -154,7 +154,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - ">="
156
156
  - !ruby/object:Gem::Version
157
- version: 3.0.4
157
+ version: '2.7'
158
158
  required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
160
  - - ">="