caliber 0.7.0 → 0.10.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: 6f593f62ec1d2ed871e3b9cf717f2b9971526960542505f6931f4d290aab73cc
4
- data.tar.gz: 93403d73531f9125dbf248379ce47416784146a0978279ac937bd52f6db3be50
3
+ metadata.gz: 2931b2a87cd0e05894443ee49bef96ba51c0f73662463f1a8378a48ab1219cd0
4
+ data.tar.gz: bfe4c03b3d0fe932ab682722c486ef99c75e1a8366da3d93d056e14bf6e41631
5
5
  SHA512:
6
- metadata.gz: 7da316700831c2a0d8d821daad015bdc28d3d4e208bdc2e416ab805fa1878887d1cc55c39309616f4de068eb7896a572f3feed35eedf4ef67c50e9ed8ca2386f
7
- data.tar.gz: ba38bf9bffb4c6f3bed1cfdd04f497e3e46e5f04c9adc3b645fc0857589a91cd41be9068623ea64834c44bc22635abdbee3cd7512e5ab189eb2508e831444528
6
+ metadata.gz: 3ba8f18e896741230d2625cc1d162e75372c2fb5a4f3b09bbbe6b65e0070cd44851de70caa66b81ddfc2a34e4f5bf25179f377d41440acbbf4d6296ea3a8d1c0
7
+ data.tar.gz: a8e0a8a8ed2db7b945dabde291e768e5a314067513bc620686f73d77a1a7bb41f9d3b3c19fcfa61c0792c0bd1395b7dbc7ae6c6d3c115920d122e633277c7490
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
- == Customization
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
- == Auto-Requires
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:
@@ -188,6 +228,10 @@ To test, run:
188
228
  bundle exec rake
189
229
  ----
190
230
 
231
+ == Troubleshooting
232
+
233
+ 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.
234
+
191
235
  == link:https://www.alchemists.io/policies/license[License]
192
236
 
193
237
  == 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.7.0"
5
+ spec.version = "0.10.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.28"
26
- spec.add_dependency "rubocop-performance", "~> 1.13"
26
+ spec.add_dependency "rubocop", "~> 1.31"
27
+ spec.add_dependency "rubocop-performance", "~> 1.14"
27
28
  spec.add_dependency "rubocop-rake", "~> 0.6"
28
- spec.add_dependency "rubocop-rspec", "~> 2.10"
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
@@ -5,6 +5,8 @@ RSpec/BeEq:
5
5
  RSpec/BeNil:
6
6
  Enabled: true
7
7
  EnforcedStyle: be
8
+ RSpec/ChangeByZero:
9
+ Enabled: true
8
10
  RSpec/ContextWording:
9
11
  Prefixes:
10
12
  - when
@@ -36,6 +38,10 @@ RSpec/Dialect:
36
38
  subject!: subject
37
39
  RSpec/ExampleLength:
38
40
  Max: 10
41
+ CountAsOne:
42
+ - array
43
+ - hash
44
+ - heredoc
39
45
  RSpec/ExcessiveDocstringSpacing:
40
46
  Enabled: true
41
47
  RSpec/FactoryBot/SyntaxMethods:
data/config/ruby.yml CHANGED
@@ -7,10 +7,12 @@ AllCops:
7
7
  - "vendor/**/*"
8
8
  Bundler/InsecureProtocolSource:
9
9
  AllowHttpProtocol: false
10
- Gemspec/DateAssignment:
10
+ Gemspec/DependencyVersion:
11
11
  Enabled: true
12
12
  Gemspec/RequireMFA:
13
13
  Enabled: true
14
+ Gemspec/DeprecatedAttributeAssignment:
15
+ Enabled: true
14
16
  Layout/BeginEndAlignment:
15
17
  Enabled: true
16
18
  EnforcedStyleAlignWith: begin
@@ -56,6 +58,10 @@ Layout/FirstMethodArgumentLineBreak:
56
58
  Enabled: true
57
59
  Layout/FirstMethodParameterLineBreak:
58
60
  Enabled: true
61
+ Layout/LineContinuationLeadingSpace:
62
+ Enabled: true
63
+ Layout/LineContinuationSpacing:
64
+ Enabled: true
59
65
  Layout/LineEndStringConcatenationIndentation:
60
66
  Enabled: true
61
67
  IndentationWidth: 0
@@ -87,6 +93,8 @@ Lint/AmbiguousOperatorPrecedence:
87
93
  Enabled: true
88
94
  Lint/AmbiguousRange:
89
95
  Enabled: true
96
+ Lint/ConstantOverwrittenInRescue:
97
+ Enabled: true
90
98
  Lint/DeprecatedConstants:
91
99
  Enabled: true
92
100
  Lint/DuplicateBranch:
@@ -113,6 +121,8 @@ Lint/IncompatibleIoSelectWithFiberScheduler:
113
121
  Enabled: true
114
122
  Lint/LambdaWithoutLiteralBlock:
115
123
  Enabled: true
124
+ Lint/NonAtomicFileOperation:
125
+ Enabled: true
116
126
  Lint/NoReturnInBeginEndBlocks:
117
127
  Enabled: true
118
128
  Lint/NumberedParameterAssignment:
@@ -141,9 +151,6 @@ Metrics/BlockLength:
141
151
  IgnoredMethods:
142
152
  - ips
143
153
  - refine
144
- Exclude:
145
- - "**/*.gemspec"
146
- - "spec/**/*"
147
154
  Metrics/ParameterLists:
148
155
  Max: 3
149
156
  Naming/BlockForwarding:
@@ -202,6 +209,8 @@ Style/EmptyMethod:
202
209
  EnforcedStyle: expanded
203
210
  Style/EndlessMethod:
204
211
  Enabled: true
212
+ Style/EnvHome:
213
+ Enabled: true
205
214
  Style/ExplicitBlockArgument:
206
215
  Enabled: false
207
216
  Style/FetchEnvVar:
@@ -229,6 +238,8 @@ Style/InPatternThen:
229
238
  Enabled: true
230
239
  Style/IpAddresses:
231
240
  Enabled: true
241
+ Style/MapCompactWithConditionalBlock:
242
+ Enabled: true
232
243
  Style/MapToHash:
233
244
  Enabled: true
234
245
  Style/MethodCalledOnDoEndBlock:
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.7.0
4
+ version: 0.10.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-04-21 00:00:00.000000000 Z
31
+ date: 2022-06-27 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.28'
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.28'
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.13'
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.13'
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.10'
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.10'
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.11
133
+ rubygems_version: 3.3.16
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