eco-helpers 3.0.11 → 3.0.14
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 +4 -4
- data/CHANGELOG.md +19 -5
- data/lib/eco/api/common/session/sftp.rb +3 -1
- data/lib/eco/api/usecases/graphql/helpers/location/base/classifications_parser.rb +2 -1
- data/lib/eco/api/usecases/graphql/helpers/location/command/diff/as_update.rb +1 -0
- data/lib/eco/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 660f0a85b269e559ec99381ea4f621dcf8495b4c9465594824ad30da872c0e75
|
|
4
|
+
data.tar.gz: 3baf736b197cbf7784f116dacaa28f5d049acf8d62f15cdfe3669adcb3ae0b10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
13
|
+
- sftp errors
|
|
14
14
|
|
|
15
|
-
|
|
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
|
-
|
|
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|
|
|
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
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.
|
|
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-
|
|
11
|
+
date: 2024-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|