eco-helpers 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e365c79c49402a5c46ebc79964b0b4d5848bc7822ac611c7ee882ed56a60888
4
- data.tar.gz: 89616bae7fc5cf0755bd4b68f3ccc141be5b4fb95fa1ce16324244a98542ac39
3
+ metadata.gz: 4b8f8b8d8377570d48f13252508d8193694c79455b76d18ea467841c5e543f9f
4
+ data.tar.gz: 8208f96191dc3e658f034fe59f1d07bc25bcfe2b74a6385dcafcc0715ff8d8a3
5
5
  SHA512:
6
- metadata.gz: 719745fdba1d0e15a489553b424220f9c83f22fb431935682006c1299093fff99a8ee4c51b6af57b4db64d8bae0e98fd74445bd96f09fe5274fecf00a4829fad
7
- data.tar.gz: 0e1f61a386be4dfebb8fe02942f26629aeeb1b83d982ed76e5a85d750ede88c6e758108152b0c3587e63962fe9896c3d3af8e81964baf3c42619245d2a1d0c22
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
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura