eco-helpers 2.6.2 → 2.6.3

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: '0904af2dd434adc72c1ca3e889d4e0b11595ce991f6de1c997f613d80c8866ce'
4
- data.tar.gz: b21748a878327830d5c813340ab2fcfe69ebace8137480bc9dfc42f290296cbf
3
+ metadata.gz: e99bac78bf3ad5a08a730b7ea4abe24c86af103df8c388db7d73538c6e4269f8
4
+ data.tar.gz: f3ddd9a1918cd556f5c5c31faf507e39b2ffe6fc58cbd6653343f34290f2c8ab
5
5
  SHA512:
6
- metadata.gz: 2bccc140b8ec44d41aaccdffde8e5b51a1c755fc75dcede5e08526be6daed4482a5f733ceba6a75155f1dee74dbc8e2edc52ee9f2ab55f7ebf6521acfd3aac47
7
- data.tar.gz: b362a14bf0a872ee04928ace6c05600df37ecfd56cb754b5f2a0cc3a417115cc8d9a889ce5f40de80ed41f281b16005eed78eadf04a330dc6fa80066baa56e63
6
+ metadata.gz: ee7ccfe506d52ae5c253f16de9e9cf708c2d8b21b46b07e2b1a2a2ee17e3122f76b25a366d4512c7b22f80bb109cdf28cbf68fb28ea62e67d765739fbcdd53b8
7
+ data.tar.gz: '062338c3cb7837c8cd549a5ce6ccc199f5627ef95718991a7db30d4c325b34651a6aad85d2260158f487e6146a088adcbd0907d8090a1e55178950c7a687aa76'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,21 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [2.6.4] - 2024-02-xx
5
+
6
+ ### Added
7
+ ### Changed
8
+ ### Fixed
9
+
10
+ ## [2.6.3] - 2024-02-29
11
+
12
+ ### Changed
13
+ - upgrade `ecoportal-api-v2` **gem**
14
+
15
+ ### Fixed
16
+ - `Eco::API::UseCases::OozeSamples::RegisterUpdateCase`
17
+ - `dry_run_feedback` fixed typo
18
+
4
19
  ## [2.6.2] - 2024-02-23
5
20
 
6
21
  ### Added
data/eco-helpers.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_development_dependency "redcarpet", ">= 3.6.0", "< 4"
32
32
 
33
33
  spec.add_dependency 'ecoportal-api', '>= 0.9.6', '< 0.10'
34
- spec.add_dependency 'ecoportal-api-v2', '>= 1.1.5', '< 1.2'
34
+ spec.add_dependency 'ecoportal-api-v2', '>= 1.1.6', '< 1.2'
35
35
  spec.add_dependency 'ecoportal-api-graphql', '>= 0.3.13', '< 0.4'
36
36
  spec.add_dependency 'aws-sdk-s3', '>= 1.142.0', '< 2'
37
37
  spec.add_dependency 'aws-sdk-ses', '>= 1.58.0', '< 2'
@@ -8,12 +8,13 @@ module Eco
8
8
  private
9
9
 
10
10
  # Helper to prevent script from stopping
11
- def with_rescue(reference)
11
+ def with_rescue(reference, trace_count: 1)
12
12
  raise ArgumentError, "Expecting block, but not given" unless block_given?
13
13
  yield
14
- rescue StandardError => e
14
+ rescue StandardError => err
15
+ str_err = err.patch_full_message(trace_count: trace_count)
15
16
  log(:error) {
16
- [reference, e.message].join(' => \n')
17
+ [reference, str_err].join(" => \n")
17
18
  }
18
19
  lines = []
19
20
  lines << "\nThere was an error. Choose one option:\n"
@@ -151,7 +151,7 @@ class Eco::API::UseCases::OozeSamples::RegisterUpdateCase < Eco::API::UseCases::
151
151
  @ooze_create_attempts += 1
152
152
 
153
153
  if dry_run?
154
- dry_run_feedback(ooze)
154
+ dry_run_feedback(draft)
155
155
  false
156
156
  else
157
157
  apiv2.pages.create(draft, from: template_id).tap do |result|
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.6.2"
2
+ VERSION = "2.6.3"
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.6.2
4
+ version: 2.6.3
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: 1.1.5
139
+ version: 1.1.6
140
140
  - - "<"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '1.2'
@@ -146,7 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 1.1.5
149
+ version: 1.1.6
150
150
  - - "<"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '1.2'