simplycop 1.6.0 → 1.7.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 +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.github/workflows/dobby-actions.yml +16 -0
- data/.simplycop.yml +12 -16
- data/lib/simplycop/version.rb +1 -1
- data/simplycop.gemspec +3 -3
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 44b5f9419a9d452d32f7d123d2556a8aa54fa929d4cf1ad15ba8d050141dca2b
|
|
4
|
+
data.tar.gz: c5a7282f831692081d6318e8da1bc44db00ae5b2c4e5e89ede7f2ee7c4c92010
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14a434723f2626c1c2032ebf6ced1ad2289e4ef519832f4c6c2c557a5ead996f449cab005f35d94924e13c001576c38a163c478ed6b946a520b64bef644cc891
|
|
7
|
+
data.tar.gz: d8aba41e196a647ddc612d526c5894a87419000ad581edebf5d1333dca93fe8604bd6550d78e3239d2ea071671bda226d3ea4c5223e8c4906cf65e5cbe84f4b9
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: "dobby actions"
|
|
2
|
+
on:
|
|
3
|
+
issue_comment:
|
|
4
|
+
types: [created]
|
|
5
|
+
jobs:
|
|
6
|
+
pr_commented:
|
|
7
|
+
runs-on: ubuntu-20.04
|
|
8
|
+
if: startsWith(github.event.comment.body, '/dobby')
|
|
9
|
+
|
|
10
|
+
steps:
|
|
11
|
+
- name: 'bump version'
|
|
12
|
+
uses: simplybusiness/dobby@v2.0.0
|
|
13
|
+
env:
|
|
14
|
+
DOBBY_APP_ID: ${{ secrets.DOBBY_APP_ID }}
|
|
15
|
+
DOBBY_PRIVATE_KEY: ${{ secrets.DOBBY_PRIVATE_KEY }}
|
|
16
|
+
VERSION_FILE_PATH: lib/simplycop/version.rb
|
data/.simplycop.yml
CHANGED
|
@@ -4,6 +4,7 @@ inherit_from:
|
|
|
4
4
|
- .simplycop_metaprogramming.yml
|
|
5
5
|
|
|
6
6
|
AllCops:
|
|
7
|
+
TargetRubyVersion: 2.5
|
|
7
8
|
Exclude:
|
|
8
9
|
- 'db/schema.rb'
|
|
9
10
|
- 'vendor/**/*'
|
|
@@ -21,6 +22,9 @@ AllCops:
|
|
|
21
22
|
ExtraDetails: true
|
|
22
23
|
# Adapted from: https://github.com/simplybusiness/how-we-roll/blob/master/development/RUBYSTYLEGUIDE.markdown
|
|
23
24
|
|
|
25
|
+
Gemspec/DateAssignment:
|
|
26
|
+
Enabled: true
|
|
27
|
+
|
|
24
28
|
Layout/EmptyLineAfterMultilineCondition:
|
|
25
29
|
Enabled: true
|
|
26
30
|
|
|
@@ -94,28 +98,14 @@ Lint/UnexpectedBlockArity:
|
|
|
94
98
|
Lint/UnmodifiedReduceAccumulator:
|
|
95
99
|
Enabled: true
|
|
96
100
|
|
|
97
|
-
###### COPS REVIEWED ABOVE THIS LINE ######
|
|
98
|
-
|
|
99
101
|
Metrics/BlockLength:
|
|
100
102
|
Exclude:
|
|
101
103
|
- spec/**/*.rb
|
|
102
|
-
|
|
104
|
+
|
|
103
105
|
Metrics/ClassLength:
|
|
104
106
|
Max: 512
|
|
105
|
-
Enabled: true
|
|
106
|
-
|
|
107
|
-
Metrics/ModuleLength:
|
|
108
|
-
Enabled: true
|
|
109
107
|
|
|
110
|
-
|
|
111
|
-
Enabled: true
|
|
112
|
-
|
|
113
|
-
Naming/VariableName:
|
|
114
|
-
Enabled: true
|
|
115
|
-
EnforcedStyle: snake_case
|
|
116
|
-
SupportedStyles:
|
|
117
|
-
- snake_case
|
|
118
|
-
- camelCase
|
|
108
|
+
###### COPS REVIEWED ABOVE THIS LINE ######
|
|
119
109
|
|
|
120
110
|
Style/AccessorGrouping:
|
|
121
111
|
Enabled: true
|
|
@@ -184,6 +174,9 @@ Style/GuardClause:
|
|
|
184
174
|
Style/HashAsLastArrayItem:
|
|
185
175
|
Enabled: true
|
|
186
176
|
|
|
177
|
+
Style/HashConversion:
|
|
178
|
+
Enabled: true
|
|
179
|
+
|
|
187
180
|
Style/HashEachMethods:
|
|
188
181
|
Enabled: false
|
|
189
182
|
|
|
@@ -300,6 +293,9 @@ Style/SpecialGlobalVars:
|
|
|
300
293
|
Enabled: true
|
|
301
294
|
Severity: warning
|
|
302
295
|
|
|
296
|
+
Style/StringChars:
|
|
297
|
+
Enabled: true
|
|
298
|
+
|
|
303
299
|
Style/StringConcatenation:
|
|
304
300
|
Enabled: true
|
|
305
301
|
|
data/lib/simplycop/version.rb
CHANGED
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 = '>= 2.
|
|
12
|
+
spec.required_ruby_version = '>= 2.5'
|
|
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.'
|
|
@@ -17,9 +17,9 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
18
|
spec.require_paths = ['lib']
|
|
19
19
|
|
|
20
|
-
spec.add_dependency 'rubocop', '~> 1.
|
|
20
|
+
spec.add_dependency 'rubocop', '~> 1.12.1'
|
|
21
21
|
spec.add_dependency 'rubocop-rails', '~> 2.9.0'
|
|
22
|
-
spec.add_dependency 'rubocop-rspec', '~> 2.
|
|
22
|
+
spec.add_dependency 'rubocop-rspec', '~> 2.2.0'
|
|
23
23
|
spec.add_development_dependency 'bundler'
|
|
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.
|
|
4
|
+
version: 1.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simply Business
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-04-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rubocop
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.
|
|
19
|
+
version: 1.12.1
|
|
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.
|
|
26
|
+
version: 1.12.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rubocop-rails
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -44,14 +44,14 @@ dependencies:
|
|
|
44
44
|
requirements:
|
|
45
45
|
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 2.
|
|
47
|
+
version: 2.2.0
|
|
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.
|
|
54
|
+
version: 2.2.0
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
56
|
name: bundler
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -105,6 +105,7 @@ files:
|
|
|
105
105
|
- ".custom_simplycop.yml"
|
|
106
106
|
- ".github/dependabot.yml"
|
|
107
107
|
- ".github/workflows/ci.yml"
|
|
108
|
+
- ".github/workflows/dobby-actions.yml"
|
|
108
109
|
- ".github/workflows/publish_gem.yml"
|
|
109
110
|
- ".github/workflows/version_forget_me_not.yml"
|
|
110
111
|
- ".gitignore"
|
|
@@ -147,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
147
148
|
requirements:
|
|
148
149
|
- - ">="
|
|
149
150
|
- !ruby/object:Gem::Version
|
|
150
|
-
version: 2.
|
|
151
|
+
version: '2.5'
|
|
151
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
153
|
requirements:
|
|
153
154
|
- - ">="
|