hashlation 0.1.3 → 0.1.4
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/hashlation.gemspec +1 -1
- data/lib/hashlation/complex.rb +0 -1
- data/lib/hashlation/simple.rb +0 -1
- data/lib/hashlation/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4749821b8641ec38d5873ef319710ea86068b57dde8691fd2c9ea4d588f5a1f
|
|
4
|
+
data.tar.gz: 1f1ba4280c4b9970fc9e6222712d630309d63c8ed1645746cf4a2abff1b56119
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: faabb932c886ab678c0387150cbfecac339de828cbbbdc1532460baf7883a86ed9273b52930e7aa84a1b8c83d0449280e25914bb010aba1e054445b383ab7492
|
|
7
|
+
data.tar.gz: ced1723b25e56f8426f0cdf1927c12f24b5eae62d4a399821276a572d81495f96509340677a858b57b7b152bd9106b12b1fe02431f69646d25f343eb4c1e7834
|
data/hashlation.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.email = ["56176404+rharris389@users.noreply.github.com"]
|
|
10
10
|
|
|
11
11
|
spec.summary = "Lightweight response parsing"
|
|
12
|
-
spec.description = "Lightweight
|
|
12
|
+
spec.description = "Lightweight parser for cleaner navigation of large or deeply nested hashes."
|
|
13
13
|
spec.homepage = "https://github.com/rharris389/hashlation"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.4.0")
|
data/lib/hashlation/complex.rb
CHANGED
|
@@ -60,7 +60,6 @@ module Hashlation
|
|
|
60
60
|
|
|
61
61
|
def sanatize_key(key)
|
|
62
62
|
# If this is to be responses may contain improper keys, uncomment and implement for all attr names
|
|
63
|
-
# the PrimeTrust API responses only need to be underscored as they do not contain leading integers or dis-allowed characters
|
|
64
63
|
key[0,1] =~ /^[0-9].*/ ? "_#{key.tr(':', '_').underscore}" : key.tr(':', '_').underscore
|
|
65
64
|
end
|
|
66
65
|
|
data/lib/hashlation/simple.rb
CHANGED
|
@@ -58,7 +58,6 @@ module Hashlation
|
|
|
58
58
|
|
|
59
59
|
def sanatize_key(key)
|
|
60
60
|
# If this is to be responses may contain improper keys, uncomment and implement for all attr names
|
|
61
|
-
# the PrimeTrust API responses only need to be underscored as they do not contain leading integers or dis-allowed characters
|
|
62
61
|
key.underscore
|
|
63
62
|
end
|
|
64
63
|
|
data/lib/hashlation/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rharris389
|
|
@@ -10,7 +10,7 @@ bindir: exe
|
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2022-05-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description: Lightweight
|
|
13
|
+
description: Lightweight parser for cleaner navigation of large or deeply nested hashes.
|
|
14
14
|
email:
|
|
15
15
|
- 56176404+rharris389@users.noreply.github.com
|
|
16
16
|
executables: []
|