embulk-input-sftp 0.3.1 → 0.3.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f3ddd57475c5beda576282daae1726c1f13b2a0
4
- data.tar.gz: 1adb9c2af283084d468d06b72313f33469c0bcb9
3
+ metadata.gz: 2179faafdd2418d9d64a103fbb6dda534ad3a7d8
4
+ data.tar.gz: 0c8dbd585515d4cbf1972e057c9dfc62971cc66c
5
5
  SHA512:
6
- metadata.gz: fc79bbab7d791f8039f792386f510c8afc066e54b167ce994cc1cac4d31184ca1690d19c0bbdeab3434681607f2037203543fa22a303ed5b77276019b72c2016
7
- data.tar.gz: 8a36b97bb74771e310a37f9e3f70c70db0f5f3ef5ee71fd52af9791588fa4961d8d090fb6e9ee83d8f00aa7acaaf6e00d20071bbf9e5494aa947b04da80e4235
6
+ metadata.gz: a8a108b1bd53b2a05e6ce4bc9749d5e513ab8e6082acf090754c40f39d5d4a236320602f65eb291f83ae2d014887ca9a1513daf32b27f1eb3dbfbbd66be23814
7
+ data.tar.gz: 4d687df973a09fc3deaa9cf49e5948b09c5e29d7cfbc7f4e561f8ae207ebfec7d103eb7da5af924eefc02c84fb196477ee961e3c3305b4638637199dc976d9a6
@@ -1,3 +1,6 @@
1
+ ## 0.3.2 - 2019-07-25
2
+ * [maintenance] Do not retry when "Connection refused" is returned and throw ConfigException [#40](https://github.com/embulk/embulk-input-sftp/pull/40)
3
+
1
4
  ## 0.3.1 - 2019-01-08
2
5
  * [maintenance] Hide password shown in log when parse failure happens [#39](https://github.com/embulk/embulk-input-sftp/pull/39)
3
6
 
@@ -16,7 +16,7 @@ configurations {
16
16
  }
17
17
 
18
18
  group = "org.embulk.input.sftp"
19
- version = "0.3.1"
19
+ version = "0.3.2"
20
20
 
21
21
  sourceCompatibility = 1.8
22
22
  targetCompatibility = 1.8
@@ -266,8 +266,10 @@ public class SftpFileInput
266
266
  {
267
267
  if (exception.getCause() != null && exception.getCause().getCause() != null) {
268
268
  Throwable cause = exception.getCause().getCause();
269
- if (cause.getMessage() != null && cause.getMessage().contains("Auth fail")) {
270
- throw new ConfigException(exception);
269
+ if (cause.getMessage() != null) {
270
+ if (cause.getMessage().contains("Auth fail") || cause.getMessage().contains("Connection refused")) {
271
+ throw new ConfigException(exception);
272
+ }
271
273
  }
272
274
  }
273
275
  if (exception instanceof ConfigException) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-sftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Akama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-08 00:00:00.000000000 Z
11
+ date: 2019-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -70,7 +70,7 @@ files:
70
70
  - src/test/resources/sample_01.csv
71
71
  - src/test/resources/sample_02.csv
72
72
  - classpath/commons-logging-1.2.jar
73
- - classpath/embulk-input-sftp-0.3.1.jar
73
+ - classpath/embulk-input-sftp-0.3.2.jar
74
74
  - classpath/commons-vfs2-2.2.jar
75
75
  - classpath/commons-io-2.6.jar
76
76
  - classpath/jsch-0.1.55.jar