lutaml 0.5.0 → 0.5.1
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/lib/lutaml/lutaml_path/document_wrapper.rb +2 -2
- data/lib/lutaml/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: e0d36cefb8c5f6affcb0d56b44ab5d1f807608d8676c372ebea115a1dbda9bd8
|
4
|
+
data.tar.gz: b1f11f6cb22a115973ada3e6bc9a86de14a22288f32c6caaef92187673e9deb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d61ed2509c43cb9e31f3b643eae02a317c0b1ccdbbf0692b81d19afbe0196141157bd5e2951b4380fd94ad2a0a0a2a644a05d98e98eeec9b9809ec1f14e19ae
|
7
|
+
data.tar.gz: 7fec19ce2c1b94d81b12e0fa687d960af66d0c305d5f43afb5bbd56c6da49b3c4f77fbe5959262c33eec878082206c17e85a8266436cb73429934ca4880e0ecc
|
@@ -27,7 +27,7 @@ module Lutaml
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def serialize_to_hash(object)
|
30
|
-
return object if [String, Integer, Float, FalseClass, TrueClass, Symbol, NilClass].include?(object.class)
|
30
|
+
return object if [String, Integer, Float, FalseClass, TrueClass, Symbol, NilClass, Hash].include?(object.class)
|
31
31
|
|
32
32
|
object.instance_variables.each_with_object({}) do |var, res|
|
33
33
|
variable = object.instance_variable_get(var)
|
@@ -36,7 +36,7 @@ module Lutaml
|
|
36
36
|
serialize_to_hash(n)
|
37
37
|
end
|
38
38
|
else
|
39
|
-
if [String, Integer, Float, FalseClass, TrueClass, Symbol, NilClass].include?(variable.class) || var == :@parent
|
39
|
+
if [String, Integer, Float, FalseClass, TrueClass, Symbol, NilClass, Hash].include?(variable.class) || var == :@parent
|
40
40
|
variable
|
41
41
|
else
|
42
42
|
serialize_to_hash(variable)
|
data/lib/lutaml/version.rb
CHANGED