webtranslateit-safe 0.4.9 → 0.4.10

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: 12f0e6be06240bcba9f44a010c0885c9d29459ae7299e91de82c62f13f2d37ec
4
- data.tar.gz: aa10fc13934f1ccfa3680a786998973152c317d411227efe9107b7dea0ec8312
3
+ metadata.gz: 1a8304cc611880266f79c56c9be3a4e5cea6275073c93889a4dfd599ad6cf851
4
+ data.tar.gz: 46a96b97260f9458625e433681562dd0997e4b7d79e19082dd52add75a9712f5
5
5
  SHA512:
6
- metadata.gz: 4c18458f0b32bc78fe6b98cc2fcbae409419da81d1dde870b8aae32a17256523a0f86d667ea5a714b5834cfbbd8653b71576e6b96d6976ae17197c17245609ad
7
- data.tar.gz: 36bd512b2581664fadbb55712936ee4b106f59d4daa93873306be81cbe925744c83f780eec0e224da283987cec779837620869158834407dd247fb7f27e08347
6
+ metadata.gz: 670a84fa71b7b52132670219d064e816bd68475c3a40bbc96fc9fcce9471ef073c8aea272800490c97517e1e8c01536f1db7c35badbe193169530fca32b01946
7
+ data.tar.gz: 75b72ba9cb7ef01b6e327187479e379db60feb60a0eceac7e96d34f9637206f01fed991c6e8f84f5ee0bfe376eb72d3165337be62dc14c417cde8fb8c92c4580
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.4.10 - 2023-07-06
2
+
3
+ * Fix retry strategy when using SCP.
1
4
  ## 0.4.9 - 2023-07-06
2
5
 
3
6
  * Use pigz instead of gzip when available on system to speed up compression time.
@@ -32,7 +32,7 @@ module WebTranslateIt
32
32
  puts "Sending #{@backup.path} to #{full_path}" if verbose?
33
33
  begin
34
34
  connexion.upload! @backup.path, full_path
35
- rescue IO::TimeoutError
35
+ rescue IO::TimeoutError, Net::SCP::Error
36
36
  puts 'Upload timed out, retrying'
37
37
  retries += 1
38
38
  if retries >= MAX_RETRIES
@@ -40,7 +40,7 @@ module WebTranslateIt
40
40
  else
41
41
  retry unless retries >= MAX_RETRIES
42
42
  end
43
- rescue Net::SFTP::StatusException, Net::SCP::Error
43
+ rescue Net::SFTP::StatusException
44
44
  Net::SFTP.start(host, user, opts) do |sftp|
45
45
  puts "Ensuring remote path (#{path}) exists" if verbose?
46
46
  # mkdir -p
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webtranslateit-safe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.9
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edouard Briere