tiny_dot 3.1.3 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tiny_dot.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c28af49a7be1d118cba2f82ca215585d39f085b17d5cf9e2906ff6a6cba65100
4
- data.tar.gz: 361f6487f68d98de29742f977f4afd1b3324f1affd385bbcb4358fe6d32daf43
3
+ metadata.gz: 52bcf490e388fd9f6fabd0855f772dae032564d49a1729294dbb9b301879457b
4
+ data.tar.gz: be5c62f28522a4502683af12fc89105e7dd3020ec6c21d492c2a3209121ef042
5
5
  SHA512:
6
- metadata.gz: db1bdf2d448741536d18b0a7dc233ab00a463970b6b507d8f246ac20b1d49c779d854b1eb67e8be9687fb8e947913ffb32c7ba44e69aeab5befb7de07ddf0f73
7
- data.tar.gz: 0b312cf037b7ada87d074dbe8c00a7616dc7e196b5feb6ab45474727507172dcae3673c165cf547f642fa0f038e23bbcd6ca2be51e887d27f40ec52bb22c1fb3
6
+ metadata.gz: 8fb3130d0ec3ba4c3c63e4d7d387af086fc1f708707ab1b5b4c753db9002ad4aea01c5568f93a46f7aef7eb1bf3b5f8e11acce52fba1f8e7d20e929a0f0847fa
7
+ data.tar.gz: 657c013991811047e2245d36c0dae6def1a5b7458e1389d5d922048419cc56584ea3c2a3c10b261890d9a7e2b07b633147a6eb2de190d04a661eb97649ead888
data/lib/tiny_dot.rb CHANGED
@@ -63,7 +63,7 @@ module TinyDot
63
63
  end
64
64
 
65
65
  def from_hash(hash)
66
- _hash_to_struct(json)
66
+ _hash_to_struct(hash)
67
67
  end
68
68
 
69
69
  def _hash_to_struct(hash)
@@ -80,7 +80,7 @@ module TinyDot
80
80
 
81
81
  def _to_attr_friendly_symbols(keys)
82
82
  keys
83
- .map{|k| k.gsub(/[-\s]/, '_') }
83
+ .map{|k| k.to_s.gsub(/[-\s]/, '_') }
84
84
  .map(&:to_sym)
85
85
  end
86
86
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_dot
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.3
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-14 00:00:00.000000000 Z
11
+ date: 2023-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  - !ruby/object:Gem::Version
52
52
  version: '0'
53
53
  requirements: []
54
- rubygems_version: 3.3.7
54
+ rubygems_version: 3.4.1
55
55
  signing_key:
56
56
  specification_version: 4
57
57
  summary: this library will take in one of the supported formats and will recursively