hashlation 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68d3645838c4821d08458fc685b7ea0e0e4a6c849ca43d8c3008915e5dd40a91
4
- data.tar.gz: eb99e52cf5a8c7831b1f3136aac4457d97214db84af6575f544667146fb28585
3
+ metadata.gz: 6f73fbcd96c1c7beeedd568b29102b4931a8d2425aaa9dada4fede99d1c0aa88
4
+ data.tar.gz: 8a7624e52ea1880b35e5df71d10d704fa8d25dd83205cac334faec748f4b4716
5
5
  SHA512:
6
- metadata.gz: 7af40ef344bbda534fc05cdc7b6a55a064d3124a1e0c9da4c73dd7a61f95366370ce73955ec9cb83e30dd899c391b7178236ef61e637f6075fd8b23147aa0726
7
- data.tar.gz: 3eb70282efe7e2ade0017ebd919729b918bc5004cc8843871fbc8c73e1801c4aa19d19f86e80bef2fbae9a264bc8982eb751b585a2b3bc0a7a107e99eccb9ca3
6
+ metadata.gz: 467cbaa9f2c43460c61266487f8f3aece0ef1af931a01f2bfe279608cbef2c38e3f6dfeabebfb93c4c9602509727135457e4eacfd5c097c7804f667ddf9ede8c
7
+ data.tar.gz: f95861a090051ccf724bc7cc10f7b43b45a15427847a7070487723c5cdac453545a0e83ac6a21a77f2d86111f77220a908dd63961da75c29364a26f4f398d29f
data/README.md CHANGED
@@ -17,13 +17,9 @@ Or install it yourself as:
17
17
  $ gem install hashlation
18
18
 
19
19
 
20
- Hashlation::Complex -> Hashlation::Complex.new(hash)
21
-
22
-
23
20
 
24
21
 
25
-
26
- ##Methods
22
+ ## Methods
27
23
 
28
24
  The returned `obj` includes the method `.keys` to list the keys on the object at every level.
29
25
 
@@ -50,7 +46,21 @@ Usage:
50
46
 
51
47
  ---
52
48
 
53
- **If `Complex` fails due to inability to read key, please report in Issues. Thanks! **
49
+ ** If `Complex` fails due to inability to read a key, please report in GitHub Issues. Thanks! **
50
+
51
+ ---
52
+
53
+ ## Translated Keys Format:
54
+
55
+ Keys that cannot be set as-is by attr_accessor will be transformed.
56
+
57
+ ### Simple:
58
+
59
+ - `'Test-Name' -> obj.test_name`
60
+
61
+ ### Complex:
62
+
63
+ - `'11123:12312' -> obj._11123_12312`
54
64
 
55
65
  ## Development
56
66
 
@@ -65,3 +75,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/rharri
65
75
  ## License
66
76
 
67
77
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
78
+
79
+ ---
80
+
81
+ *Naming credit belongs to my wife, who bales out my inability to name stuff..*
data/hashlation.gemspec CHANGED
@@ -8,11 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["rharris389"]
9
9
  spec.email = ["56176404+rharris389@users.noreply.github.com"]
10
10
 
11
- spec.summary = "Simple/Lightweight hash parsing gem."
12
- spec.description = "Quickly parses hashes into objects for cleaner navigation of large response objects.
13
- Hashlation::Simple.new(hash_object) will handle most common string and symbol keys.
14
- Certain characters in a key, such as a leading Integer or a ':' will not translate with Simple.
15
- These must be processed with the Hashlation::Complex.new(hash_object) method. Name credit to my wife."
11
+ spec.summary = "Lightweight response parsing"
12
+ spec.description = "Lightweight hash parser for cleaner navigation of large response objects."
16
13
  spec.homepage = "https://github.com/rharris389/hashlation"
17
14
  spec.license = "MIT"
18
15
  spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hashlation
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rharris389
@@ -10,11 +10,7 @@ bindir: exe
10
10
  cert_chain: []
11
11
  date: 2022-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: |-
14
- Quickly parses hashes into objects for cleaner navigation of large response objects.
15
- Hashlation::Simple.new(hash_object) will handle most common string and symbol keys.
16
- Certain characters in a key, such as a leading Integer or a ':' will not translate with Simple.
17
- These must be processed with the Hashlation::Complex.new(hash_object) method. Name credit to my wife.
13
+ description: Lightweight hash parser for cleaner navigation of large response objects.
18
14
  email:
19
15
  - 56176404+rharris389@users.noreply.github.com
20
16
  executables: []
@@ -73,5 +69,5 @@ requirements: []
73
69
  rubygems_version: 3.1.2
74
70
  signing_key:
75
71
  specification_version: 4
76
- summary: Simple/Lightweight hash parsing gem.
72
+ summary: Lightweight response parsing
77
73
  test_files: []