caliber 0.10.0 → 0.12.1

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: 2931b2a87cd0e05894443ee49bef96ba51c0f73662463f1a8378a48ab1219cd0
4
- data.tar.gz: bfe4c03b3d0fe932ab682722c486ef99c75e1a8366da3d93d056e14bf6e41631
3
+ metadata.gz: 9f531de998fdfc3fdc3b65e180f5ef92d3b1a6c4f6331303e25df4bbced5752a
4
+ data.tar.gz: 0b038ac03f020947d17dc4f0509c9afdabd66d3773c52dbe89fc02c00d0876a3
5
5
  SHA512:
6
- metadata.gz: 3ba8f18e896741230d2625cc1d162e75372c2fb5a4f3b09bbbe6b65e0070cd44851de70caa66b81ddfc2a34e4f5bf25179f377d41440acbbf4d6296ea3a8d1c0
7
- data.tar.gz: a8e0a8a8ed2db7b945dabde291e768e5a314067513bc620686f73d77a1a7bb41f9d3b3c19fcfa61c0792c0bd1395b7dbc7ae6c6d3c115920d122e633277c7490
6
+ metadata.gz: dc8ef80b0c4f6415d9d65664ec4e5c698eea49622cc285c2563c1967418eda6c503946700a7c9a74edb8565ef2543eed1d8abd23f1e2c69ba3cb8dcbb20d77fa
7
+ data.tar.gz: d825bfdf07b5f91248d1a46267568c22c38e6f030dfe4a599f995d0aad79c71ece45378410bd6b6b6967dce05d4b392ed61b495f055c429281dce1ca60b33c2a
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -7,6 +7,8 @@
7
7
  This gem provides global link:https://docs.rubocop.org/rubocop[RuboCop] configurations for ensuring
8
8
  high quality _and_ consistent software development practices.
9
9
 
10
+ _Due to the ever changing nature of the RuboCop gem ecosystem -- and the fact that it's very easy to fall behind quickly -- this gem takes an aggressive approach to staying up to date with latest changes within the RuboCop community. This also means this gem will probably never reach 1.0.0 status because new changes are being introduced in each minor release. That said, if you always want to be on top of recent changes -- because you know how costly technical debt is -- then this gem has you covered. 🎉_
11
+
10
12
  toc::[]
11
13
 
12
14
  == Features
@@ -14,6 +16,7 @@ toc::[]
14
16
  * Provides a global configuration for the following code quality gems:
15
17
  ** link:https://docs.rubocop.org/rubocop[RuboCop]
16
18
  ** link:https://github.com/rubocop/rubocop-performance[RuboCop Performance]
19
+ ** link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
17
20
  ** link:https://github.com/rubocop/rubocop-rake[RuboCop Rake]
18
21
  ** link:https://github.com/rubocop/rubocop-rspec[RuboCop RSpec]
19
22
 
@@ -65,6 +68,7 @@ inherit_gem:
65
68
  caliber:
66
69
  - config/ruby.yml
67
70
  - config/performance.yml
71
+ - config/thread.yml
68
72
  - config/rake.yml
69
73
  - config/rspec.yml
70
74
  ----
@@ -88,6 +92,7 @@ inherit_gem:
88
92
  The above will auto-require and load the configurations for following gems:
89
93
 
90
94
  * RuboCop Performance
95
+ * RuboCop Thread Safety
91
96
  * RuboCop Rake
92
97
  * RuboCop RSpec
93
98
 
@@ -112,6 +117,15 @@ inherit_gem:
112
117
 
113
118
  The above will only require the RuboCop Performance gem _and_ load the associated configuration.
114
119
 
120
+ [source,yaml]
121
+ ----
122
+ inherit_gem:
123
+ caliber:
124
+ - config/thread.yml
125
+ ----
126
+
127
+ The above will only require the RuboCop Thread Safety gem _and_ load the associated configuration.
128
+
115
129
  [source,yaml]
116
130
  ----
117
131
  inherit_gem:
@@ -155,6 +169,7 @@ configurations you want to use. For example, the following is what `all.yml` exp
155
169
  inherit_from:
156
170
  - https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/ruby.yml
157
171
  - https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/performance.yml
172
+ - https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/thread.yml
158
173
  - https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rake.yml
159
174
  - https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rspec.yml
160
175
  ----
@@ -167,6 +182,7 @@ required and installed for you. So you'll need to manually require these gems in
167
182
 
168
183
  * link:https://docs.rubocop.org/rubocop[RuboCop]
169
184
  * link:https://docs.rubocop.org/rubocop-performance[RuboCop Performance]
185
+ * link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
170
186
  * link:https://docs.rubocop.org/rubocop-rspec[RuboCop Rake]
171
187
  * link:https://docs.rubocop.org/rubocop-rspec[RuboCop RSpec]
172
188
 
@@ -200,6 +216,7 @@ When both RuboCop and Caliber are in sync, the following will be output:
200
216
  ....
201
217
  RUBY: ✓
202
218
  PERFORMANCE: ✓
219
+ THREAD: ✓
203
220
  RAKE: ✓
204
221
  RSPEC: ✓
205
222
  ....
@@ -212,6 +229,7 @@ RUBY:
212
229
  * Lint/BinaryOperatorWithIdenticalOperands
213
230
  * Lint/ConstantDefinitionInBlock
214
231
  PERFORMANCE: ✓
232
+ THREAD: ✓
215
233
  RAKE: ✓
216
234
  RSPEC:
217
235
  * RSpec/StubbedMock
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.10.0"
5
+ spec.version = "0.12.1"
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.31"
26
+ spec.add_dependency "rubocop", "~> 1.33"
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:
@@ -52,6 +54,8 @@ RSpec/NamedSubject:
52
54
  IgnoreSharedExamples: false
53
55
  RSpec/Rails/AvoidSetupHook:
54
56
  Enabled: true
57
+ RSpec/Rails/HaveHttpStatus:
58
+ Enabled: true
55
59
  RSpec/SubjectDeclaration:
56
60
  Enabled: true
57
61
  RSpec/VerifiedDoubleReference:
data/config/ruby.yml CHANGED
@@ -76,6 +76,8 @@ Layout/MultilineHashKeyLineBreaks:
76
76
  Enabled: true
77
77
  Layout/MultilineMethodArgumentLineBreaks:
78
78
  Enabled: true
79
+ Layout/MultilineMethodParameterLineBreaks:
80
+ Enabled: true
79
81
  Layout/RedundantLineBreak:
80
82
  Enabled: true
81
83
  InspectBlocks: true
@@ -133,6 +135,8 @@ Lint/RedundantDirGlobSort:
133
135
  Enabled: true
134
136
  Lint/RefinementImportMethods:
135
137
  Enabled: true
138
+ Lint/RequireRangeParentheses:
139
+ Enabled: true
136
140
  Lint/RequireRelativeSelfPath:
137
141
  Enabled: true
138
142
  Lint/SymbolConversion:
@@ -148,7 +152,7 @@ Lint/UnmodifiedReduceAccumulator:
148
152
  Lint/UselessRuby2Keywords:
149
153
  Enabled: true
150
154
  Metrics/BlockLength:
151
- IgnoredMethods:
155
+ AllowedMethods:
152
156
  - ips
153
157
  - refine
154
158
  Metrics/ParameterLists:
@@ -203,6 +207,8 @@ Style/DocumentDynamicEvalDefinition:
203
207
  Enabled: false
204
208
  Style/DoubleNegation:
205
209
  EnforcedStyle: forbidden
210
+ Style/EmptyHeredoc:
211
+ Enabled: true
206
212
  Style/EmptyLiteral:
207
213
  Enabled: false
208
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.10.0
4
+ version: 0.12.1
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-06-27 00:00:00.000000000 Z
31
+ date: 2022-08-04 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.31'
39
+ version: '1.33'
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.31'
46
+ version: '1.33'
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.16
148
+ rubygems_version: 3.3.19
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