foobara-util 0.0.5 → 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: b775763a1a256122c051f67beee0139ce2e2a52a773f3565f6b262240fc98be5
4
- data.tar.gz: 050b2f251de8f7be7be457ec1b8aa20412704c065681dce9fe5a49ddce2a94f3
3
+ metadata.gz: 85a512d24b80d3764d64162a9a0307980b4c5b4208fd446ca5eb61e45c12e9d7
4
+ data.tar.gz: 1830f90dc6c33596d1a66c4971f148ebbb16846e2d1bb07340598ecc2ff38908
5
5
  SHA512:
6
- metadata.gz: 14e91d4625361415cb5cffa242454b27cbd660d2b86d585b19ae3546a7bcaa76aa9e1d6cef875edfc35124c042266c3a4bbd20c852e8737c2967646beb1f2712
7
- data.tar.gz: 78bc9651bc57478faa41b1280a56c9c4ec4ed24437a7063e49c6e2c4b6a10ad2a3b1194f92cda06fa7f83ddaed50ff7b8c93e3f28bacac3c6ed8d7446417c424
6
+ metadata.gz: aa086713f6a0d871cd43d1884d66b1c009073853cdcaabbbee1b6b2c5099b08c34652dde426030d868267307313df912b549965d40a1d3d07c1724534e716304
7
+ data.tar.gz: 8a1e198c1b944adc46a54d67981bd724b19e206fec5395eca350a0dffa4a6ab996eb2ad339cb379ec76848d00d41f36c148fcefe6b7ae3ecfe48a5dc53e2365a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## [0.0.5] - 2024-09-26
1
+ ## [0.0.7] - 2024-11-30
2
+
3
+ * Handle kebab-cased strings as expected in .classify
4
+
5
+ ## [0.0.6] - 2024-09-26
2
6
 
3
7
  * Add find_constant_through_class_hierarchy
4
8
 
@@ -34,9 +34,7 @@ module Foobara
34
34
  if klass.const_defined?(constant)
35
35
  klass.const_get(constant)
36
36
  else
37
- unless klass == Object
38
- find_constant_through_class_hierarchy(constant, klass.superclass)
39
- end
37
+ find_constant_through_class_hierarchy(klass.superclass, constant)
40
38
  end
41
39
  end
42
40
  end
@@ -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.5
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.5".freeze
4
- end
5
- end