eco-helpers 1.3.16 → 1.3.17

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: a43bda1c38e889ae1d7035b4cb6864ff4db692c26d709bcb99d58373404b179f
4
- data.tar.gz: cb2d7d559e115b214adbfa0951e7d7487c0197e63bff2d9243a4d9308f62b8a4
3
+ metadata.gz: e957c3c78a92c3cb18bed8c512ed087dd21551799a3dfa54e9cd3821045826ee
4
+ data.tar.gz: 853c05d5dd2191611b74b7e0b64037d2ad223721a8bff9e615560d13a057c2cc
5
5
  SHA512:
6
- metadata.gz: d6d489186d306df34befcbe4fe898bac6482c773f79e71824ac331f1869f3e75356acc6a9b1d40b2aeca994244d22c78d19483bc6342feee78dbae5c85e14417
7
- data.tar.gz: 9558cc316de54b61a119da8ce27a235032ea6dd4c200b4deb2d646a45dd4b76c4a2724c9ba93ff1620e610d778e300a192c3969ff3a94af0706bcaf8cfd0d870
6
+ metadata.gz: c5f83c3d8bef201c208c18116544d125633e3633abc33c519d841b766bb49777c562676591b3fe5e5037d805f43ece0233ab0af0ae8236a64a0823a55e88c9fd
7
+ data.tar.gz: 0cc7d6d8d7e3fb6e58a04e55e0f6dcfe84916c41b2d067828698e92255eb7004503be731ff46ba8d6d30ba6e9dcd1d9b6faf3df2ac6c80cf5ccf6fb48abb23f6
@@ -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
- ## [1.3.16] - 2020-06-xx
4
+ ## [1.3.17] - 2020-07-xx
5
+
6
+ ### Added
7
+ ### Changed
8
+ - the `hris` case should not only include as `leavers` those that have account, but anyone that leaves
9
+ * as we could have active people with no account
10
+ ### Fixed
11
+ - `Eco::API::Session::Batch::Errors#errors`: fix error for empty `body` on response
12
+
13
+ ## [1.3.16] - 2020-06-26
5
14
 
6
15
  ### Added
7
16
  - `Eco::API::Common::People::Entries`, `#entry` & `#find` should allow for `strict` search (added parameter)
@@ -69,13 +69,15 @@ module Eco
69
69
 
70
70
  def errors
71
71
  entries.each_with_object([]) do |entry, arr|
72
- if errs = status[entry].body["errors"]
73
- errs.each do |msg|
74
- arr.push({
75
- type: klass = Eco::API::Error.get_type(msg),
76
- err: klass.new(err_msg: msg, entry: entry, session: session),
77
- entry: entry
78
- })
72
+ if body = status[entry].body
73
+ if errs = body["errors"]
74
+ errs.each do |msg|
75
+ arr.push({
76
+ type: klass = Eco::API::Error.get_type(msg),
77
+ err: klass.new(err_msg: msg, entry: entry, session: session),
78
+ entry: entry
79
+ })
80
+ end
79
81
  end
80
82
  end
81
83
  end
@@ -14,11 +14,11 @@ module Eco
14
14
  strict_search = session.config.people.strict_search? && (!options[:search]&.key?(:strict) || options.dig(:search, :strict))
15
15
  pgs = session.policy_groups
16
16
 
17
- people.users.each_with_index do |person, i|
17
+ people.each_with_index do |person, i|
18
18
  if !entries.find(person, strict: strict_search)
19
19
  leavers.add(person) do |person|
20
20
  person.supervisor_id = nil
21
- person.account = nil
21
+ person.account = nil if person.account
22
22
  end
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "1.3.16"
2
+ VERSION = "1.3.17"
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.3.16
4
+ version: 1.3.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura