barsoom_utils 0.2.0.54 → 0.2.0.56

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/shared_rubocop.yml +30 -0
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a097b2b63b7e62fc4f21ecbe6fca1565277672b563286f445a751a1a2f451d8f
4
- data.tar.gz: d55439c14627bfc3ba240ab2ee9f9902a040438bd57fb5e06acc8c8c3cbbdf86
3
+ metadata.gz: '05875967888446ebc37c3489cc8d640483898f8fd5dbf8b1516114760d03e0b1'
4
+ data.tar.gz: b3362fc982f69b35ee918078e223b8c05c02ac18334ab2ad881d2df27d49f010
5
5
  SHA512:
6
- metadata.gz: 3d4a4f86061090752e96ae345e010ed06fec43017fbfe20601a8e532c47b69215e2ae4f2bfc839a5df88a2d57b6b86a7f6b013f712344bbc8710bc0a7110a7d4
7
- data.tar.gz: dc722e5f23f2a93a9817323bcbcd5482947d0e3964dbadeb73b8509f7417f23ce77c0ff5afaad1832924b0804e2c26226954064f790ae8ecaab7fb3eb24ba68d
6
+ metadata.gz: dd6800d5454eb769483d2a8824747d4109cbc632372488f25c71dc1e7a28751a5da7829e8696d25109a7564237c071a0ede55a4b1c67243d6a557c9824df4c5d
7
+ data.tar.gz: 79fd9280bb18ead004cc934bb20f5d467eeb4f613628fa685660a52cabae148d2808dd9b2d9ccd2c4b89ada3657f3fb3c6e71b6453373f942911e956a7d58fad
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0.54
1
+ 0.2.0.56
data/shared_rubocop.yml CHANGED
@@ -260,12 +260,37 @@ Layout/IndentationWidth:
260
260
  Layout/IndentationConsistency:
261
261
  Enabled: true
262
262
 
263
+ # The next four sort-of belong together, to autocorrect conditional assigns into the form we're happy with, which is:
264
+ # myVar =
265
+ # if condition
266
+ # happy_path
267
+ # else
268
+ # other_path
269
+ # end
270
+ #
271
+ # It only forces 'if's to the next line, everything else is a free-for-all.
272
+
263
273
  # https://docs.rubocop.org/rubocop/cops_layout.html#layoutmultilineassignmentlayout
264
274
  Layout/MultilineAssignmentLayout:
265
275
  Enabled: true
266
276
  SupportedTypes:
267
277
  - if
268
278
 
279
+ # Indent the first line of a multiline assignment (i.e. the line directly after the =) one step
280
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutassignmentindentation
281
+ Layout/AssignmentIndentation:
282
+ Enabled: true
283
+
284
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutelsealignment
285
+ # Have `else` on the same indent level as the keyword it belongs to
286
+ Layout/ElseAlignment:
287
+ Enabled: true
288
+
289
+ # https://docs.rubocop.org/rubocop/cops_layout.html#layoutendalignment
290
+ # Have `end` on the same indent level. Doesn't touch `ends` that belong to a `begin` (There's Layout/BeginEndAlignment for that), or to a `def` (There's Layout/DefEndAlignment for that), so it just affects `end`s belonging to if/unless/while/untl etc.
291
+ Layout/EndAlignment:
292
+ Enabled: true
293
+
269
294
  # https://docs.rubocop.org/rubocop/cops_layout.html#layoutclassstructure
270
295
  # https://github.com/barsoom/devbook/tree/master/styleguide#use-a-consistent-class-layout
271
296
  # AutoCorrect: false because it has a tendency to make private delegates public, and it messes up whitespace
@@ -288,6 +313,11 @@ Layout/ClassStructure:
288
313
  - private_delegate
289
314
  - private_methods
290
315
 
316
+ # Allow "memoize \" but not "memoize\".
317
+ Layout/LineContinuationSpacing:
318
+ Enabled: true
319
+ EnforcedStyle: space
320
+
291
321
  # https://docs.rubocop.org/rubocop/cops_style.html#stylehashsyntax
292
322
  Style/HashSyntax:
293
323
  Enabled: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: barsoom_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.54
4
+ version: 0.2.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Skogberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-09 00:00:00.000000000 Z
11
+ date: 2025-08-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: