caliber 0.9.0 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0fd97756122c6a8036940aa6bf7603b028b1df4e5ac480ccd7ac857d32099cc
4
- data.tar.gz: a7ea41a00efb8c32a0b703fcb39853d288db538bd206f556727e43a7e3aeafdf
3
+ metadata.gz: fcaeba032362b3b70bba3bad01727c9fb724b3bb109f821ce39f6756fe432d23
4
+ data.tar.gz: e8a973c75c81cfb9659a3f048c0d76004833c9ea4065b2ed4412947cf8b22925
5
5
  SHA512:
6
- metadata.gz: a03ce8a701c65ca774a8c5dd2a37787fefd2b7c5cd9f4440381df4e8e8f71e8cb30241175d0c4b0f7aca676179d00b887e78bf1e8500c9b44b9a71cbd809b349
7
- data.tar.gz: d643fec1de85409c726eafe749d480c24a41d0b7bac390debe7dabf6dbabdc0acbc04b28b5ee640b2cdd077602a98afe2f9d80ddd1aeb158d5fb575ef1a001f5
6
+ metadata.gz: 9d6446f2d72b5c975d4d9e67a1b9025d5a0b21cfab34e8e7807d48701aa0188fe7cfbb9af059d52f3298fd330ffd28a66b0103408220af8e25c612fbc9504bac
7
+ data.tar.gz: efd3f358ee79d13a4e2e012d4f3a5e4976b61e9d3c2272cc173daa71c9b9cb16a8cb6128592f0603ce89900b00daed61f3348c39e4f7afdaf7f670c7da2d89b5
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.9.0"
5
+ spec.version = "0.12.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.30"
26
+ spec.add_dependency "rubocop", "~> 1.32"
27
27
  spec.add_dependency "rubocop-performance", "~> 1.14"
28
28
  spec.add_dependency "rubocop-rake", "~> 0.6"
29
- spec.add_dependency "rubocop-rspec", "~> 2.11"
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
@@ -1,5 +1,6 @@
1
1
  inherit_from:
2
2
  - ruby.yml
3
- - rake.yml
4
3
  - performance.yml
4
+ - thread.yml
5
+ - rake.yml
5
6
  - rspec.yml
data/config/rspec.yml CHANGED
@@ -5,6 +5,8 @@ RSpec/BeEq:
5
5
  RSpec/BeNil:
6
6
  Enabled: true
7
7
  EnforcedStyle: be
8
+ RSpec/Capybara/SpecificMatcher:
9
+ Enabled: true
8
10
  RSpec/ChangeByZero:
9
11
  Enabled: true
10
12
  RSpec/ContextWording:
@@ -38,6 +40,10 @@ RSpec/Dialect:
38
40
  subject!: subject
39
41
  RSpec/ExampleLength:
40
42
  Max: 10
43
+ CountAsOne:
44
+ - array
45
+ - hash
46
+ - heredoc
41
47
  RSpec/ExcessiveDocstringSpacing:
42
48
  Enabled: true
43
49
  RSpec/FactoryBot/SyntaxMethods:
@@ -48,6 +54,8 @@ RSpec/NamedSubject:
48
54
  IgnoreSharedExamples: false
49
55
  RSpec/Rails/AvoidSetupHook:
50
56
  Enabled: true
57
+ RSpec/Rails/HaveHttpStatus:
58
+ Enabled: true
51
59
  RSpec/SubjectDeclaration:
52
60
  Enabled: true
53
61
  RSpec/VerifiedDoubleReference:
data/config/ruby.yml CHANGED
@@ -7,8 +7,6 @@ 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:
@@ -60,6 +58,10 @@ Layout/FirstMethodArgumentLineBreak:
60
58
  Enabled: true
61
59
  Layout/FirstMethodParameterLineBreak:
62
60
  Enabled: true
61
+ Layout/LineContinuationLeadingSpace:
62
+ Enabled: true
63
+ Layout/LineContinuationSpacing:
64
+ Enabled: true
63
65
  Layout/LineEndStringConcatenationIndentation:
64
66
  Enabled: true
65
67
  IndentationWidth: 0
@@ -74,6 +76,8 @@ Layout/MultilineHashKeyLineBreaks:
74
76
  Enabled: true
75
77
  Layout/MultilineMethodArgumentLineBreaks:
76
78
  Enabled: true
79
+ Layout/MultilineMethodParameterLineBreaks:
80
+ Enabled: true
77
81
  Layout/RedundantLineBreak:
78
82
  Enabled: true
79
83
  InspectBlocks: true
@@ -91,6 +95,8 @@ Lint/AmbiguousOperatorPrecedence:
91
95
  Enabled: true
92
96
  Lint/AmbiguousRange:
93
97
  Enabled: true
98
+ Lint/ConstantOverwrittenInRescue:
99
+ Enabled: true
94
100
  Lint/DeprecatedConstants:
95
101
  Enabled: true
96
102
  Lint/DuplicateBranch:
@@ -117,6 +123,8 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
117
123
  Enabled: true
118
124
  Lint/LambdaWithoutLiteralBlock:
119
125
  Enabled: true
126
+ Lint/NonAtomicFileOperation:
127
+ Enabled: true
120
128
  Lint/NoReturnInBeginEndBlocks:
121
129
  Enabled: true
122
130
  Lint/NumberedParameterAssignment:
@@ -127,6 +135,8 @@ Lint/RedundantDirGlobSort:
127
135
  Enabled: true
128
136
  Lint/RefinementImportMethods:
129
137
  Enabled: true
138
+ Lint/RequireRangeParentheses:
139
+ Enabled: true
130
140
  Lint/RequireRelativeSelfPath:
131
141
  Enabled: true
132
142
  Lint/SymbolConversion:
@@ -197,6 +207,8 @@ Style/DocumentDynamicEvalDefinition:
197
207
  Enabled: false
198
208
  Style/DoubleNegation:
199
209
  EnforcedStyle: forbidden
210
+ Style/EmptyHeredoc:
211
+ Enabled: true
200
212
  Style/EmptyLiteral:
201
213
  Enabled: false
202
214
  Style/EmptyMethod:
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.9.0
4
+ version: 0.12.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-05-26 00:00:00.000000000 Z
31
+ date: 2022-07-21 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rubocop
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.30'
39
+ version: '1.32'
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.30'
46
+ version: '1.32'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rubocop-performance
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +78,28 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '2.11'
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.11'
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.14
148
+ rubygems_version: 3.3.18
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