embulk-input-s3 0.2.5 → 0.2.6

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: 857c5f811620e1273a6fc5ec69a4eeefb658f1b0
4
- data.tar.gz: deb852435fb0cee1d2db0391cd3a8d0f30255638
3
+ metadata.gz: ee2494b43bcc58768baa64772d07f73c521b87f4
4
+ data.tar.gz: e12a159f3ad9e6e3cf012bcdc2e779be3242580a
5
5
  SHA512:
6
- metadata.gz: f5dd533e7e7d5fd366268496118c110689bde80d4f5c98469eb9ff1be77734a168080a24f52d3415dcda158ce5cd1ace35c9025fc4b654663c9726f3994b9bc3
7
- data.tar.gz: 1d5cab1c9c166a6352dbab3a30e65d058740e3b1883bb0776fac7bc6b677b6fe2bc8e047dba6e006f75cae722e0416504e8d6f493c6466dd7d54be3e484c79a7
6
+ metadata.gz: 8cf67d08d7f4b11b0c4c35e2b15e2537e9bf984f3a9a77adc0ecd30222c958d493b28817c273045d8bcbfd99bde327ed79760e8fd5118f1dc8c466b93b6f74de
7
+ data.tar.gz: 36f4ee1d0bcddd46a5945865b9d2f2f41e997b562d15783b96f94b2389e3037acdc104ebe967108110550eeaed12ebf5a1a961c3826358f247c8b06f21fa1e0c
@@ -129,7 +129,7 @@ public class FileList
129
129
  return false;
130
130
  }
131
131
 
132
- if (!pathMatchPattern.matcher(path).matches()) {
132
+ if (!pathMatchPattern.matcher(path).find()) {
133
133
  return false;
134
134
  }
135
135
 
@@ -119,11 +119,22 @@ public class TestS3FileInputPlugin
119
119
  public void usePathMatchPattern()
120
120
  throws Exception
121
121
  {
122
- ConfigSource config = this.config.deepCopy().set("path_match_pattern", "/match/");
123
- ConfigDiff configDiff = runner.transaction(config, new Control(runner, output));
122
+ { // match pattern
123
+ ConfigSource config = this.config.deepCopy().set("path_match_pattern", "/sample_01");
124
+ ConfigDiff configDiff = runner.transaction(config, new Control(runner, output));
124
125
 
125
- assertNull(configDiff.get(String.class, "last_path"));
126
- assertEquals(0, getRecords(config, output).size());
126
+ assertEquals(EMBULK_S3_TEST_PATH_PREFIX + "/sample_01.csv", configDiff.get(String.class, "last_path"));
127
+ assertRecords(config, output);
128
+ }
129
+
130
+ output = new MockPageOutput();
131
+ { // not match pattern
132
+ ConfigSource config = this.config.deepCopy().set("path_match_pattern", "/match/");
133
+ ConfigDiff configDiff = runner.transaction(config, new Control(runner, output));
134
+
135
+ assertNull(configDiff.get(String.class, "last_path"));
136
+ assertEquals(0, getRecords(config, output).size());
137
+ }
127
138
  }
128
139
 
129
140
  static class Control
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-04 00:00:00.000000000 Z
11
+ date: 2015-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,7 +60,7 @@ files:
60
60
  - classpath/aws-java-sdk-kms-1.10.33.jar
61
61
  - classpath/aws-java-sdk-s3-1.10.33.jar
62
62
  - classpath/commons-codec-1.6.jar
63
- - classpath/embulk-input-s3-0.2.5.jar
63
+ - classpath/embulk-input-s3-0.2.6.jar
64
64
  - classpath/httpclient-4.3.6.jar
65
65
  - classpath/httpcore-4.3.3.jar
66
66
  - classpath/jcl-over-slf4j-1.7.12.jar