eco-helpers 3.2.9 → 3.2.11
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 +13 -1
- data/lib/eco/api/usecases/lib/files/sftp.rb +6 -1
- data/lib/eco/data/files/folder.rb +5 -1
- 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: 5831f19c9c5f01a132c28d27e543554f77f586aa7ea9c3d3387d2ca7ca83f72e
|
|
4
|
+
data.tar.gz: 184d888c3702368bde62baf9d8075788712fb59ff35ece1a7299a98b2773b05c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 414c7bc358e533cc09a28e98b196ceeeef018f083a0f851698328b85856ca12f2485f217b0c4ae54775fcf462dc7224882514472e04ab572601d3f1c1100c238
|
|
7
|
+
data.tar.gz: 0f131cf7c826c73b83ed12d6677d2989031a99e3008254bf15fc234e1e86077818f586ea9ac40793376f892c9be1a04ac0e2d64eca3432275bf6122405ad9dfb
|
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.2.
|
|
5
|
+
## [3.2.12] - 2025-12-xx
|
|
6
6
|
|
|
7
7
|
### Added
|
|
8
8
|
|
|
@@ -10,6 +10,18 @@ All notable changes to this project will be documented in this file.
|
|
|
10
10
|
|
|
11
11
|
### Fixed
|
|
12
12
|
|
|
13
|
+
## [3.2.11] - 2025-12-04
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- missing Files lib dependency
|
|
18
|
+
|
|
19
|
+
## [3.2.10] - 2025-12-01
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- Sftp download to ensure destination folder exists.
|
|
24
|
+
|
|
13
25
|
## [3.2.9] - 2025-10-16
|
|
14
26
|
|
|
15
27
|
### Added
|
|
@@ -49,6 +49,8 @@ module Eco::API::UseCases::Lib::Files
|
|
|
49
49
|
|
|
50
50
|
file_names = remote_files.map {|file| to_remote_path(file.name, subfolder: subfolder)}
|
|
51
51
|
|
|
52
|
+
FileUtils.mkdir_p(local_folder)
|
|
53
|
+
|
|
52
54
|
log(:info) {
|
|
53
55
|
msg = "Getting the following files into the local folder "
|
|
54
56
|
msg << "'#{local_folder || '.'}':\n"
|
|
@@ -170,7 +172,10 @@ module Eco::API::UseCases::Lib::Files
|
|
|
170
172
|
|
|
171
173
|
# @param subfolder [String] the subfolder.
|
|
172
174
|
def with_remote_files(subfolder: remote_subfolder, pattern: nil)
|
|
173
|
-
sftp.files(
|
|
175
|
+
sftp.files(
|
|
176
|
+
remote_folder(subfolder),
|
|
177
|
+
pattern: pattern
|
|
178
|
+
).each do |remote_file|
|
|
174
179
|
yield(remote_file) if block_given?
|
|
175
180
|
end
|
|
176
181
|
rescue ArgumentError
|
|
@@ -22,7 +22,11 @@ module Eco
|
|
|
22
22
|
def ensure_file_path!(filename)
|
|
23
23
|
return if File.exist?(filename)
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
ensure_folder!(File.dirname(filename))
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def ensure_folder!(path)
|
|
29
|
+
FileUtils.mkdir_p(path)
|
|
26
30
|
end
|
|
27
31
|
|
|
28
32
|
# @param pattern [String, Symbol] the `Dir` expression to match
|
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.2.
|
|
4
|
+
version: 3.2.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oscar Segura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: byebug
|