caliber 0.15.0 → 0.16.0

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: 61294f7009b12729c84a564c13657babd7899eb1179a36030ce46ac567399418
4
- data.tar.gz: dc21ba60b1df559ebc3811ef911321806697ec6d415d554abaf2e8ee13067853
3
+ metadata.gz: 7fe3dd574a9ee20273eb1270449f4a3883919f1998469d2f693237c3fb0e565f
4
+ data.tar.gz: 9649602a97c9234ea0e45c283781aaa2eb7b0834e68825cc2a64bbe4bf4ec529
5
5
  SHA512:
6
- metadata.gz: 0d485405ba7542cce47e344ffa8ba01b09d7b6c26601063638e617d02d4d374cce3e2b65b8e52d1a5ed96fcfd38a6a0ddb72aeb25e9a0654b6ba7630425492b3
7
- data.tar.gz: 99fc3c5884d88f2470c42bee19a3a63878233204cbc16d84d7b4efaf89969b6cc07e01b396b497390d8044af330d01adaab16c7eefa7a85fd14d171802c1d1f7
6
+ metadata.gz: bcd5773b6d261b8e6876218ea142bb9a22c82858c748454096a3e830026dbd5e76ceffc222456731e8320c6fa9f369ac77154eefa7c256abc94731cac71befc5
7
+ data.tar.gz: 9465796b9bb11b5c0660948923e165084e65cf95fae474fc6a57811550a123e6dd379f8bc07274f9b44b0cd4f1b267d1ed2e15bbea3f85d579393c64a9650e8b
checksums.yaml.gz.sig CHANGED
@@ -1 +1,2 @@
1
- ��kDč����kb %������Bf,�,b��m��`�^ �X-�^��N7��Z5Dž ��d��I�_|�1K���Z�gØQ���b��ܰW��'� H9�:�t �*���+�i*�e����)G�il�zU�F �Pl�Ȕ?���j(�=�����9�̡�}�o�s�V�n�,�<��!ՌY��]vº��{���\V���sgb�,� |E�����ٕ�EPw�K4�Lj�7^�lrS����~�rg�\�
1
+ (N"��҆i0��5��߾��� ]���|���
2
+ ��_��$����ϖDH8Ar�­�%��X�)O?؛�6�$�-��!�=����;��^�s1r�+"����O�t�����}i�/\���r����P���|[η+i��1����pm�Թh<A�W<v�lIÃa�#I@X����Aic�+H�#�TE1hᗫfk�(�0�U��5�j!A�X�UOO��ۭʘ�O$� ��b}�:���/���ښ#Ք��?�
data/README.adoc CHANGED
@@ -2,23 +2,29 @@
2
2
  :toclevels: 5
3
3
  :figure-caption!:
4
4
 
5
+ :rubocop_link: link:https://docs.rubocop.org/rubocop[RuboCop]
6
+ :rubocop_performance_link: link:https://docs.rubocop.org/rubocop-performance[RuboCop Performance]
7
+ :rubocop_thread_saftey_link: link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
8
+ :rubocop_rake_link: link:https://docs.rubocop.org/rubocop-rspec[RuboCop Rake]
9
+ :rubocop_rspec_link: link:https://docs.rubocop.org/rubocop-rspec[RuboCop RSpec]
10
+
5
11
  = Caliber
6
12
 
7
13
  This gem provides global link:https://docs.rubocop.org/rubocop[RuboCop] configurations for ensuring
8
14
  high quality _and_ consistent software development practices.
9
15
 
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. 🎉_
16
+ _Due to the ever changing nature of the RuboCop 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
17
 
12
18
  toc::[]
13
19
 
14
20
  == Features
15
21
 
16
22
  * Provides a global configuration for the following code quality gems:
17
- ** link:https://docs.rubocop.org/rubocop[RuboCop]
18
- ** link:https://github.com/rubocop/rubocop-performance[RuboCop Performance]
19
- ** link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
20
- ** link:https://github.com/rubocop/rubocop-rake[RuboCop Rake]
21
- ** link:https://github.com/rubocop/rubocop-rspec[RuboCop RSpec]
23
+ ** {rubocop_link}
24
+ ** {rubocop_performance_link}
25
+ ** {rubocop_thread_saftey_link}
26
+ ** {rubocop_rake_link}
27
+ ** {rubocop_rspec_link}
22
28
 
23
29
  == Requirements
24
30
 
@@ -59,8 +65,7 @@ That's it!
59
65
 
60
66
  === Customization
61
67
 
62
- Should you not want everything that this gem offers, you can customize
63
- the gem further by specifiying what you need:
68
+ You can customize the gem by specifiying what you need:
64
69
 
65
70
  [source,yaml]
66
71
  ----
@@ -73,14 +78,11 @@ inherit_gem:
73
78
  - config/rspec.yml
74
79
  ----
75
80
 
76
- The above is what `config/all.yml` expands to but now you can mix and match how you like for your
77
- needs.
81
+ The above is what `config/all.yml` expands to but now you can mix and match how you like for your specific needs.
78
82
 
79
- === Auto-Requires
83
+ === Requirements
80
84
 
81
- When Caliber is added to your `Gemfile`, you don't have to require RuboCop because Caliber does that
82
- for you by default. All RuboCop dependencies are also auto-required because they are defined in each
83
- configuration. Here's a full breakdown of how this works:
85
+ When Caliber is added to your `Gemfile`, you don't have to require RuboCop because Caliber does that for you by default. All RuboCop dependencies are also automatically required because they are defined in each configuration. Here's a full breakdown of how this works:
84
86
 
85
87
  [source,yaml]
86
88
  ----
@@ -89,12 +91,12 @@ inherit_gem:
89
91
  - config/all.yml
90
92
  ----
91
93
 
92
- The above will auto-require and load the configurations for following gems:
94
+ The above will require and load the configurations for following gems:
93
95
 
94
- * RuboCop Performance
95
- * RuboCop Thread Safety
96
- * RuboCop Rake
97
- * RuboCop RSpec
96
+ * {rubocop_performance_link}
97
+ * {rubocop_thread_saftey_link}
98
+ * {rubocop_rake_link}
99
+ * {rubocop_rspec_link}
98
100
 
99
101
  When you don't use the default `all.yml` configuration, then behavior changes as follows:
100
102
 
@@ -144,11 +146,9 @@ inherit_gem:
144
146
 
145
147
  The above will only require the RuboCop RSpec gem _and_ load the associated configuration.
146
148
 
147
- === Import Only
149
+ === Inheritance
148
150
 
149
- Should you not want to include this gem in your project for some reason, you can directly import the
150
- configuration files supported by this project instead. To do this, you'd need to add the following
151
- to the top of your `.rubocop.yml`:
151
+ Should you not want to include this gem in your project for some reason, you can directly inherit the configuration files supported by this project instead. To do this, you'll need to add the following to the top of your `.rubocop.yml`:
152
152
 
153
153
  [source,yaml]
154
154
  ----
@@ -156,13 +156,9 @@ inherit_from:
156
156
  - https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/all.yml
157
157
  ----
158
158
 
159
- You'll also want to add `.rubocop-https*` to your project's `.gitignore` since imported RuboCop YAML
160
- configurations will be cached locally and you'll not want them checked into your source code
161
- repository.
159
+ You'll also want to add `.rubocop-https*` to your project's `.gitignore` since imported RuboCop YAML configurations will be cached locally and you'll not want them checked into your source code repository.
162
160
 
163
- If importing all configurations from `all.yml` is too much -- and much like you can do with
164
- requiring this gem directly -- you can mix and match what you want to import by defining which
165
- configurations you want to use. For example, the following is what `all.yml` expands too:
161
+ If importing all configurations from `all.yml` is too much -- and much like you can do with requiring this gem directly -- you can mix and match what you want to import by defining which configurations you want to use. For example, the following is what `all.yml` expands too:
166
162
 
167
163
  [source,yaml]
168
164
  ----
@@ -174,17 +170,19 @@ inherit_from:
174
170
  - https://raw.githubusercontent.com/bkuhlmann/caliber/main/config/rspec.yml
175
171
  ----
176
172
 
177
- You can also target a specific version of this gem by swapping out the `main` path in the YAML URLs
178
- listed above with a specific version like `0.0.0`.
173
+ You can also target a specific version of this gem by swapping out the `main` path in the YAML URLs listed above with a specific version like `0.0.0`.
174
+
175
+ Lastly, when using this YAML import approach, you'll not benefit from having all gems you need required and installed for you. So you'll need to manually require these gems in your `Gemfile`:
179
176
 
180
- Lastly, when using this YAML import approach, you'll not benefit from having all gems you need
181
- required and installed for you. So you'll need to manually require these gems in your `Gemfile`:
177
+ * {rubocop_link}
178
+ * {rubocop_performance_link}
179
+ * {rubocop_thread_saftey_link}
180
+ * {rubocop_rake_link}
181
+ * {rubocop_rspec_link}
182
182
 
183
- * link:https://docs.rubocop.org/rubocop[RuboCop]
184
- * link:https://docs.rubocop.org/rubocop-performance[RuboCop Performance]
185
- * link:https://github.com/rubocop/rubocop-thread_safety[RuboCop Thread Safety]
186
- * link:https://docs.rubocop.org/rubocop-rspec[RuboCop Rake]
187
- * link:https://docs.rubocop.org/rubocop-rspec[RuboCop RSpec]
183
+ === Troubleshooting
184
+
185
+ 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.
188
186
 
189
187
  == Development
190
188
 
@@ -192,7 +190,7 @@ To contribute, run:
192
190
 
193
191
  [source,bash]
194
192
  ----
195
- git clone https://github.com/bkuhlmann/caliber.git
193
+ git clone https://github.com/bkuhlmann/caliber
196
194
  cd caliber
197
195
  bin/setup
198
196
  ----
@@ -246,10 +244,6 @@ To test, run:
246
244
  bundle exec rake
247
245
  ----
248
246
 
249
- == Troubleshooting
250
-
251
- 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.
252
-
253
247
  == link:https://www.alchemists.io/policies/license[License]
254
248
 
255
249
  == 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.15.0"
5
+ spec.version = "0.16.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,7 +23,7 @@ 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.36"
26
+ spec.add_dependency "rubocop", "~> 1.37"
27
27
  spec.add_dependency "rubocop-performance", "~> 1.15"
28
28
  spec.add_dependency "rubocop-rake", "~> 0.6"
29
29
  spec.add_dependency "rubocop-rspec", "~> 2.13"
data/config/ruby.yml CHANGED
@@ -103,6 +103,8 @@ Lint/DeprecatedConstants:
103
103
  Enabled: true
104
104
  Lint/DuplicateBranch:
105
105
  Enabled: true
106
+ Lint/DuplicateMagicComment:
107
+ Enabled: true
106
108
  Lint/DuplicateRegexpCharacterClassElement:
107
109
  Enabled: true
108
110
  Lint/ElseLayout:
@@ -157,6 +159,8 @@ Metrics/BlockLength:
157
159
  AllowedMethods:
158
160
  - ips
159
161
  - refine
162
+ - Dry::Schema.JSON
163
+ - Dry::Schema.Params
160
164
  Metrics/ParameterLists:
161
165
  Max: 3
162
166
  Naming/BlockForwarding:
@@ -287,6 +291,8 @@ Style/OptionHash:
287
291
  Enabled: true
288
292
  Style/OpenStructUse:
289
293
  Enabled: true
294
+ Style/OperatorMethodCall:
295
+ Enabled: true
290
296
  Style/PercentLiteralDelimiters:
291
297
  PreferredDelimiters:
292
298
  "%w": "[]"
@@ -300,6 +306,8 @@ Style/RedundantArgument:
300
306
  Enabled: true
301
307
  Style/RedundantSelfAssignmentBranch:
302
308
  Enabled: true
309
+ Style/RedundantStringEscape:
310
+ Enabled: true
303
311
  Style/RedundantInitialize:
304
312
  Enabled: true
305
313
  AllowComments: false
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.15.0
4
+ version: 0.16.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-09-12 00:00:00.000000000 Z
31
+ date: 2022-10-20 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.36'
39
+ version: '1.37'
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.36'
46
+ version: '1.37'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rubocop-performance
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.3.22
148
+ rubygems_version: 3.3.24
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: Provides a high quality style guide and configuration for your projects.
metadata.gz.sig CHANGED
Binary file