eco-helpers 2.0.65 → 2.0.66

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: 12817896e074323433bae515cb2c11beb1fa7ce43d4573bac9ae9eb043a38616
4
- data.tar.gz: 6fbe5a8354b431531e6cd6c671f4bf649853fb04389b435699cd109ab32b8afa
3
+ metadata.gz: 8e18955e051a52bf3b075eda58c3e4542cbaa47fad47a2c8be75531fc6ff7d60
4
+ data.tar.gz: f73bc2e84b1502c0d07d0930822b84ed1850f24023ee579bf893abc9c9d5a1be
5
5
  SHA512:
6
- metadata.gz: 2a1fd736fe6fc83108ab9c0499e7b10aa6133f7f0713e8edfeb395469937727deaef489dd067f88b863fa2c4d5e5a2e73e12bf721a100657cf987f85d9c4bd19
7
- data.tar.gz: 8efb36458b603116192d4191f567489d45bdae05d4819203453e7be64b04ddad9f24dabd2066e8e56df791f0322f693929d72ac192d947cc6d05d3bc80ad6b65
6
+ metadata.gz: 373f6a6a0895abd0894f2d394dbe2b9e25fa00fda3ad6a9d50fa638a7259e0326ee2e23619803807075f448a2c98984a7804e95c4c15fe9263e6acb510f0033b
7
+ data.tar.gz: 706933565f9eeafd437136ff9159bbe6feb201f07b5f3adf0775eb8c1dfe7069d6f3ca95d724b36fea75a9d355dd7679ded4e4693320455e177425c42b6c6154
data/CHANGELOG.md CHANGED
@@ -1,13 +1,20 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [2.0.66] - 2022-08-11
5
+
6
+ ### Added
7
+ ### Changed
8
+ ### Fixed
9
+ - `Eco::API::UseCases::DefaultCases::Samples::Sftp` manage exception when trying to access remote folder
10
+
4
11
  ## [2.0.65] - 2022-08-11
5
12
 
6
13
  ### Added
7
14
  ### Changed
8
15
  ### Fixed
9
16
  - Typo of a fix
10
-
17
+
11
18
  ## [2.0.64] - 2022-08-11
12
19
 
13
20
  ### Changed
@@ -36,8 +36,13 @@ class Eco::API::UseCases::DefaultCases::Samples::Sftp < Eco::API::Common::Loader
36
36
  end
37
37
 
38
38
  def with_remote_files
39
- sftp.files(remote_folder, pattern: file_pattern).each do |remote_file|
40
- yield(remote_file) if block_given?
39
+ begin
40
+ sftp.files(remote_folder, pattern: file_pattern).each do |remote_file|
41
+ yield(remote_file) if block_given?
42
+ end
43
+ rescue Net::SFTP::StatusException => e
44
+ logger.error("SFTP samplecase: There was an error trying to access the remote folder '#{remote_folder}'")
45
+ []
41
46
  end
42
47
  end
43
48
 
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = "2.0.65"
2
+ VERSION = "2.0.66"
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.0.65
4
+ version: 2.0.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura