embulk-input-s3 0.1.6 → 0.1.7

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: 06c02be327f1734a2c41df71905dd683b9f738b5
4
- data.tar.gz: 9fd23ed14e6ba75160a2a466f2c3a6bbd872dc1e
3
+ metadata.gz: cd67a9aea3d1352358739b2c6917f3204301443e
4
+ data.tar.gz: b143676db2502a2e39d7cb430bd4bf8f67933a5b
5
5
  SHA512:
6
- metadata.gz: 20875da7b628dbe9a4edccee8c6fabb0399d56c555516850c2874aa9d9ae18db1e4212e3009b1d83bc9492c99e0b4f3ca79752a574ee5a92c55fc442188c9085
7
- data.tar.gz: 6ae95c49d22caf8e34b9e468c4c6f11473584ffccf3bfb4d63d07e55b5b56a416475754d94d41b515ccc2efe30c76bc59cff1288d686e35968edcf17c5a5ea41
6
+ metadata.gz: 08b84503dda64c6d4e3765d66a368070d47bf1214d96ac9f5ff77478cc888782c799fb193a0925ce508b8b0867ead0e2bde4185db2f92eb0433807c400cd18d6
7
+ data.tar.gz: b6541d55d9e4b7317267b3f57eaed9795c0b1ff7591f4de240890e2b5f0580575b39461e066fbf85bef5e894e54c201641721195899b9246f50f79756e703239
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.1.7 - 2015-03-27
2
+
3
+ * Keep last_path in case of no input files
4
+
1
5
  Release 0.1.6 - 2015-03-27
2
6
 
3
7
  * Fixed error when there are no input files
data/build.gradle CHANGED
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.6"
16
+ version = "0.1.7"
17
17
 
18
18
  dependencies {
19
19
  compile "org.embulk:embulk-core:0.5.3"
@@ -102,7 +102,12 @@ public class S3FileInputPlugin
102
102
  ConfigDiff configDiff = Exec.newConfigDiff();
103
103
 
104
104
  // last_path
105
- if (!task.getFiles().isEmpty()) {
105
+ if (task.getFiles().isEmpty()) {
106
+ // keep the last value
107
+ if (task.getLastPath().isPresent()) {
108
+ configDiff.set("last_path", task.getLastPath().get());
109
+ }
110
+ } else {
106
111
  List<String> files = new ArrayList<String>(task.getFiles());
107
112
  Collections.sort(files);
108
113
  configDiff.set("last_path", files.get(files.size() - 1));
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
@@ -63,7 +63,7 @@ files:
63
63
  - classpath/aws-java-sdk-s3-1.9.22.jar
64
64
  - classpath/commons-codec-1.6.jar
65
65
  - classpath/commons-logging-1.1.3.jar
66
- - classpath/embulk-input-s3-0.1.6.jar
66
+ - classpath/embulk-input-s3-0.1.7.jar
67
67
  - classpath/httpclient-4.3.4.jar
68
68
  - classpath/httpcore-4.3.2.jar
69
69
  homepage: https://github.com/embulk/embulk-input-s3