eco-helpers 1.0.2 → 1.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b8f8b8d8377570d48f13252508d8193694c79455b76d18ea467841c5e543f9f
|
4
|
+
data.tar.gz: 8208f96191dc3e658f034fe59f1d07bc25bcfe2b74a6385dcafcc0715ff8d8a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65fd6bce522a94d37c97fce7b3834b88ed0f75738a0f368ccea9f3357c27391763c3793555a0829e18ce4a29ef40d2df03854d744365c505cf1921874f2bd5c
|
7
|
+
data.tar.gz: 57b6be6d03a982a1ad23432017898573b59cccf4dda63369e83e6fb0c022ecdff4220e356724d00b8adc4a6230b815d46f7af1693e53c3a1ce863654be1c55a9
|
@@ -321,7 +321,11 @@ module Eco
|
|
321
321
|
serial_attr = @person_parser.serialize(attr, @person, deps: deps)
|
322
322
|
serial_hash.merge(hash_attr(attr, serial_attr))
|
323
323
|
end
|
324
|
-
unserialized_entry.merge(serial_attrs)
|
324
|
+
unserialized_entry.merge(serial_attrs).tap do |hash|
|
325
|
+
if hash.key?("filter_tags") && hash["filter_tags"].is_a?(Array)
|
326
|
+
hash["filter_tags"] = @person_parser.serialize(:multiple, hash["filter_tags"])
|
327
|
+
end
|
328
|
+
end
|
325
329
|
end
|
326
330
|
|
327
331
|
# To obtain an entry with internal names but external values.
|
@@ -37,6 +37,7 @@ module Eco
|
|
37
37
|
person.name = entry.name
|
38
38
|
person.email = entry.email unless options.dig(:exclude, :email)
|
39
39
|
person.supervisor_id = entry.supervisor_id unless options.dig(:exclude, :supervisor)
|
40
|
+
person.filter_tags = entry.filter_tags || []
|
40
41
|
end
|
41
42
|
|
42
43
|
unless options.dig(:exclude, :account)
|
data/lib/eco/version.rb
CHANGED