ws-style 6.1.0 → 6.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Rakefile +25 -0
- data/core.yml +33 -1
- data/lib/ws/style/version.rb +1 -1
- data/rails.yml +10 -1
- data/ws-style.gemspec +5 -5
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c2c80e18e9cafebd36956f127091b925cc33246ce4294515643283cdf76c90ea
|
4
|
+
data.tar.gz: ca2d889d8b8254fa537fe3eb893511033f6873cd20f84483510fef1503aae96c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3fb2387578095dfe4b4db4dd78cb2327b1f5a3be125e2720b06fe2c9d21b54855d39240fd0910258b2bed23ac54082bb5bf82de191b58b284e2bf23237895b5
|
7
|
+
data.tar.gz: 3e973a4d4bdf5d28a2ddbefa1d110fe40b6c1201d1fabd709476b9ca3dce86cb29b8095df17e17c70278b18a5d5e1f4f7a1d18308a5a277f99821e47ddeff64a
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 6.5.0 - 2020-10-26
|
8
|
+
- Upgrade RuboCop and RuboCop RSpec
|
9
|
+
|
10
|
+
## 6.4.0 - 2020-10-07
|
11
|
+
- Upgrade RuboCop
|
12
|
+
|
13
|
+
## 6.3.0 - 2020-10-06
|
14
|
+
- Upgrade RuboCop and enable cops that were voted in
|
15
|
+
|
16
|
+
## 6.2.0 - 2020-09-04
|
17
|
+
- Disable Cops enabled in 6.1.0 until we can confirm we want them
|
18
|
+
|
19
|
+
## 6.1.1 - 2020-09-04
|
20
|
+
- Disable RSpec/MultipleMemoizedHelpers cop
|
21
|
+
|
7
22
|
## 6.1.0 - 2020-08-27
|
8
23
|
- Upgraded rubocop to 0.89
|
9
24
|
- Upgraded rubocop-performance to 1.7
|
data/Rakefile
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
2
|
require "rspec/core/rake_task"
|
3
|
+
require "rubocop"
|
4
|
+
require "rubocop-performance"
|
5
|
+
require "rubocop-rails"
|
6
|
+
require "rubocop-rspec"
|
3
7
|
|
4
8
|
RSpec::Core::RakeTask.new(:spec)
|
5
9
|
|
6
10
|
task default: :spec
|
11
|
+
|
12
|
+
desc 'Print out comments that can be used for a GitHub cop election'
|
13
|
+
task :election do # rubocop:disable Rails/RakeEnvironment
|
14
|
+
configuration_path = File.expand_path('default.yml', File.dirname(__FILE__))
|
15
|
+
RuboCop::ConfigLoader.load_file(configuration_path).pending_cops.each do |pending_cop|
|
16
|
+
base_urls = {
|
17
|
+
'layout' => 'https://docs.rubocop.org/rubocop/cops_layout.html#layout',
|
18
|
+
'lint' => 'https://docs.rubocop.org/rubocop/cops_lint.html#lint',
|
19
|
+
'style' => 'https://docs.rubocop.org/rubocop/cops_style.html#style',
|
20
|
+
'performance' => 'https://docs.rubocop.org/rubocop-performance/cops_performance.html#performance',
|
21
|
+
'rails' => 'https://docs.rubocop.org/rubocop-rails/cops_rails.html#rails',
|
22
|
+
'rspec' => 'https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspec',
|
23
|
+
}
|
24
|
+
department, anchor = pending_cop.name.downcase.split('/')
|
25
|
+
puts <<~COMMENT
|
26
|
+
[**#{pending_cop.name}**](#{base_urls.fetch(department)}#{anchor})
|
27
|
+
#{pending_cop.metadata.fetch('Description')}
|
28
|
+
|
29
|
+
COMMENT
|
30
|
+
end
|
31
|
+
end
|
data/core.yml
CHANGED
@@ -157,6 +157,9 @@ RSpec/MessageChain:
|
|
157
157
|
RSpec/MultipleExpectations:
|
158
158
|
Enabled: false
|
159
159
|
|
160
|
+
RSpec/MultipleMemoizedHelpers:
|
161
|
+
Enabled: false
|
162
|
+
|
160
163
|
RSpec/NamedSubject:
|
161
164
|
Enabled: false
|
162
165
|
|
@@ -276,7 +279,7 @@ Style/ExplicitBlockArgument:
|
|
276
279
|
Enabled: True
|
277
280
|
|
278
281
|
Style/GlobalStdStream:
|
279
|
-
Enabled:
|
282
|
+
Enabled: False
|
280
283
|
|
281
284
|
Style/OptionalBooleanParameter:
|
282
285
|
Enabled: True
|
@@ -311,3 +314,32 @@ Performance/Squeeze:
|
|
311
314
|
|
312
315
|
Performance/StringInclude:
|
313
316
|
Enabled: True
|
317
|
+
|
318
|
+
# 0.90
|
319
|
+
Lint/DuplicateRequire:
|
320
|
+
Enabled: True
|
321
|
+
|
322
|
+
Lint/EmptyFile:
|
323
|
+
Enabled: True
|
324
|
+
|
325
|
+
Lint/TrailingCommaInAttributeDeclaration:
|
326
|
+
Enabled: True
|
327
|
+
|
328
|
+
Lint/UselessMethodDefinition:
|
329
|
+
Enabled: True
|
330
|
+
|
331
|
+
Style/CombinableLoops:
|
332
|
+
Enabled: True
|
333
|
+
|
334
|
+
Style/KeywordParametersOrder:
|
335
|
+
Enabled: True
|
336
|
+
|
337
|
+
Style/RedundantSelfAssignment:
|
338
|
+
Enabled: True
|
339
|
+
|
340
|
+
Style/SoleNestedConditional:
|
341
|
+
Enabled: True
|
342
|
+
|
343
|
+
# rubocop-performance 1.7
|
344
|
+
Performance/Sum:
|
345
|
+
Enabled: True
|
data/lib/ws/style/version.rb
CHANGED
data/rails.yml
CHANGED
@@ -45,8 +45,17 @@ Rails/RenderPlainText:
|
|
45
45
|
Enabled: True
|
46
46
|
|
47
47
|
Rails/ShortI18n:
|
48
|
-
Enabled:
|
48
|
+
Enabled: False
|
49
49
|
|
50
50
|
Rails/WhereExists:
|
51
51
|
Enabled: True
|
52
52
|
|
53
|
+
# rubocop-rails 2.8
|
54
|
+
Rails/AfterCommitOverride:
|
55
|
+
Enabled: True
|
56
|
+
|
57
|
+
Rails/SquishedSQLHeredocs:
|
58
|
+
Enabled: False
|
59
|
+
|
60
|
+
Rails/WhereNot:
|
61
|
+
Enabled: True
|
data/ws-style.gemspec
CHANGED
@@ -22,15 +22,15 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.require_paths = ['lib']
|
23
23
|
s.required_ruby_version = '>= 2.5.7'
|
24
24
|
|
25
|
-
s.add_dependency 'rubocop', '>= 0.
|
26
|
-
s.add_dependency 'rubocop-performance', '>= 1.
|
27
|
-
s.add_dependency 'rubocop-rails', '>= 2.
|
28
|
-
s.add_dependency 'rubocop-rspec', '
|
25
|
+
s.add_dependency 'rubocop', '>= 1.0.0'
|
26
|
+
s.add_dependency 'rubocop-performance', '>= 1.8.1'
|
27
|
+
s.add_dependency 'rubocop-rails', '>= 2.8.1'
|
28
|
+
s.add_dependency 'rubocop-rspec', '>= 1.44.1'
|
29
29
|
s.add_dependency 'rubocop-vendor', '~> 0'
|
30
30
|
|
31
31
|
s.add_development_dependency 'bundler'
|
32
32
|
s.add_development_dependency 'bundler-audit'
|
33
33
|
s.add_development_dependency 'git'
|
34
34
|
s.add_development_dependency 'rake'
|
35
|
-
s.add_development_dependency 'rspec', '~> 3.0'
|
35
|
+
s.add_development_dependency 'rspec', '~> 3.9.0'
|
36
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ws-style
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Graham
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.0.0
|
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:
|
26
|
+
version: 1.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-performance
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.8.1
|
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:
|
40
|
+
version: 1.8.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.8.1
|
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:
|
54
|
+
version: 2.8.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.44.1
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 1.44.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-vendor
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 3.9.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 3.9.0
|
153
153
|
description: Shared config to enforce Ruby style consistently across Wealthsimple
|
154
154
|
services.
|
155
155
|
email:
|