embulk-input-sftp 0.2.7 → 0.2.8

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: 8b8b4aab224c69ba312142fbe2670aa8c54d7554
4
- data.tar.gz: 1273126ed13973cd72c0ddf60d6eb1bcfe010344
3
+ metadata.gz: 5e082ddfd3a77e9619752b28ddf6ab0cc6046b2b
4
+ data.tar.gz: 6a419208239b6c68bfee14581da320c8774ebb8f
5
5
  SHA512:
6
- metadata.gz: 155d7ce767e29ef9dbba5fd310d9b8e08d2e9f3441989f1099c8cf26aaec078ba2a36bede8a489c28e7d0313c4dc38efa921c9f955488a29f3d659c7206cf9e9
7
- data.tar.gz: bb1a68a8c84189a69d01f17f2b3f6e812eff60abd66a3781e063065ebda7a8aa28d414612347284fae1f66fb25c94c9828aca349c6f2dde31e245857033feacd
6
+ metadata.gz: 1748b5a9b2a12209d18ec387baa5486792ded7b6dd0348f9c2b96dd5caa85be4c5c84158d0b94a572ff97844d1583ec80eafcc4907ac97089b3d50b9f0606956
7
+ data.tar.gz: c25afa29d5cbc857bd337686cc8052768685623a749e72b7098c274f6c4584211003bbce33afdd048e38b671997920ac4ec179b47660e5947570156ec2f0a8a9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.2.8 - 2018-03-12
2
+ * [maintenance] Fix SFTP non existent last_path [#28](https://github.com/sakama/embulk-input-sftp/pull/28)
3
+
1
4
  ## 0.2.7 - 2018-03-02
2
5
  * [maintenance] Fix SFTP connection remaining problem [#27](https://github.com/sakama/embulk-input-sftp/pull/27)
3
6
 
data/build.gradle CHANGED
@@ -16,7 +16,7 @@ configurations {
16
16
  }
17
17
 
18
18
  group = "org.embulk.input.sftp"
19
- version = "0.2.7"
19
+ version = "0.2.8"
20
20
 
21
21
  sourceCompatibility = 1.7
22
22
  targetCompatibility = 1.7
@@ -196,7 +196,12 @@ public class SftpFileInput
196
196
  FileSystemOptions fsOptions = initializeFsOptions(task);
197
197
 
198
198
  if (task.getLastPath().isPresent() && !task.getLastPath().get().isEmpty()) {
199
- lastKey = manager.resolveFile(getSftpFileUri(task, task.getLastPath().get()), fsOptions).toString();
199
+ final FileObject remotedLastPath = manager.resolveFile(getSftpFileUri(task, task.getLastPath().get()), fsOptions);
200
+ if(remotedLastPath.exists()) {
201
+ lastKey = remotedLastPath.toString();
202
+ } else {
203
+ log.warn("Failed to load last_path due to non-existence in sftp, skip using last_path");
204
+ }
200
205
  }
201
206
 
202
207
  FileObject files = manager.resolveFile(getSftpFileUri(task, task.getPathPrefix()), fsOptions);
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.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi Akama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-01 00:00:00.000000000 Z
11
+ date: 2018-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -69,10 +69,10 @@ files:
69
69
  - src/test/resources/id_rsa.pub
70
70
  - src/test/resources/sample_01.csv
71
71
  - src/test/resources/sample_02.csv
72
- - classpath/commons-io-2.6.jar
73
72
  - classpath/commons-logging-1.2.jar
74
73
  - classpath/commons-vfs2-2.2.jar
75
- - classpath/embulk-input-sftp-0.2.7.jar
74
+ - classpath/commons-io-2.6.jar
75
+ - classpath/embulk-input-sftp-0.2.8.jar
76
76
  - classpath/jsch-0.1.54.jar
77
77
  homepage: https://github.com/embulk/embulk-input-sftp
78
78
  licenses: