eco-helpers 3.0.11 → 3.0.14

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: 4f49ceec7a0716f4265f77b72e06daa06b66b3b960469842249c2a8e9ce0b847
4
- data.tar.gz: a670f98ce7d34bd6bf42e2d938341c52c892e4cc2e6104b4f3fc7b42bcdd990d
3
+ metadata.gz: 660f0a85b269e559ec99381ea4f621dcf8495b4c9465594824ad30da872c0e75
4
+ data.tar.gz: 3baf736b197cbf7784f116dacaa28f5d049acf8d62f15cdfe3669adcb3ae0b10
5
5
  SHA512:
6
- metadata.gz: ccccdc391fdf06e5939c406f2d04e6eafa0341d6d0747c60c08967bba1b08f60402c6e8f3058593c1a761536ce411609c3d911f34842a8b43537e832703f4a3f
7
- data.tar.gz: 3c786c864e851a2afb874a196a4f1f93ea84530951a34714663d4e44f26ffe2422ed9485da071ddb00eca72a148c2f32bc5b6d4ce5e75340890fc48b021755d3
6
+ metadata.gz: ed21ee420598f8dc8d45895160475b37ebb5022219d9b6bd96ca9861faa8c03cb315db4a95626a24dd5f30627253661ed51c294792c050e99a8a9b3706610676
7
+ data.tar.gz: d3800bad4334ec5bbfe5d0aa5dde65befc003b66a1abb6dbb104773c7cc6c3fcbe8da959fe239b6fd9b5cf48bea570703117ca804e6c4cf1394a37c0f90dca43
data/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [3.0.12] - 2024-09-xx
5
+ ## [3.0.14] - 2024-09-xx
6
6
 
7
7
  ### Added
8
8
 
@@ -10,17 +10,31 @@ All notable changes to this project will be documented in this file.
10
10
 
11
11
  ### Fixed
12
12
 
13
- ## [3.0.11] - 2024-09-xx
13
+ - sftp errors
14
14
 
15
- ### Added
15
+ ## [3.0.13] - 2024-09-10
16
+
17
+ ### Fixed
18
+
19
+ - sftp errors
20
+
21
+ ## [3.0.12] - 2024-09-06
22
+
23
+ ### Fixed
24
+
25
+ - Enable multiple classifications per location node on updates
26
+ - `Eco::API::UseCases::GraphQL::Helpers::Location::Base::ClassificationsParser`
27
+ - `#to_classification_ids` split on `|`
28
+ - `Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diff::AsUpdate`
29
+ - `#diff_hash`
30
+
31
+ ## [3.0.11] - 2024-09-06
16
32
 
17
33
  ### Changed
18
34
 
19
35
  - Prevent double-up of notifications
20
36
  - Prevent double log of errors
21
37
 
22
- ### Fixed
23
-
24
38
  ## [3.0.10] - 2024-09-05
25
39
 
26
40
  ### Fixed
@@ -87,7 +87,9 @@ module Eco
87
87
  when Net::SFTP::Constants::StatusCodes::FX_NO_SUCH_PATH
88
88
  log(:error) { err }
89
89
  else
90
- raise
90
+ msg = "Error when trying to move file '#{fullname_source}' to '#{fullname_dest}'"
91
+ log(:error) { "#{msg}\n#{err}" }
92
+ # raise err, msg, err.backtrace
91
93
  end
92
94
 
93
95
  false
@@ -22,7 +22,8 @@ module Eco::API::UseCases::GraphQL::Helpers::Location
22
22
 
23
23
  def to_classification_ids(values)
24
24
  values = [values].flatten unless values.is_a?(Array)
25
- values.compact.map {|val| to_classification(val)}.compact
25
+ values = values.compact.map {|val| val.split('|')}.flatten
26
+ values.compact.map {|val| to_classification(val)}.compact.uniq
26
27
  end
27
28
 
28
29
  # @note
@@ -15,6 +15,7 @@ class Eco::API::UseCases::GraphQL::Helpers::Location::Command::Diff
15
15
  if h.key?('classifications')
16
16
  class_ids = h.delete('classifications')
17
17
  class_ids = [class_ids].flatten.compact unless class_ids.is_a?(Array)
18
+ class_ids = class_ids.compact.map {|val| val.split('|')}.flatten.uniq
18
19
  h['classificationIds'] = class_ids
19
20
  end
20
21
 
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = '3.0.11'.freeze
2
+ VERSION = '3.0.14'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.11
4
+ version: 3.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake