caliber 0.6.0 → 0.9.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 +43 -3
- data/caliber.gemspec +5 -4
- data/config/rspec.yml +2 -0
- data/config/ruby.yml +16 -4
- data.tar.gz.sig +0 -0
- metadata +10 -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: d0fd97756122c6a8036940aa6bf7603b028b1df4e5ac480ccd7ac857d32099cc
|
4
|
+
data.tar.gz: a7ea41a00efb8c32a0b703fcb39853d288db538bd206f556727e43a7e3aeafdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a03ce8a701c65ca774a8c5dd2a37787fefd2b7c5cd9f4440381df4e8e8f71e8cb30241175d0c4b0f7aca676179d00b887e78bf1e8500c9b44b9a71cbd809b349
|
7
|
+
data.tar.gz: d643fec1de85409c726eafe749d480c24a41d0b7bac390debe7dabf6dbabdc0acbc04b28b5ee640b2cdd077602a98afe2f9d80ddd1aeb158d5fb575ef1a001f5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -54,7 +54,7 @@ inherit_gem:
|
|
54
54
|
|
55
55
|
That's it!
|
56
56
|
|
57
|
-
|
57
|
+
=== Customization
|
58
58
|
|
59
59
|
Should you not want everything that this gem offers, you can customize
|
60
60
|
the gem further by specifiying what you need:
|
@@ -72,7 +72,7 @@ inherit_gem:
|
|
72
72
|
The above is what `config/all.yml` expands to but now you can mix and match how you like for your
|
73
73
|
needs.
|
74
74
|
|
75
|
-
|
75
|
+
=== Auto-Requires
|
76
76
|
|
77
77
|
When Caliber is added to your `Gemfile`, you don't have to require RuboCop because Caliber does that
|
78
78
|
for you by default. All RuboCop dependencies are also auto-required because they are defined in each
|
@@ -91,7 +91,7 @@ The above will auto-require and load the configurations for following gems:
|
|
91
91
|
* RuboCop Rake
|
92
92
|
* RuboCop RSpec
|
93
93
|
|
94
|
-
When you don't use the default `all.yml` configuration then behavior changes as follows:
|
94
|
+
When you don't use the default `all.yml` configuration, then behavior changes as follows:
|
95
95
|
|
96
96
|
[source,yaml]
|
97
97
|
----
|
@@ -130,6 +130,46 @@ inherit_gem:
|
|
130
130
|
|
131
131
|
The above will only require the RuboCop RSpec gem _and_ load the associated configuration.
|
132
132
|
|
133
|
+
=== Import Only
|
134
|
+
|
135
|
+
Should you not want to include this gem in your project for some reason, you can directly import the
|
136
|
+
configuration files supported by this project instead. To do this, you'd need to add the following
|
137
|
+
to the top of your `.rubocop.yml`:
|
138
|
+
|
139
|
+
[source,yaml]
|
140
|
+
----
|
141
|
+
inherit_from:
|
142
|
+
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/all.yml
|
143
|
+
----
|
144
|
+
|
145
|
+
You'll also want to add `.rubocop-https*` to your project's `.gitignore` since imported RuboCop YAML
|
146
|
+
configurations will be cached locally and you'll not want them checked into your source code
|
147
|
+
repository.
|
148
|
+
|
149
|
+
If importing all configurations from `all.yml` is too much -- and much like you can do with
|
150
|
+
requiring this gem directly -- you can mix and match what you want to import by defining which
|
151
|
+
configurations you want to use. For example, the following is what `all.yml` expands too:
|
152
|
+
|
153
|
+
[source,yaml]
|
154
|
+
----
|
155
|
+
inherit_from:
|
156
|
+
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/ruby.yml
|
157
|
+
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/performance.yml
|
158
|
+
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rake.yml
|
159
|
+
- https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rspec.yml
|
160
|
+
----
|
161
|
+
|
162
|
+
You can also target a specific version of this gem by swapping out the `main` path in the YAML URLs
|
163
|
+
listed above with a specific version like `0.0.0`.
|
164
|
+
|
165
|
+
Lastly, when using this YAML import approach, you'll not benefit from having all gems you need
|
166
|
+
required and installed for you. So you'll need to manually require these gems in your `Gemfile`:
|
167
|
+
|
168
|
+
* link:https://docs.rubocop.org/rubocop[RuboCop]
|
169
|
+
* link:https://docs.rubocop.org/rubocop-performance[RuboCop Performance]
|
170
|
+
* link:https://docs.rubocop.org/rubocop-rspec[RuboCop Rake]
|
171
|
+
* link:https://docs.rubocop.org/rubocop-rspec[RuboCop RSpec]
|
172
|
+
|
133
173
|
== Development
|
134
174
|
|
135
175
|
To contribute, run:
|
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.9.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/caliber"
|
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
"bug_tracker_uri" => "https://github.com/bkuhlmann/caliber/issues",
|
14
14
|
"changelog_uri" => "https://www.alchemists.io/projects/caliber/versions",
|
15
15
|
"documentation_uri" => "https://www.alchemists.io/projects/caliber",
|
16
|
+
"funding_uri" => "https://github.com/sponsors/bkuhlmann",
|
16
17
|
"label" => "Caliber",
|
17
18
|
"rubygems_mfa_required" => "true",
|
18
19
|
"source_code_uri" => "https://github.com/bkuhlmann/caliber"
|
@@ -22,10 +23,10 @@ Gem::Specification.new do |spec|
|
|
22
23
|
spec.cert_chain = [Gem.default_cert_path]
|
23
24
|
|
24
25
|
spec.required_ruby_version = "~> 3.1"
|
25
|
-
spec.add_dependency "rubocop", "~> 1.
|
26
|
-
spec.add_dependency "rubocop-performance", "~> 1.
|
26
|
+
spec.add_dependency "rubocop", "~> 1.30"
|
27
|
+
spec.add_dependency "rubocop-performance", "~> 1.14"
|
27
28
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
28
|
-
spec.add_dependency "rubocop-rspec", "~> 2.
|
29
|
+
spec.add_dependency "rubocop-rspec", "~> 2.11"
|
29
30
|
|
30
31
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
31
32
|
spec.files = Dir["*.gemspec", "config/**/*", "lib/**/*"]
|
data/config/rspec.yml
CHANGED
data/config/ruby.yml
CHANGED
@@ -9,8 +9,12 @@ Bundler/InsecureProtocolSource:
|
|
9
9
|
AllowHttpProtocol: false
|
10
10
|
Gemspec/DateAssignment:
|
11
11
|
Enabled: true
|
12
|
+
Gemspec/DependencyVersion:
|
13
|
+
Enabled: true
|
12
14
|
Gemspec/RequireMFA:
|
13
15
|
Enabled: true
|
16
|
+
Gemspec/DeprecatedAttributeAssignment:
|
17
|
+
Enabled: true
|
14
18
|
Layout/BeginEndAlignment:
|
15
19
|
Enabled: true
|
16
20
|
EnforcedStyleAlignWith: begin
|
@@ -141,9 +145,6 @@ Metrics/BlockLength:
|
|
141
145
|
IgnoredMethods:
|
142
146
|
- ips
|
143
147
|
- refine
|
144
|
-
Exclude:
|
145
|
-
- "**/*.gemspec"
|
146
|
-
- "spec/**/*"
|
147
148
|
Metrics/ParameterLists:
|
148
149
|
Max: 3
|
149
150
|
Naming/BlockForwarding:
|
@@ -151,7 +152,7 @@ Naming/BlockForwarding:
|
|
151
152
|
Naming/InclusiveLanguage:
|
152
153
|
Enabled: true
|
153
154
|
Naming/MethodName:
|
154
|
-
|
155
|
+
AllowedPatterns:
|
155
156
|
- Array
|
156
157
|
- BigDecimal
|
157
158
|
- Complex
|
@@ -172,6 +173,8 @@ Naming/VariableNumber:
|
|
172
173
|
- capture3
|
173
174
|
Naming/MethodParameterName:
|
174
175
|
AllowNamesEndingInNumbers: false
|
176
|
+
Security/CompoundHash:
|
177
|
+
Enabled: true
|
175
178
|
Security/IoMethods:
|
176
179
|
Enabled: true
|
177
180
|
Style/ArgumentsForwarding:
|
@@ -200,8 +203,12 @@ Style/EmptyMethod:
|
|
200
203
|
EnforcedStyle: expanded
|
201
204
|
Style/EndlessMethod:
|
202
205
|
Enabled: true
|
206
|
+
Style/EnvHome:
|
207
|
+
Enabled: true
|
203
208
|
Style/ExplicitBlockArgument:
|
204
209
|
Enabled: false
|
210
|
+
Style/FetchEnvVar:
|
211
|
+
Enabled: true
|
205
212
|
Style/FileRead:
|
206
213
|
Enabled: true
|
207
214
|
Style/FileWrite:
|
@@ -225,6 +232,8 @@ Style/InPatternThen:
|
|
225
232
|
Enabled: true
|
226
233
|
Style/IpAddresses:
|
227
234
|
Enabled: true
|
235
|
+
Style/MapCompactWithConditionalBlock:
|
236
|
+
Enabled: true
|
228
237
|
Style/MapToHash:
|
229
238
|
Enabled: true
|
230
239
|
Style/MethodCalledOnDoEndBlock:
|
@@ -256,6 +265,8 @@ Style/NumberedParametersLimit:
|
|
256
265
|
Enabled: true
|
257
266
|
Style/NumericLiterals:
|
258
267
|
Enabled: false
|
268
|
+
Style/ObjectThen:
|
269
|
+
Enabled: true
|
259
270
|
Style/OptionHash:
|
260
271
|
Enabled: true
|
261
272
|
Style/OpenStructUse:
|
@@ -275,6 +286,7 @@ Style/RedundantSelfAssignmentBranch:
|
|
275
286
|
Enabled: true
|
276
287
|
Style/RedundantInitialize:
|
277
288
|
Enabled: true
|
289
|
+
AllowComments: false
|
278
290
|
Style/ReturnNil:
|
279
291
|
Enabled: true
|
280
292
|
Style/SafeNavigation:
|
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.9.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-05-26 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.30'
|
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.30'
|
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,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '2.
|
81
|
+
version: '2.11'
|
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.11'
|
89
89
|
description:
|
90
90
|
email:
|
91
91
|
- brooke@alchemists.io
|
@@ -111,6 +111,7 @@ metadata:
|
|
111
111
|
bug_tracker_uri: https://github.com/bkuhlmann/caliber/issues
|
112
112
|
changelog_uri: https://www.alchemists.io/projects/caliber/versions
|
113
113
|
documentation_uri: https://www.alchemists.io/projects/caliber
|
114
|
+
funding_uri: https://github.com/sponsors/bkuhlmann
|
114
115
|
label: Caliber
|
115
116
|
rubygems_mfa_required: 'true'
|
116
117
|
source_code_uri: https://github.com/bkuhlmann/caliber
|
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
130
|
- !ruby/object:Gem::Version
|
130
131
|
version: '0'
|
131
132
|
requirements: []
|
132
|
-
rubygems_version: 3.3.
|
133
|
+
rubygems_version: 3.3.14
|
133
134
|
signing_key:
|
134
135
|
specification_version: 4
|
135
136
|
summary: Provides a high quality style guide and configuration for your projects.
|
metadata.gz.sig
CHANGED
Binary file
|