simplycop 1.6.2 → 1.7.2

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: 7d9ba2021e0c37a5b4c42e33e5d6918be07ce760d4a21772c74b7ba7cac7f3d9
4
- data.tar.gz: f8d81599f5e25b49dfa4f8d383491601112968dc3dd32476e902448279676fda
3
+ metadata.gz: 50a0298e4fe2fea10475eb542f24df49cc548add3299ce646df95daca8ac8194
4
+ data.tar.gz: f7bc5d42576f976f5be0b7d28920861d38553dcc907a41a8d7044df941771661
5
5
  SHA512:
6
- metadata.gz: 89d7da8eeb61c1b30b27831982dfe7c1dea706f3be27c53276c85662d4c5476c17f6c557d39bba6fe3a9f1492b9e2b8e532765abb19443b765737bcb9d5f4e41
7
- data.tar.gz: e8a590e84aeb593730f14d6e88a4fa04bf36f804bd583876d741ee4c6ed920246a22dcad7265a3b0a551e3859203859ad405165507a9f6f0fc0603f12c79f9e0
6
+ metadata.gz: 88236123a372bef498fc28c6b897b5017fdd4492b05c9fb575720721d9174a6b74828a4ae06be57a4dc3082be26eb15f60d3f850ac581a3beb0c55b40a55c883
7
+ data.tar.gz: 94ad143b7fa0971802e735be97f98ba6ee2826c2c846bdad91a646f50277a070201a756a5ed70b0a57530c6c9d4ce807bf61c6c8c979e089b00d984bf85ab0bd
@@ -16,7 +16,7 @@ jobs:
16
16
 
17
17
  strategy:
18
18
  matrix:
19
- ruby-version: [2.6.5, 2.7, 3.0]
19
+ ruby-version: [2.5, 2.6.5, 2.7, 3.0, jruby]
20
20
 
21
21
  steps:
22
22
  - uses: actions/checkout@v2
@@ -9,7 +9,8 @@ jobs:
9
9
 
10
10
  steps:
11
11
  - name: 'bump version'
12
- uses: simplybusiness/dobby@v1.0.0
12
+ uses: simplybusiness/dobby@v2.1.0
13
13
  env:
14
- ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15
- VERSION_FILE_PATH: "lib/simplycop/version.rb"
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
- Naming/FileName:
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/catalog-info.yaml ADDED
@@ -0,0 +1,17 @@
1
+ apiVersion: backstage.io/v1alpha1
2
+ kind: Component
3
+ metadata:
4
+ name: simplycop
5
+ description: Simply Business Rubocop rules
6
+ annotations:
7
+ github.com/project-slug: "simplybusiness/simplycop"
8
+ backstage.io/source-location: url:https://github.com/simplybusiness/simplycop/
9
+ backstage.io/techdocs-ref: url:https://github.com/simplybusiness/simplycop/
10
+ spec:
11
+ type: library
12
+ lifecycle: production
13
+ owner: silversmiths
14
+ dependsOn:
15
+ - "Component:rake"
16
+ - "Component:rspec"
17
+ - "Component:rubocop"
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '1.6.2'
10
+ VERSION = '1.7.2'
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 = '>= 2.6.0'
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.9.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.1.0'
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.6.2
4
+ version: 1.7.2
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-02-10 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,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.9.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.9.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.1.0
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.1.0
54
+ version: 2.2.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -123,6 +123,7 @@ files:
123
123
  - Rakefile
124
124
  - bin/console
125
125
  - bin/setup
126
+ - catalog-info.yaml
126
127
  - lib/simplycop.rb
127
128
  - lib/simplycop/custom_cops/constantize.rb
128
129
  - lib/simplycop/custom_cops/define_method.rb
@@ -148,14 +149,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
149
  requirements:
149
150
  - - ">="
150
151
  - !ruby/object:Gem::Version
151
- version: 2.6.0
152
+ version: '2.5'
152
153
  required_rubygems_version: !ruby/object:Gem::Requirement
153
154
  requirements:
154
155
  - - ">="
155
156
  - !ruby/object:Gem::Version
156
157
  version: '0'
157
158
  requirements: []
158
- rubygems_version: 3.2.3
159
+ rubygems_version: 3.2.15
159
160
  signing_key:
160
161
  specification_version: 4
161
162
  summary: Provides a single point of reference for common rubocop rules.