hashlation 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/README.md +31 -7
- data/lib/hashlation/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68d3645838c4821d08458fc685b7ea0e0e4a6c849ca43d8c3008915e5dd40a91
|
|
4
|
+
data.tar.gz: eb99e52cf5a8c7831b1f3136aac4457d97214db84af6575f544667146fb28585
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7af40ef344bbda534fc05cdc7b6a55a064d3124a1e0c9da4c73dd7a61f95366370ce73955ec9cb83e30dd899c391b7178236ef61e637f6075fd8b23147aa0726
|
|
7
|
+
data.tar.gz: 3eb70282efe7e2ade0017ebd919729b918bc5004cc8843871fbc8c73e1801c4aa19d19f86e80bef2fbae9a264bc8982eb751b585a2b3bc0a7a107e99eccb9ca3
|
data/README.md
CHANGED
|
@@ -16,17 +16,41 @@ Or install it yourself as:
|
|
|
16
16
|
|
|
17
17
|
$ gem install hashlation
|
|
18
18
|
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
Hashlation::Simple -> Hashlation::Simple.new(hash)
|
|
22
|
-
|
|
23
|
-
Handles simple string/symbol keys in conversion as well as singleton_methods. Much faster, but cannot hanlde edge cases in response.
|
|
24
19
|
|
|
25
20
|
Hashlation::Complex -> Hashlation::Complex.new(hash)
|
|
26
21
|
|
|
27
|
-
Handles MOST key types in conversion. If you know that your keys will contain leading Integer characters, or ':'.
|
|
28
22
|
|
|
29
|
-
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
##Methods
|
|
27
|
+
|
|
28
|
+
The returned `obj` includes the method `.keys` to list the keys on the object at every level.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
### Simple
|
|
33
|
+
|
|
34
|
+
Handles simple string/symbol keys in conversion as well as singleton_methods. Very fast, but cannot handle edge cases in keys.
|
|
35
|
+
|
|
36
|
+
Usage:
|
|
37
|
+
|
|
38
|
+
`obj = Hashlation::Simple.new(hash)`
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
### Complex
|
|
44
|
+
|
|
45
|
+
Handles MOST key types in conversion. If you know that your keys will contain leading Integer characters, or ':' use this method.
|
|
46
|
+
|
|
47
|
+
Usage:
|
|
48
|
+
|
|
49
|
+
`obj = Hashlation::Complex.new(hash)`
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
**If `Complex` fails due to inability to read key, please report in Issues. Thanks! **
|
|
30
54
|
|
|
31
55
|
## Development
|
|
32
56
|
|
data/lib/hashlation/version.rb
CHANGED