eco-helpers 2.0.30 → 2.0.31

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: 3488b397afbd0ba2691eb14dd6983891737a973e1a6f1ba31e61d8233f4d5764
4
- data.tar.gz: 3faa75a89cf0602b92e270bbf77b61452e64d38b6fa3949a537b7b705a58b7e1
3
+ metadata.gz: dd31d354667802423a4003fe347af67916015eaeac0d1682cbe511d7afc11b40
4
+ data.tar.gz: d0f9d23f2ad6db33861441d9f865a9e5925eec7a1e4042f7246bbded8f61ce6f
5
5
  SHA512:
6
- metadata.gz: 2a2e5cb8179c1aa5b171d01586675c5c8d71ab3acc6bb400f66f41610339ac1a5265370774bc27d6e2963b775e56e7f238a9ea928d1ab7f136e970e662108c03
7
- data.tar.gz: 5c5895f563af52455c318976f854c39e48773a46b38851f4ba37343fafb68faffa0049dc6ccb7054db24f44ff54b1abceac07808ec7c522d3e97e9d55e086e6c
6
+ metadata.gz: fafda0f2b9f6866499df3a641598800ea5dd2c2536710a759bbd0d30a307f36da8cc1cb30056de965134aea509ce1700df152d233d322b41c590048569ecd23e
7
+ data.tar.gz: d2f953274727fa35d8474da766dabee715f21b4ae227be9e0b4f31363d58fdcc1b0e410d10976b3f8608e14335d5f42c97dccd6a3d2e55ea37fb4a945d02d091
data/CHANGELOG.md CHANGED
@@ -1,13 +1,20 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [2.0.30] - 2021-07-xx
4
+ ## [2.0.31] - 2021-07-xx
5
5
 
6
6
  ### Added
7
- * `Eco::API::Common::People::DefaultParsers::XLSParser` uses as default the `fields_map.json` to identify the headers.
8
7
 
9
8
  ### Changed
10
9
 
10
+ ### Fixed
11
+ - `Eco::API::Session::Batch::Job`: `include-excluded` was triggering a type error.
12
+
13
+ ## [2.0.30] - 2021-07-08
14
+
15
+ ### Added
16
+ * `Eco::API::Common::People::DefaultParsers::XLSParser` uses as default the `fields_map.json` to identify the headers.
17
+
11
18
  ### Fixed
12
19
  * `Eco::API::Common::People::DefaultParsers::XLSParser` should return all `String` values
13
20
 
@@ -253,7 +253,8 @@ module Eco
253
253
  def api_included(full_queue)
254
254
  return full_queue if type == :create
255
255
  return full_queue unless excluded = session.config.people.api_excluded
256
- if options.dig(:include, :excluded, :only)
256
+ excluded = options.dig(:include, :excluded)
257
+ if excluded.is_a?(Hash) && excluded[:only]
257
258
  full_queue.select {|entry| excluded.call(entry, session, options, self)}
258
259
  elsif options.dig(:include, :excluded)
259
260
  full_queue
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.0.30"
2
+ VERSION = "2.0.31"
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.30
4
+ version: 2.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura