foobara-util 0.0.6 → 0.0.7

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: 4590da92837dec116a87f379edc8929c2de023e4ce5521f0eb495f8ffdb54b38
4
- data.tar.gz: 90238da06830e8625f57bcdd2236f09f9599f285c309e141a39f8046064507c3
3
+ metadata.gz: 85a512d24b80d3764d64162a9a0307980b4c5b4208fd446ca5eb61e45c12e9d7
4
+ data.tar.gz: 1830f90dc6c33596d1a66c4971f148ebbb16846e2d1bb07340598ecc2ff38908
5
5
  SHA512:
6
- metadata.gz: 1de15fd9472a45496486e95887bbdbef75cad6f7d0331344f8582ddcdbcf4818c598bb48c806356e0859b8fdec9f653e2529ab90ecb3efe56898d26efbd785e4
7
- data.tar.gz: 5b666e62ed4ad891c0410c0b86425da63bbd60b035ac33a675db0f14d8bc83c4e1d1fed0f8c5d0d2079b7687f78a96dbd5e185b3833ebc7e59a2b2e85a4d6cd2
6
+ metadata.gz: aa086713f6a0d871cd43d1884d66b1c009073853cdcaabbbee1b6b2c5099b08c34652dde426030d868267307313df912b549965d40a1d3d07c1724534e716304
7
+ data.tar.gz: 8a1e198c1b944adc46a54d67981bd724b19e206fec5395eca350a0dffa4a6ab996eb2ad339cb379ec76848d00d41f36c148fcefe6b7ae3ecfe48a5dc53e2365a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.0.7] - 2024-11-30
2
+
3
+ * Handle kebab-cased strings as expected in .classify
4
+
1
5
  ## [0.0.6] - 2024-09-26
2
6
 
3
7
  * Add find_constant_through_class_hierarchy
@@ -16,7 +16,7 @@ module Foobara
16
16
  retval = ""
17
17
 
18
18
  string.each_char do |char|
19
- if char == "_"
19
+ if ["_", "-"].include?(char)
20
20
  upcase_first = true
21
21
  elsif upcase_first
22
22
  retval << char.upcase
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-26 00:00:00.000000000 Z
11
+ date: 2024-12-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -33,7 +33,6 @@ files:
33
33
  - lib/foobara/util/require.rb
34
34
  - lib/foobara/util/string.rb
35
35
  - lib/foobara/util/structured.rb
36
- - lib/foobara/util/version.rb
37
36
  homepage: https://github.com/foobara/util
38
37
  licenses:
39
38
  - Apache-2.0
@@ -58,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
57
  - !ruby/object:Gem::Version
59
58
  version: '0'
60
59
  requirements: []
61
- rubygems_version: 3.5.18
60
+ rubygems_version: 3.5.23
62
61
  signing_key:
63
62
  specification_version: 4
64
63
  summary: Utility functions used across various Foobara projects
@@ -1,5 +0,0 @@
1
- module Foobara
2
- module Util
3
- VERSION = "0.0.6".freeze
4
- end
5
- end