eco-helpers 2.0.8 → 2.0.9

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: 507156a88f88bc8227f255251d1f8861f486a23a0fe3b23e003706dfe708507b
4
- data.tar.gz: '07952da6db5134dfecc5461d41ad4ce0e264c0eaaec3d9ec55d9d42b41b2620b'
3
+ metadata.gz: 75a468069bd29d7dc25347e6da7d4d9faebc52043eba8b4ea1e91f6d383a8690
4
+ data.tar.gz: dee338f8e23d4608f0d359bd44712377d15723c70730e823c11766f179f4877e
5
5
  SHA512:
6
- metadata.gz: fcfa79dfa92123af03399391797013e7a23a032504570d8cc2cfcb890f8a93ece62a7acbbd43b2fbd70a4de20c28baa60635536d9b431ac260de2905db825332
7
- data.tar.gz: 0e63f504d100e5647e9b48eceeebda57814d1dda0ce3d8c0147cb58ce7c40bf5e1225bc261d207d531af22611dc4fd0461461f70016647cda0eaf1147e653c12
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.8] - 2021-03-xx
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
- - `Ecoportal::API::External::Person#identity` adjust behaviour
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
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.0.8"
2
+ VERSION = "2.0.9"
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: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura