eco-helpers 2.0.8 → 2.0.9
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 +11 -3
- data/lib/eco/api/session/batch/errors.rb +5 -5
- data/lib/eco/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: 75a468069bd29d7dc25347e6da7d4d9faebc52043eba8b4ea1e91f6d383a8690
|
4
|
+
data.tar.gz: dee338f8e23d4608f0d359bd44712377d15723c70730e823c11766f179f4877e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36c25c8a37c8fe894c57309e07126251e658846881698d4eec1660bf2a1a6cdc2e09f6b3f94c28434e47e7ea1f70cbf69196d2965d0a45609492867b2b356478
|
7
|
+
data.tar.gz: 98bdbf74599ab4a3ab98ac6c76d068bbcf7871774e3f7315f992dbcb9cc31066ac7d2293b8cbee1bc3019bf94e1b9f78c7fdf02b8751cafb403451be12c8c159
|
data/CHANGELOG.md
CHANGED
@@ -1,13 +1,21 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [2.0.
|
4
|
+
## [2.0.9] - 2021-03-xx
|
5
5
|
|
6
6
|
### Added
|
7
7
|
### Changed
|
8
|
+
- `Eco::API::Session::Batch:Errors#person_ref` moved to the public method
|
9
|
+
|
8
10
|
### Fixed
|
9
|
-
|
10
|
-
|
11
|
+
|
12
|
+
## [2.0.8] - 2021-03-09
|
13
|
+
|
14
|
+
### Added
|
15
|
+
### Changed
|
16
|
+
### Fixed
|
17
|
+
- `Ecoportal::API::V1::Person#identity` adjust behavior
|
18
|
+
|
11
19
|
## [2.0.7] - 2021-03-09
|
12
20
|
|
13
21
|
### Added
|
@@ -111,6 +111,11 @@ module Eco
|
|
111
111
|
end
|
112
112
|
# @!endgroup
|
113
113
|
|
114
|
+
def person_ref(entry)
|
115
|
+
row_str = (row = get_row(entry)) ? "(row: #{row}) " : nil
|
116
|
+
"#{row_str}(id: '#{get_attr(entry, :id)}') '#{get_attr(entry, :name)}' ('#{get_attr(entry, :external_id)}': '#{get_attr(entry, :email)}')"
|
117
|
+
end
|
118
|
+
|
114
119
|
private
|
115
120
|
|
116
121
|
# Input entries that got **error** response from the _Server_.
|
@@ -136,11 +141,6 @@ module Eco
|
|
136
141
|
end
|
137
142
|
end
|
138
143
|
|
139
|
-
def person_ref(entry)
|
140
|
-
row_str = (row = get_row(entry)) ? "(row: #{row}) " : nil
|
141
|
-
"#{row_str}(id: '#{get_attr(entry, :id)}') '#{get_attr(entry, :name)}' ('#{get_attr(entry, :external_id)}': '#{get_attr(entry, :email)}')"
|
142
|
-
end
|
143
|
-
|
144
144
|
def get_attr(entry, attr)
|
145
145
|
if entry.respond_to?(attr.to_sym)
|
146
146
|
entry.public_send(attr.to_sym)
|
data/lib/eco/version.rb
CHANGED