embulk-filter-query_string 0.2.0 → 0.2.1

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: 7259a5d22d2dcfe756e90863aa86e83ee47031cb
4
- data.tar.gz: 0b77859eabb7effbc287629bdc0c0848317a1c81
3
+ metadata.gz: d3d80e90ca163125bdeb183c9a4bc147b7d4a372
4
+ data.tar.gz: 203267dbdf6abc3f685464a6ebe6fb3680b321d7
5
5
  SHA512:
6
- metadata.gz: bbc77a119f5acdd290d6cc4ff8c82d1db7504ff4802bcfba93aa607713e027a23eda94ea12e029efb7895cd432a5accf5b57c8803401d2b9faba025ee5cc802d
7
- data.tar.gz: 8f4eaa31cc2edfc262ebf22a9b920455a2327585afb542e1821c444e8b7c844d58a2f817d7fd3beefc83eda213ded9da9b81158e5caea08204a5eadb375a053d
6
+ metadata.gz: e584cfcc9afd3740bef5ccd9a73d8b7c7e84f2ce0abc7469f81b288feee515eb3e1ce385e2993eb2c47b2c0bd2be7358dec7bea091dab29d7e212f15d1ffd684
7
+ data.tar.gz: 9a4cb607007c94a376c13c933d4f1b2fc93e16dc27138ea120e94863dd5fb13f01a9d3206b3ef792fa95b83100e5c48acbbc3deb00ad868de662d43ad7fa8163
@@ -14,7 +14,7 @@ configurations {
14
14
  provided
15
15
  }
16
16
 
17
- version = "0.2.0"
17
+ version = "0.2.1"
18
18
 
19
19
  sourceCompatibility = 1.7
20
20
  targetCompatibility = 1.7
@@ -46,7 +46,7 @@ import java.util.regex.Pattern;
46
46
  public class QueryStringFilterPlugin
47
47
  implements FilterPlugin
48
48
  {
49
- public static final Pattern QUERY_STRING_PATTERN = Pattern.compile("[^\\?]*\\?([a-z0-9=&;*._%+-]+)", Pattern.CASE_INSENSITIVE);
49
+ public static final Pattern QUERY_STRING_PATTERN = Pattern.compile("[^\\?]*\\?([a-z0-9=&;*._%+-/():]+)", Pattern.CASE_INSENSITIVE);
50
50
 
51
51
  @Override
52
52
  public void transaction(ConfigSource config, Schema inputSchema, FilterPlugin.Control control)
@@ -90,7 +90,7 @@ public class TestQueryStringFilterPlugin
90
90
  .add("qs", STRING)
91
91
  .add("qa", STRING)
92
92
  .build();
93
- testQueryString(configSource, inputSchema, "/path?q1=1&q2=2#fragment", new AssertionWithPage()
93
+ testQueryString(configSource, inputSchema, "/path?q1=1/(:)/&q2=2#fragment", new AssertionWithPage()
94
94
  {
95
95
  @Override
96
96
  public void run(PageReader pageReader, TestPageBuilderReader.MockPageOutput pageOutput)
@@ -99,7 +99,7 @@ public class TestQueryStringFilterPlugin
99
99
  pageReader.setPage(page);
100
100
 
101
101
  assertThat(pageReader.getString(0), is("before"));
102
- assertThat(pageReader.getString(1), is("1"));
102
+ assertThat(pageReader.getString(1), is("1/(:)/"));
103
103
  assertEquals(2L, pageReader.getLong(2));
104
104
  assertThat(pageReader.getString(3), is("after"));
105
105
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-query_string
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minnano Wedding Co., Ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-12 00:00:00.000000000 Z
11
+ date: 2018-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -64,7 +64,7 @@ files:
64
64
  - src/test/resources/testTransaction.yml
65
65
  - classpath/commons-codec-1.9.jar
66
66
  - classpath/commons-logging-1.2.jar
67
- - classpath/embulk-filter-query_string-0.2.0.jar
67
+ - classpath/embulk-filter-query_string-0.2.1.jar
68
68
  - classpath/fastutil-6.2.2.jar
69
69
  - classpath/httpclient-4.5.1.jar
70
70
  - classpath/httpcore-4.4.3.jar