eco-helpers 2.0.36 → 2.0.37

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: '069fe6b03a523420dd24aa933eeffb05c20153ace763deb228de9e978a2f0ef6'
4
- data.tar.gz: 974d0af1009597161438cc9de087d42a73a503b6c0c8d50ab97c3030672e7180
3
+ metadata.gz: 0a1e3f56c23a45ecb80f852556b02b1ac7cc3a2546a72bcb5d2d05283bbc66b6
4
+ data.tar.gz: 82250daa8e645c1a68d79d047d938fd3371c909d9eeb04dca58548d5bd907543
5
5
  SHA512:
6
- metadata.gz: 8c089ac0050ab88d68eda450060785d9a59870cfa87b3c0c958612cb85f8251d826c824aa9da93b1cffa99afa4e7877ebd42dec1ad0d161764fea7de29495fb7
7
- data.tar.gz: f42d0a303f79775a71da9d13aa1639c8e0de85131590b84301fa1523e0293f87a943d9eaf65c22b97b73d71d667e889ae8bc0137861ac3811fed1a8a439de66f
6
+ metadata.gz: d93e88f2f6dab9ca740d7c21741be6c6aec2885c98336fe7d0d247964e995b519603aaf989872073a3ff93234f64cce3cb62bece56ed4c33d7597de186f70bae
7
+ data.tar.gz: 4cd351d33ef0f66d178273d64ba52b39356204a8b31aabc358bda6267892af678c785b17537eb2ca2b00533a81b2ee600b3e648f40891b4438162a7362d33825
data/CHANGELOG.md CHANGED
@@ -1,10 +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.36] - 2021-08-xx
4
+ ## [2.0.37] - 2021-09-03
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
+
9
+ ### Fixed
10
+ - `Eco::API::UseCases::OozeSamples::OozeBaseCase`
11
+ - `#update_ooze` only count dry run for changed pages (to have better feedack)
12
+ - stop downloading the people manager
13
+ - `Eco::API::UseCases::OozeSamples::RegisterUpdateCase`
14
+ - prevent queuing non page objects
15
+
16
+ ## [2.0.36] - 2021-08-31
17
+
8
18
  ### Fixed
9
19
  - `Eco::API::UseCases::OozeSamples::OozeBaseCase`
10
20
  - `#update_ooze` only count dry run for changed pages (to have better feedack)
data/eco-helpers.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "redcarpet", ">= 3.5.1", "< 3.6"
32
32
 
33
33
  spec.add_dependency 'ecoportal-api', '>= 0.8.3', '< 0.9'
34
- spec.add_dependency 'ecoportal-api-v2', '>= 0.8.12', '< 0.9'
34
+ spec.add_dependency 'ecoportal-api-v2', '>= 0.8.13', '< 0.9'
35
35
  spec.add_dependency 'aws-sdk-s3', '>= 1.83.0', '< 2'
36
36
  spec.add_dependency 'aws-sdk-ses', '>= 1.36.0', '< 2'
37
37
  spec.add_dependency 'dotenv', '>= 2.7.6', '< 2.8'
@@ -12,6 +12,7 @@ class Eco::API::UseCases::OozeSamples::OozeBaseCase < Eco::API::Common::Loaders:
12
12
  DRY_COUNT = 5
13
13
 
14
14
  def main(session, options, usecase)
15
+ options[:end_get] = false
15
16
  raise "You need to inherit from this class ('#{self.class}') and call super with a block" unless block_given?
16
17
  @session = session; @options = options; @usecase = usecase
17
18
  @target = nil
@@ -40,7 +40,7 @@ class Eco::API::UseCases::OozeSamples::RegisterUpdateCase < Eco::API::UseCases::
40
40
  def new_target(object, warn_pending_changes: false)
41
41
  enqueue(object)
42
42
  super(object, warn_pending_changes: warn_pending_changes) do |pending|
43
- #queue(pending)
43
+ #enqueue(pending)
44
44
  end
45
45
  end
46
46
 
@@ -65,6 +65,9 @@ class Eco::API::UseCases::OozeSamples::RegisterUpdateCase < Eco::API::UseCases::
65
65
 
66
66
  def enqueue(object)
67
67
  return unless object && object.respond_to?(:id)
68
+ unless object.is_a?(Ecoportal::API::V2::Page) or object.is_a?(Ecoportal::API::V2::Pages::PageStage)
69
+ raise "Queuing is just for entries. Expecting Page or PageStage. Given: #{object.class}"
70
+ end
68
71
  if elem = queue_get(object.id)
69
72
  msg = "Something is wrong. Native case 'RegisterUpdateCase' is "
70
73
  if (elem != object) && dirty?(elem)
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.0.36"
2
+ VERSION = "2.0.37"
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.36
4
+ version: 2.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
@@ -136,7 +136,7 @@ dependencies:
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: 0.8.12
139
+ version: 0.8.13
140
140
  - - "<"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0.9'
@@ -146,7 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 0.8.12
149
+ version: 0.8.13
150
150
  - - "<"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.9'