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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -7
  3. data/lib/hashlation/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3ec5607c29923a8ef6ccb8e880c75780adb8dc4ed40f32b938601b17d2acd88
4
- data.tar.gz: 7925a5d3ce2fbefcfa44005730968105b47af93cec4dc76d6dcb8f9c7b22aba5
3
+ metadata.gz: 68d3645838c4821d08458fc685b7ea0e0e4a6c849ca43d8c3008915e5dd40a91
4
+ data.tar.gz: eb99e52cf5a8c7831b1f3136aac4457d97214db84af6575f544667146fb28585
5
5
  SHA512:
6
- metadata.gz: b7fa942c882b82fbb703a6abf5120e7261f1e50024630748b767e78fe7fbb4d77a38d649f5520d116ddc52a413fd01696b129b3fbd1c608c6154e532b34fb9cd
7
- data.tar.gz: 399d3a0325b7c6b1395f6976d20df5bde8662ddc35f885e305e8eb7b25c27b1feaa9514951b0a0508982d0feec6c6210b9865c90207c2df7bfcd5029c13031cc
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
- **If ::Complex fails due to inability to read key, please report an Issue.**
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hashlation
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hashlation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - rharris389