eco-helpers 2.1.7 → 2.1.8

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: 57558123bd83d606799604772ef717673f58bd089efc90458116a3126b1742f4
4
- data.tar.gz: 99ec5e1bf52f4cd3ce3bbab5da60c64bfb42aa7742dfbe85897b40bfd6c76471
3
+ metadata.gz: 34fabf1bbcb318ac7860992bc5a24a5b27e7941e6976cda455d1e65e274fa16c
4
+ data.tar.gz: e44bc288d08d82ce98921f63c978d84e8813883a729e17a718978aab293d9c44
5
5
  SHA512:
6
- metadata.gz: 4d5bbe4a67ec3b9f18025877ecc3ce8735a8e816be686a17deee58be2e9f1d1c35b54b73a004440210905b113230224c8ce9f2b225746e7bf7c276b274f67b5e
7
- data.tar.gz: 3d492d4ead671bc288621135e197ee3ce42ed40a10b73546ca7b8f3c3b9d137c2048105beda464d2d7b0d443dde510f3c86edac0bdb68f5262ae434f063864f8
6
+ metadata.gz: a94bc6ca7d5c012dc03491e6e96456d4ae620c4ecfc52023716525caadb4e6683e49de8fe8d56479dc883b4710bef1c2a3b9f51fd4a7d6e7da52e0cf1d15cb50
7
+ data.tar.gz: 7ca163e67e3675bf3d0a84b4f11cb57cf25c164b169d418164da94963cfdbdcb5d6cc8b8ae78fb5311e955119190b93d254c715e24a05de73f90974e6ed154dd
data/CHANGELOG.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [2.1.8] - 2022-11-xx
4
+ ## [2.1.9] - 2022-11-xx
5
5
 
6
6
  ### Added
7
7
  ### Changed
8
8
  ### Fixed
9
9
 
10
+ ## [2.1.8] - 2022-11-18
11
+
12
+ ### Added
13
+ - `Eco::API::UseCases::OozeSamples::RegisterMigrationCase`
14
+ - When in `dry-run` mode, it adds one line before creation feedback, so it is clear the feedback is about creation (i.e. none of the source entries got mistakenly updated)
15
+ - **enhanced** `Eco::API::UseCases::OozeSamples::OozeBaseCase#with_fields`
16
+ - It allows to optionally pass as first parameter a section or a stage (default: ooze)
17
+
18
+ ### Changed
19
+ - upgraded gem dependency `ecoportal-api-v2`
20
+
10
21
  ## [2.1.7] - 2022-11-17
11
22
 
12
23
  ### Added
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.5', '< 0.9'
34
- spec.add_dependency 'ecoportal-api-v2', '>= 0.9.5', '< 0.10'
34
+ spec.add_dependency 'ecoportal-api-v2', '>= 0.9.6', '< 0.10'
35
35
  spec.add_dependency 'ecoportal-api-graphql', '>= 0.1.10', '< 0.2'
36
36
  spec.add_dependency 'aws-sdk-s3', '>= 1.83.0', '< 2'
37
37
  spec.add_dependency 'aws-sdk-ses', '>= 1.36.0', '< 2'
@@ -70,8 +70,14 @@ class Eco::API::UseCases::OozeSamples::OozeBaseCase < Eco::API::Common::Loaders:
70
70
 
71
71
  def with_fields(entry = target, type: nil, label: nil)
72
72
  flds = entry.components
73
- flds = flds.get_by_type(type) if type
74
- flds = flds.select do |fld|
73
+ if type
74
+ if flds.respond_to?(:get_by_type)
75
+ flds = flds.get_by_type(type)
76
+ else
77
+ flds = flds.select {|fld| fld.type == type}
78
+ end
79
+ end
80
+ flds.select do |fld|
75
81
  value = (label == :unnamed) ? nil : label
76
82
  !label || same_string?(fld.label, value)
77
83
  end.each do |field|
@@ -160,6 +160,7 @@ class Eco::API::UseCases::OozeSamples::RegisterMigrationCase < Eco::API::UseCase
160
160
  if !options[:dry_run]
161
161
  create_ooze(draft, template_id: from).page_id
162
162
  else
163
+ logger.info("Creation sample follows...")
163
164
  dry_run_feedback(draft)
164
165
  false
165
166
  end
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.1.7"
2
+ VERSION = "2.1.8"
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.1.7
4
+ version: 2.1.8
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.9.5
139
+ version: 0.9.6
140
140
  - - "<"
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0.10'
@@ -146,7 +146,7 @@ dependencies:
146
146
  requirements:
147
147
  - - ">="
148
148
  - !ruby/object:Gem::Version
149
- version: 0.9.5
149
+ version: 0.9.6
150
150
  - - "<"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0.10'