embulk-input-sftp 0.2.1 → 0.2.2

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
  SHA1:
3
- metadata.gz: 2437f248e08389b72d6954dbb9da3dd6db93964a
4
- data.tar.gz: cb24da548a14d3b986ebb21b1f114f4d69bf2962
3
+ metadata.gz: 9243a4ab23b4823f7a552d55b71ba5c7d7021034
4
+ data.tar.gz: 71d13606373aaf491af07e9a755ff83d869194bb
5
5
  SHA512:
6
- metadata.gz: 240d0bf66262aabc11f90fa0f53c8e83b11253a2cee7cf384d739804d7dfa074ffe3986f703f1d2fed803bc45c69b1d796ec37c736c6d2fd738e153e4710adf6
7
- data.tar.gz: 5ae478d9b5d8ce6429c56579b263d84f25214e1f38442e13494e3d6e49216fea3efa9c6eaa7d0754020583eee80d749a8031b2b7912aabab6d8e8c7332014568
6
+ metadata.gz: f4afb3afd18af8ab8282c4f7fdf564f12e2547c3079d913261d5840da296124b994b9d24c5ebf83129d04aa69e99b2ac0b919dfb270a42cb820caa8ddaedd57d
7
+ data.tar.gz: 1154960e725a8e3a6a85ee96384c850be179ce91c7c41b742894aeeab74e180bed2f4fafa73a131a5e70a35feef546f9fe32eac34383ab042a86ec5db3bb8cd4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.2 - 2016-09-26
2
+
3
+ * [maintenance] Fix bug Use second as timetout setting instead of milli second [#18](https://github.com/embulk/embulk-input-sftp/pull/18)
4
+
1
5
  ## 0.2.1 - 2016-09-12
2
6
  * [maintenance] Fix last_path generation failure when password contains special chars [#15](https://github.com/sakama/embulk-input-sftp/pull/15)
3
7
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ Reads files stored on remote server using SFTP
15
15
  - **port**: (string, default: `22`)
16
16
  - **user**: (string, required)
17
17
  - **password**: (string, default: `null`)
18
- - **secret_key_file**: (string, default: `null`)
18
+ - **secret_key_file**: (string, default: `null`). **OpenSSH** format is required.
19
19
  - **secret_key_passphrase**: (string, default: `""`)
20
20
  - **user_directory_is_root**: (boolean, default: `true`)
21
21
  - **timeout**: sftp connection timeout seconds (integer, default: `600`)
data/build.gradle CHANGED
@@ -14,7 +14,7 @@ configurations {
14
14
  provided
15
15
  }
16
16
 
17
- version = "0.2.1"
17
+ version = "0.2.2"
18
18
 
19
19
  sourceCompatibility = 1.7
20
20
  targetCompatibility = 1.7
@@ -88,7 +88,7 @@ public class SftpFileInput
88
88
  try {
89
89
  SftpFileSystemConfigBuilder builder = SftpFileSystemConfigBuilder.getInstance();
90
90
  builder.setUserDirIsRoot(fsOptions, task.getUserDirIsRoot());
91
- builder.setTimeout(fsOptions, task.getSftpConnectionTimeout());
91
+ builder.setTimeout(fsOptions, task.getSftpConnectionTimeout() * 1000);
92
92
  builder.setStrictHostKeyChecking(fsOptions, "no");
93
93
 
94
94
  if (task.getSecretKeyFile().isPresent()) {
@@ -213,7 +213,7 @@ public class SftpFileInput
213
213
  });
214
214
  }
215
215
  catch (RetryGiveupException ex) {
216
- throw new ConfigException("Failed to generate last_path due to FTP connection failure");
216
+ throw new ConfigException("Failed to generate last_path due to SFTP connection failure");
217
217
  }
218
218
  catch (InterruptedException ex) {
219
219
  Throwables.propagate(ex);
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.2.1
4
+ version: 0.2.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: 2016-09-12 00:00:00.000000000 Z
11
+ date: 2016-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -72,7 +72,7 @@ files:
72
72
  - classpath/commons-io-1.3.2.jar
73
73
  - classpath/commons-logging-1.2.jar
74
74
  - classpath/commons-vfs2-2.1.jar
75
- - classpath/embulk-input-sftp-0.2.1.jar
75
+ - classpath/embulk-input-sftp-0.2.2.jar
76
76
  - classpath/jsch-0.1.53.jar
77
77
  homepage: https://github.com/embulk/embulk-input-sftp
78
78
  licenses:
Binary file