eco-helpers 2.0.31 → 2.0.32

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: dd31d354667802423a4003fe347af67916015eaeac0d1682cbe511d7afc11b40
4
- data.tar.gz: d0f9d23f2ad6db33861441d9f865a9e5925eec7a1e4042f7246bbded8f61ce6f
3
+ metadata.gz: 0a1f04caab2cae362249d46b694021287a8904052f3851151b4cb6103e7f8790
4
+ data.tar.gz: b050e7dd4626f331080cb6dc1437da74a793460bce5426ff3aa5a9b91bba5a53
5
5
  SHA512:
6
- metadata.gz: fafda0f2b9f6866499df3a641598800ea5dd2c2536710a759bbd0d30a307f36da8cc1cb30056de965134aea509ce1700df152d233d322b41c590048569ecd23e
7
- data.tar.gz: d2f953274727fa35d8474da766dabee715f21b4ae227be9e0b4f31363d58fdcc1b0e410d10976b3f8608e14335d5f42c97dccd6a3d2e55ea37fb4a945d02d091
6
+ metadata.gz: 7eb83d0cd4b318f42e90065f772b0b9aa801afddd39d0f2e6fa9861446fd06d537cc436500f8cc9a2c852ce46d3ea2b00a2d3a7199cdba9bf244a8104aa63bfc
7
+ data.tar.gz: ef8ab06e274156c0341212b9b72865e0dfe4e55e9c4f0f816b67554739b6fc2a1b15614a973bfae234dbdd03de7b429513ad19edcd9264b0123cb80374dc78b8
data/CHANGELOG.md CHANGED
@@ -1,12 +1,18 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [2.0.31] - 2021-07-xx
4
+ ## [2.0.32] - 2021-07-xx
5
5
 
6
6
  ### Added
7
7
 
8
8
  ### Changed
9
9
 
10
+ ### Fixed
11
+ - `Eco::API::UseCases::OozeSamples::OozeUpdateCase` prompting user, fixed typo
12
+ - `Eco::API::Session::Batch::Job`: `include-excluded` again... typo.
13
+
14
+ ## [2.0.31] - 2021-07-13
15
+
10
16
  ### Fixed
11
17
  - `Eco::API::Session::Batch::Job`: `include-excluded` was triggering a type error.
12
18
 
@@ -252,14 +252,14 @@ module Eco
252
252
  # - filter out excluded entries from the api update
253
253
  def api_included(full_queue)
254
254
  return full_queue if type == :create
255
- return full_queue unless excluded = session.config.people.api_excluded
255
+ return full_queue unless excluded_callback = session.config.people.api_excluded
256
256
  excluded = options.dig(:include, :excluded)
257
257
  if excluded.is_a?(Hash) && excluded[:only]
258
- full_queue.select {|entry| excluded.call(entry, session, options, self)}
258
+ full_queue.select {|entry| excluded_callback.call(entry, session, options, self)}
259
259
  elsif options.dig(:include, :excluded)
260
260
  full_queue
261
261
  else
262
- full_queue.select {|entry| !excluded.call(entry, session, options, self)}
262
+ full_queue.select {|entry| !excluded_callback.call(entry, session, options, self)}
263
263
  end
264
264
  end
265
265
 
@@ -45,7 +45,7 @@ class Eco::API::UseCases::OozeSamples::OozeUpdateCase < Eco::API::Common::Loader
45
45
  end
46
46
 
47
47
  def ooze
48
- @ooze ||= apiv2.pages.get(ooze_id).tap do |ooze|
48
+ @ooze ||= apiv2.pages.get(ooze_id, stage_id: stage_id).tap do |ooze|
49
49
  if ooze
50
50
  new_target(ooze)
51
51
  logger.info("Got #{object_reference(ooze)}")
@@ -124,7 +124,7 @@ class Eco::API::UseCases::OozeSamples::OozeUpdateCase < Eco::API::Common::Loader
124
124
  end
125
125
 
126
126
  def prompt_to_confirm!
127
- prompt_user("Do you want to proceed (y/N)?", default: "Y") do |response|
127
+ micro.prompt_user("Do you want to proceed (y/N)?", default: "Y") do |response|
128
128
  exit(1) unless response.upcase.start_with?("Y")
129
129
  end
130
130
  end
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.0.31"
2
+ VERSION = "2.0.32"
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.31
4
+ version: 2.0.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura