ecoportal-api 0.5.7 → 0.5.8

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: 23c2c89eeaf9c3885adf494fb7cd2daa6bea5173dc106c5eda9093c2639fc3a0
4
- data.tar.gz: 1eff582092bc9ea71dfc0f1841630fc703fc8dc82cb590faf95f95c971d24643
3
+ metadata.gz: 168542de09c5a87edcd4952acdf84cdf01944c03339238a27c310e29b71e9c14
4
+ data.tar.gz: 2f43b32d289f6232eccff32516717ab82cd86cbe0144d6f8f2eac74f30637cd8
5
5
  SHA512:
6
- metadata.gz: 94c62031538298401941fc52f3b9dafd0b2661a6c5bbc60e39c730894fb086221bc9613aa55eeb81920fd55c0ef8a0d825360a83c1dc2fa90b2ef3b00562addd
7
- data.tar.gz: 3e76c19b8b987a55f112cb15551f5e76e6d453083c66213622af5b9e363ebec0a08b51a8b5122f26466b96f22806b191b75cc63e83c624f5107de497b3f6a7d8
6
+ metadata.gz: 1c539315189039d7baed7c48db646969525a47d51cdd88b63a2ac53b651f089aa6e219fa91624943700c1c73144525d9482f4cff8b9e1ca5cbbc9862c0a138e4
7
+ data.tar.gz: 3c145a2fcea2c476fb39ad914b6b3ec2ff390ffe5378ab9795ddd466238f0af55fbbae59a5e87cadb415a49165cf0e05d6697e45dc74bd6235581c30268d1e45
@@ -1,7 +1,16 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.5.7] - 2020-06-xx
4
+ ## [0.5.8] - 2020-06-23
5
+
6
+ ### Added
7
+ ### Changed
8
+ ### Fixed
9
+ - `Ecoportal::API::V1::Person#filter_tags=`: `original_doc["filter_tags"]` is `nil` when creating a person
10
+ - `Ecoportal::API::Internal::Account#policy_group_ids=`: `original_doc["account"]` is `nil` when creating a person
11
+
12
+
13
+ ## [0.5.7] - 2020-06-22
5
14
 
6
15
  ### Added
7
16
  - `Ecoportal::API::V1::PersonSchema`: added `enable_tags` & `tags` properties
@@ -18,7 +18,7 @@ module Ecoportal
18
18
  raise "policy_group_ids= needs to be passed an Array, got #{value.class}"
19
19
  end
20
20
 
21
- ini_ids = original_doc["policy_group_ids"] || []
21
+ ini_ids = (original_doc && original_doc["policy_group_ids"]) || []
22
22
  # preserve original order to avoid false updates
23
23
  doc["policy_group_ids"] = (ini_ids & value) + (value - ini_ids)
24
24
  end
@@ -56,7 +56,7 @@ module Ecoportal
56
56
  tag.upcase
57
57
  end
58
58
 
59
- ini_tags = original_doc["filter_tags"] || []
59
+ ini_tags = (original_doc && original_doc["filter_tags"]) || []
60
60
  # preserve original order to avoid false updates
61
61
  doc["filter_tags"] = (ini_tags & end_tags) + (end_tags - ini_tags)
62
62
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- VERSION = "0.5.7"
3
+ VERSION = "0.5.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapio Saarinen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-22 00:00:00.000000000 Z
11
+ date: 2020-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler