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 +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/ecoportal/api/internal/account.rb +1 -1
- data/lib/ecoportal/api/v1/person.rb +1 -1
- data/lib/ecoportal/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 168542de09c5a87edcd4952acdf84cdf01944c03339238a27c310e29b71e9c14
|
4
|
+
data.tar.gz: 2f43b32d289f6232eccff32516717ab82cd86cbe0144d6f8f2eac74f30637cd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c539315189039d7baed7c48db646969525a47d51cdd88b63a2ac53b651f089aa6e219fa91624943700c1c73144525d9482f4cff8b9e1ca5cbbc9862c0a138e4
|
7
|
+
data.tar.gz: 3c145a2fcea2c476fb39ad914b6b3ec2ff390ffe5378ab9795ddd466238f0af55fbbae59a5e87cadb415a49165cf0e05d6697e45dc74bd6235581c30268d1e45
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
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.
|
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-
|
11
|
+
date: 2020-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|