serialized-hashie 0.0.0.dev → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/package.yml +3 -3
- data/lib/serialized_hashie.rb +4 -0
- data/lib/serialized_hashie/hash.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adf5116d3184f67d700de3786bb6d3265229e0fe8232fd28020cfd8eb359c574
|
4
|
+
data.tar.gz: 9b1f1dd779738b72377c0771868c21b7e6120d553d51d14c8237a3dc84c33706
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f6115c1441227095a2e5f4dd7eebd1984be759f821438f9cda7dec4c275df7e875019387691abca751947409185b240f9f6945cedf741a69be9fd3f540d53e7
|
7
|
+
data.tar.gz: 393287f6c178c9401a93a9dd4d6f095d9867470398206455a22d99ec86888120989c95c129116d5e4b73dd985a763fe894ad0c6841f5cd38a4cdbab2b3bc5187
|
@@ -17,12 +17,12 @@ jobs:
|
|
17
17
|
with:
|
18
18
|
ruby-version: 2.6.x
|
19
19
|
|
20
|
-
- name: Build Gem
|
21
|
-
run: gem build *.gemspec
|
22
|
-
|
23
20
|
- name: Export version from tag name
|
24
21
|
run: echo "${GITHUB_REF/refs\/tags\//}" > VERSION
|
25
22
|
|
23
|
+
- name: Build Gem
|
24
|
+
run: gem build *.gemspec
|
25
|
+
|
26
26
|
- name: Setup credentials
|
27
27
|
run: |
|
28
28
|
mkdir -p $HOME/.gem
|
data/lib/serialized_hashie.rb
CHANGED
@@ -63,7 +63,11 @@ module SerializedHashie
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def load_value(value)
|
66
|
-
|
66
|
+
if value.is_a?(::Hash)
|
67
|
+
hash = SerializedHashie.load_hash_extensions.run(value)
|
68
|
+
return load_hash(hash)
|
69
|
+
end
|
70
|
+
|
67
71
|
return value.map { |v| load_value(v) } if value.is_a?(Array)
|
68
72
|
|
69
73
|
SerializedHashie.load_extensions.run(value)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serialized-hashie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
@@ -102,9 +102,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: 2.3.0
|
103
103
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
104
|
requirements:
|
105
|
-
- - "
|
105
|
+
- - ">="
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
107
|
+
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubygems_version: 3.0.3
|
110
110
|
signing_key:
|