hot-glue 0.6.15 → 0.6.17

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.
data/lib/hot-glue.rb CHANGED
@@ -10,6 +10,18 @@ module HotGlue
10
10
  class Error < StandardError
11
11
  end
12
12
 
13
+
14
+ def self.to_camel_case(str)
15
+ words = str.split(/[^a-zA-Z0-9]/) # split by non-alphanumeric characters
16
+ return '' if words.empty?
17
+
18
+ first_word = words.first.downcase
19
+ rest_words = words[1..-1].map { |w| w.capitalize }
20
+
21
+ first_word + rest_words.join
22
+ end
23
+
24
+
13
25
  def self.construct_downnest_object(input)
14
26
  res = input.split(",").map { |child|
15
27
  child_name = child.gsub("+","")
@@ -1,5 +1,5 @@
1
1
  module HotGlue
2
2
  class Version
3
- CURRENT = '0.6.15'
3
+ CURRENT = '0.6.17'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hot-glue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.15
4
+ version: 0.6.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Fleetwood-Boldt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-17 00:00:00.000000000 Z
11
+ date: 2025-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails