caliber 0.5.1 → 0.8.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +43 -3
- data/caliber.gemspec +4 -3
- data/config/rspec.yml +3 -0
- data/config/ruby.yml +12 -1
- data.tar.gz.sig +0 -0
- metadata +8 -7
- 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: 4ebd905f26de1ecddc97196a674842382f8ca1d3f71ca64684980f6de73c4509
|
4
|
+
data.tar.gz: 06b0d7ea3aa500553940ad940e65ce703710902b8670332b6cffae55402ceae7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51f465ba1a618e1a00ee32959352fd0487e89f7c77063b0e4e925a07998525863c27af3efdc1c347c665213553faf9f43949822c1ece6bebd1fc615c15a6d8d6
|
7
|
+
data.tar.gz: 4562eb80068bc32024241826d212006244b6e5e6a323cc2088bfeafea7acc7260fc64d399553e47038d8786aacfe56e61cadfe5a9dbf459d2a5b9ab096007cd3
|
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.8.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", "~> 1.29"
|
26
27
|
spec.add_dependency "rubocop-performance", "~> 1.13"
|
27
28
|
spec.add_dependency "rubocop-rake", "~> 0.6"
|
28
|
-
spec.add_dependency "rubocop-rspec", "~> 2.
|
29
|
+
spec.add_dependency "rubocop-rspec", "~> 2.10"
|
29
30
|
|
30
31
|
spec.extra_rdoc_files = Dir["README*", "LICENSE*"]
|
31
32
|
spec.files = Dir["*.gemspec", "config/**/*", "lib/**/*"]
|
data/config/rspec.yml
CHANGED
@@ -4,6 +4,7 @@ RSpec/BeEq:
|
|
4
4
|
Enabled: true
|
5
5
|
RSpec/BeNil:
|
6
6
|
Enabled: true
|
7
|
+
EnforcedStyle: be
|
7
8
|
RSpec/ContextWording:
|
8
9
|
Prefixes:
|
9
10
|
- when
|
@@ -47,3 +48,5 @@ RSpec/Rails/AvoidSetupHook:
|
|
47
48
|
Enabled: true
|
48
49
|
RSpec/SubjectDeclaration:
|
49
50
|
Enabled: true
|
51
|
+
RSpec/VerifiedDoubleReference:
|
52
|
+
Enabled: true
|
data/config/ruby.yml
CHANGED
@@ -9,6 +9,8 @@ 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
|
14
16
|
Layout/BeginEndAlignment:
|
@@ -151,7 +153,7 @@ Naming/BlockForwarding:
|
|
151
153
|
Naming/InclusiveLanguage:
|
152
154
|
Enabled: true
|
153
155
|
Naming/MethodName:
|
154
|
-
|
156
|
+
AllowedPatterns:
|
155
157
|
- Array
|
156
158
|
- BigDecimal
|
157
159
|
- Complex
|
@@ -172,6 +174,8 @@ Naming/VariableNumber:
|
|
172
174
|
- capture3
|
173
175
|
Naming/MethodParameterName:
|
174
176
|
AllowNamesEndingInNumbers: false
|
177
|
+
Security/CompoundHash:
|
178
|
+
Enabled: true
|
175
179
|
Security/IoMethods:
|
176
180
|
Enabled: true
|
177
181
|
Style/ArgumentsForwarding:
|
@@ -200,8 +204,12 @@ Style/EmptyMethod:
|
|
200
204
|
EnforcedStyle: expanded
|
201
205
|
Style/EndlessMethod:
|
202
206
|
Enabled: true
|
207
|
+
Style/EnvHome:
|
208
|
+
Enabled: true
|
203
209
|
Style/ExplicitBlockArgument:
|
204
210
|
Enabled: false
|
211
|
+
Style/FetchEnvVar:
|
212
|
+
Enabled: true
|
205
213
|
Style/FileRead:
|
206
214
|
Enabled: true
|
207
215
|
Style/FileWrite:
|
@@ -256,6 +264,8 @@ Style/NumberedParametersLimit:
|
|
256
264
|
Enabled: true
|
257
265
|
Style/NumericLiterals:
|
258
266
|
Enabled: false
|
267
|
+
Style/ObjectThen:
|
268
|
+
Enabled: true
|
259
269
|
Style/OptionHash:
|
260
270
|
Enabled: true
|
261
271
|
Style/OpenStructUse:
|
@@ -275,6 +285,7 @@ Style/RedundantSelfAssignmentBranch:
|
|
275
285
|
Enabled: true
|
276
286
|
Style/RedundantInitialize:
|
277
287
|
Enabled: true
|
288
|
+
AllowComments: false
|
278
289
|
Style/ReturnNil:
|
279
290
|
Enabled: true
|
280
291
|
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.8.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-07 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.
|
39
|
+
version: '1.29'
|
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.29'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rubocop-performance
|
49
49
|
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.10'
|
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.10'
|
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.13
|
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
|