caliber 0.8.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +20 -0
- data/caliber.gemspec +5 -4
- data/config/all.yml +2 -1
- data/config/rspec.yml +10 -0
- data/config/ruby.yml +12 -5
- data/config/thread.yml +1 -0
- data.tar.gz.sig +0 -0
- metadata +24 -9
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abf98012ec71c1f05b56d04e55b88afa167eb66cbb01a397c1c5331b4b754672
|
4
|
+
data.tar.gz: 8767f2441b60400a3bbf905f892adafdbc77629a7631a381c8edf00b906a0048
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa92ec7cb89bedba40046638e4acf223fd758ca2821e83483a2e38ea9d82912dc4553f8cdd0f2b6a5c6828f25f1a3df8ce4e0b0d5fbb7f19af5ff917685c0a29
|
7
|
+
data.tar.gz: 3e0d1dc212b330961de16210050471dae15b62909b1074ca1fde311f617cd2312e592780bdf6fc92643cf3c3a3fb6ca7f49e4bc8292ff346206d8a225d3461e6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -14,6 +14,7 @@ toc::[]
|
|
14
14
|
* Provides a global configuration for the following code quality gems:
|
15
15
|
** link:https://docs.rubocop.org/rubocop[RuboCop]
|
16
16
|
** link:https://github.com/rubocop/rubocop-performance[RuboCop Performance]
|
17
|
+
** link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
|
17
18
|
** link:https://github.com/rubocop/rubocop-rake[RuboCop Rake]
|
18
19
|
** link:https://github.com/rubocop/rubocop-rspec[RuboCop RSpec]
|
19
20
|
|
@@ -65,6 +66,7 @@ inherit_gem:
|
|
65
66
|
caliber:
|
66
67
|
- config/ruby.yml
|
67
68
|
- config/performance.yml
|
69
|
+
- config/thread.yml
|
68
70
|
- config/rake.yml
|
69
71
|
- config/rspec.yml
|
70
72
|
----
|
@@ -88,6 +90,7 @@ inherit_gem:
|
|
88
90
|
The above will auto-require and load the configurations for following gems:
|
89
91
|
|
90
92
|
* RuboCop Performance
|
93
|
+
* RuboCop Thread Safety
|
91
94
|
* RuboCop Rake
|
92
95
|
* RuboCop RSpec
|
93
96
|
|
@@ -112,6 +115,15 @@ inherit_gem:
|
|
112
115
|
|
113
116
|
The above will only require the RuboCop Performance gem _and_ load the associated configuration.
|
114
117
|
|
118
|
+
[source,yaml]
|
119
|
+
----
|
120
|
+
inherit_gem:
|
121
|
+
caliber:
|
122
|
+
- config/thread.yml
|
123
|
+
----
|
124
|
+
|
125
|
+
The above will only require the RuboCop Thread Safety gem _and_ load the associated configuration.
|
126
|
+
|
115
127
|
[source,yaml]
|
116
128
|
----
|
117
129
|
inherit_gem:
|
@@ -155,6 +167,7 @@ configurations you want to use. For example, the following is what `all.yml` exp
|
|
155
167
|
inherit_from:
|
156
168
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/ruby.yml
|
157
169
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/performance.yml
|
170
|
+
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/thread.yml
|
158
171
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rake.yml
|
159
172
|
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rspec.yml
|
160
173
|
----
|
@@ -167,6 +180,7 @@ required and installed for you. So you'll need to manually require these gems in
|
|
167
180
|
|
168
181
|
* link:https://docs.rubocop.org/rubocop[RuboCop]
|
169
182
|
* link:https://docs.rubocop.org/rubocop-performance[RuboCop Performance]
|
183
|
+
* link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
|
170
184
|
* link:https://docs.rubocop.org/rubocop-rspec[RuboCop Rake]
|
171
185
|
* link:https://docs.rubocop.org/rubocop-rspec[RuboCop RSpec]
|
172
186
|
|
@@ -200,6 +214,7 @@ When both RuboCop and Caliber are in sync, the following will be output:
|
|
200
214
|
....
|
201
215
|
RUBY: ✓
|
202
216
|
PERFORMANCE: ✓
|
217
|
+
THREAD: ✓
|
203
218
|
RAKE: ✓
|
204
219
|
RSPEC: ✓
|
205
220
|
....
|
@@ -212,6 +227,7 @@ RUBY:
|
|
212
227
|
* Lint/BinaryOperatorWithIdenticalOperands
|
213
228
|
* Lint/ConstantDefinitionInBlock
|
214
229
|
PERFORMANCE: ✓
|
230
|
+
THREAD: ✓
|
215
231
|
RAKE: ✓
|
216
232
|
RSPEC:
|
217
233
|
* RSpec/StubbedMock
|
@@ -228,6 +244,10 @@ To test, run:
|
|
228
244
|
bundle exec rake
|
229
245
|
----
|
230
246
|
|
247
|
+
== Troubleshooting
|
248
|
+
|
249
|
+
If you are having issues requiring additional RuboCop gems in conjunction with what this gem provides for you, there is a link:https://github.com/rubocop/rubocop/issues/5251#issuecomment-1142638815[known issue and workaround] to this problem. Until the RuboCop team can fix the bug, you'll have to re-require your dependencies until then.
|
250
|
+
|
231
251
|
== link:https://www.alchemists.io/policies/license[License]
|
232
252
|
|
233
253
|
== link:https://www.alchemists.io/policies/security[Security]
|
data/caliber.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "caliber"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.11.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/caliber"
|
@@ -23,10 +23,11 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.cert_chain = [Gem.default_cert_path]
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.1"
|
26
|
-
spec.add_dependency "rubocop", "~> 1.
|
27
|
-
spec.add_dependency "rubocop-performance", "~> 1.
|
26
|
+
spec.add_dependency "rubocop", "~> 1.31"
|
27
|
+
spec.add_dependency "rubocop-performance", "~> 1.14"
|
28
28
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
29
|
-
spec.add_dependency "rubocop-rspec", "~> 2.
|
29
|
+
spec.add_dependency "rubocop-rspec", "~> 2.12"
|
30
|
+
spec.add_dependency "rubocop-thread_safety", "~> 0.4"
|
30
31
|
|
31
32
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
32
33
|
spec.files = Dir["*.gemspec", "config/**/*", "lib/**/*"]
|
data/config/all.yml
CHANGED
data/config/rspec.yml
CHANGED
@@ -5,6 +5,10 @@ RSpec/BeEq:
|
|
5
5
|
RSpec/BeNil:
|
6
6
|
Enabled: true
|
7
7
|
EnforcedStyle: be
|
8
|
+
RSpec/Capybara/SpecificMatcher:
|
9
|
+
Enabled: true
|
10
|
+
RSpec/ChangeByZero:
|
11
|
+
Enabled: true
|
8
12
|
RSpec/ContextWording:
|
9
13
|
Prefixes:
|
10
14
|
- when
|
@@ -36,6 +40,10 @@ RSpec/Dialect:
|
|
36
40
|
subject!: subject
|
37
41
|
RSpec/ExampleLength:
|
38
42
|
Max: 10
|
43
|
+
CountAsOne:
|
44
|
+
- array
|
45
|
+
- hash
|
46
|
+
- heredoc
|
39
47
|
RSpec/ExcessiveDocstringSpacing:
|
40
48
|
Enabled: true
|
41
49
|
RSpec/FactoryBot/SyntaxMethods:
|
@@ -46,6 +54,8 @@ RSpec/NamedSubject:
|
|
46
54
|
IgnoreSharedExamples: false
|
47
55
|
RSpec/Rails/AvoidSetupHook:
|
48
56
|
Enabled: true
|
57
|
+
RSpec/Rails/HaveHttpStatus:
|
58
|
+
Enabled: true
|
49
59
|
RSpec/SubjectDeclaration:
|
50
60
|
Enabled: true
|
51
61
|
RSpec/VerifiedDoubleReference:
|
data/config/ruby.yml
CHANGED
@@ -7,12 +7,12 @@ AllCops:
|
|
7
7
|
- "vendor/**/*"
|
8
8
|
Bundler/InsecureProtocolSource:
|
9
9
|
AllowHttpProtocol: false
|
10
|
-
Gemspec/DateAssignment:
|
11
|
-
Enabled: true
|
12
10
|
Gemspec/DependencyVersion:
|
13
11
|
Enabled: true
|
14
12
|
Gemspec/RequireMFA:
|
15
13
|
Enabled: true
|
14
|
+
Gemspec/DeprecatedAttributeAssignment:
|
15
|
+
Enabled: true
|
16
16
|
Layout/BeginEndAlignment:
|
17
17
|
Enabled: true
|
18
18
|
EnforcedStyleAlignWith: begin
|
@@ -58,6 +58,10 @@ Layout/FirstMethodArgumentLineBreak:
|
|
58
58
|
Enabled: true
|
59
59
|
Layout/FirstMethodParameterLineBreak:
|
60
60
|
Enabled: true
|
61
|
+
Layout/LineContinuationLeadingSpace:
|
62
|
+
Enabled: true
|
63
|
+
Layout/LineContinuationSpacing:
|
64
|
+
Enabled: true
|
61
65
|
Layout/LineEndStringConcatenationIndentation:
|
62
66
|
Enabled: true
|
63
67
|
IndentationWidth: 0
|
@@ -89,6 +93,8 @@ Lint/AmbiguousOperatorPrecedence:
|
|
89
93
|
Enabled: true
|
90
94
|
Lint/AmbiguousRange:
|
91
95
|
Enabled: true
|
96
|
+
Lint/ConstantOverwrittenInRescue:
|
97
|
+
Enabled: true
|
92
98
|
Lint/DeprecatedConstants:
|
93
99
|
Enabled: true
|
94
100
|
Lint/DuplicateBranch:
|
@@ -115,6 +121,8 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
115
121
|
Enabled: true
|
116
122
|
Lint/LambdaWithoutLiteralBlock:
|
117
123
|
Enabled: true
|
124
|
+
Lint/NonAtomicFileOperation:
|
125
|
+
Enabled: true
|
118
126
|
Lint/NoReturnInBeginEndBlocks:
|
119
127
|
Enabled: true
|
120
128
|
Lint/NumberedParameterAssignment:
|
@@ -143,9 +151,6 @@ Metrics/BlockLength:
|
|
143
151
|
IgnoredMethods:
|
144
152
|
- ips
|
145
153
|
- refine
|
146
|
-
Exclude:
|
147
|
-
- "**/*.gemspec"
|
148
|
-
- "spec/**/*"
|
149
154
|
Metrics/ParameterLists:
|
150
155
|
Max: 3
|
151
156
|
Naming/BlockForwarding:
|
@@ -233,6 +238,8 @@ Style/InPatternThen:
|
|
233
238
|
Enabled: true
|
234
239
|
Style/IpAddresses:
|
235
240
|
Enabled: true
|
241
|
+
Style/MapCompactWithConditionalBlock:
|
242
|
+
Enabled: true
|
236
243
|
Style/MapToHash:
|
237
244
|
Enabled: true
|
238
245
|
Style/MethodCalledOnDoEndBlock:
|
data/config/thread.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require: rubocop-thread_safety
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caliber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2022-
|
31
|
+
date: 2022-07-02 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: rubocop
|
@@ -36,28 +36,28 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '1.
|
39
|
+
version: '1.31'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.31'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rubocop-performance
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.14'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '1.
|
60
|
+
version: '1.14'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rubocop-rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +78,28 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '2.
|
81
|
+
version: '2.12'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '2.
|
88
|
+
version: '2.12'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop-thread_safety
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0.4'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0.4'
|
89
103
|
description:
|
90
104
|
email:
|
91
105
|
- brooke@alchemists.io
|
@@ -103,6 +117,7 @@ files:
|
|
103
117
|
- config/rake.yml
|
104
118
|
- config/rspec.yml
|
105
119
|
- config/ruby.yml
|
120
|
+
- config/thread.yml
|
106
121
|
- lib/caliber.rb
|
107
122
|
homepage: https://www.alchemists.io/projects/caliber
|
108
123
|
licenses:
|
@@ -130,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
145
|
- !ruby/object:Gem::Version
|
131
146
|
version: '0'
|
132
147
|
requirements: []
|
133
|
-
rubygems_version: 3.3.
|
148
|
+
rubygems_version: 3.3.17
|
134
149
|
signing_key:
|
135
150
|
specification_version: 4
|
136
151
|
summary: Provides a high quality style guide and configuration for your projects.
|
metadata.gz.sig
CHANGED
Binary file
|