tiny_dot 3.1.2 → 3.1.4

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 +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b701cc65a335b06576aeb497e5c1b523788780c1d04b44544c17f1ceabc4621a
4
- data.tar.gz: 0eb9803da98c878e7a51148d3613ffe8636b1486e8f17601558c185e5d8906c9
3
+ metadata.gz: a20e700ab097dedd71d4193b94e15a686c45c49042a79b1f0a1fc64f1582b0d4
4
+ data.tar.gz: a4d33f6838c8b93e72b2d3b062e280fad4c5c67e0597b1f83390b4f761d055f1
5
5
  SHA512:
6
- metadata.gz: 7e55b5acfdbd7c41399e2b7b62a4d79f7fbe4710b824d47cc3009608ae290683adf34d367205d64b58483097a53db0bcc42e833c6c28989b91fef959cfba2fb5
7
- data.tar.gz: bc50505590c337e581c71c23732cb54a3f4d6828dccbdc80c8f6669783b0c5997cafbbbe7f25759102999bd1009cab07afff2b4ee4bc2ca0cb4a65b8039a59c7
6
+ metadata.gz: 88b723323b1316f46077692b1e5838210713fd93b99f025d473ab2527c8d24dc97715173758c439c48751f049331a0b82f6e1510c2cc96b20fad81a288fc21a0
7
+ data.tar.gz: 42ee08b11cd9a29bf8ba5f41ea597bc1c36a19f887d943337ee2e4dda835feb8c31457c8232ceaf37d5b1222c145c1e72dd1e393b404a23b17e4a337d40b0e1e
data/lib/tiny_dot.rb CHANGED
@@ -62,8 +62,8 @@ module TinyDot
62
62
  data.map { |row| _hash_to_struct(row.to_hash) }
63
63
  end
64
64
 
65
- def self.from_hash(hash)
66
- _hash_to_struct(json)
65
+ def from_hash(hash)
66
+ _hash_to_struct(hash)
67
67
  end
68
68
 
69
69
  def _hash_to_struct(hash)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_dot
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt
@@ -24,7 +24,8 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: a tiny read/write dot notation wrapper for Hash, JSON, YAML, and ENV
27
+ description: a tiny read/write dot notation wrapper for Hash, JSON, YAML, CSV, and
28
+ ENV
28
29
  email: jefflunt@gmail.com
29
30
  executables: []
30
31
  extensions: []
@@ -53,6 +54,6 @@ requirements: []
53
54
  rubygems_version: 3.3.7
54
55
  signing_key:
55
56
  specification_version: 4
56
- summary: want to have easy dot notation access to data that comes from Hashes, JSON,
57
- and YAML - and absolutely nothing else? then this is the library for you.
57
+ summary: this library will take in one of the supported formats and will recursively
58
+ build a nested set of Structs out of it
58
59
  test_files: []