embulk-filter-query_string 0.1.1 → 0.1.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: d3af78f6e9fa1f55d7a8817b3439b2465b958778
4
- data.tar.gz: 18c445e7f9a77f1031fb8208327cf87505c9016c
3
+ metadata.gz: 3221e8d17d5faad744c2fdc722adfccb54f871c5
4
+ data.tar.gz: a9c510e70a6ef266615b118690aa9c821dae488e
5
5
  SHA512:
6
- metadata.gz: 4b971c444060d50586dfdbe435ec1c4b21ed654331a15869c9f1365f7bba4e69470342af9202a2d9e4873fd093f632077f611483df3a3a540cee0470312265c9
7
- data.tar.gz: eac337937754d47bd4e6ed5e154e65427d6718eae9fdefa91bfc61157894e431137ef5d2ce1e4efff20e7638ac394bc47bf9d3a542dc59af0914ae50928a7b19
6
+ metadata.gz: 89607dde6b53d17258c9c6ce587f1b1e3604608c1f1d8a5c9de5074595a2ca8e8053a780b489bfb219f126fa91c9727f5985395fb81a812e6e395835891ca6d2
7
+ data.tar.gz: e0c5d54b140e0518f7ee3f1d85c41403ad144cb10dfe888a0581be5e7cb9c401d9a6e81299c919023a1938cd31f2192fe14a7cc9f9084fc7ddb257bd25ea0432
data/build.gradle CHANGED
@@ -79,7 +79,7 @@ task gemspec {
79
79
  gemspecFile.write($/
80
80
  Gem::Specification.new do |spec|
81
81
  spec.name = "embulk-filter-query_string"
82
- spec.version = "0.1.1"
82
+ spec.version = "0.1.2"
83
83
  spec.authors = ["Minnano Wedding Co., Ltd."]
84
84
  spec.summary = %[Query String filter plugin for Embulk]
85
85
  spec.description = %[The query string filter plugin parses the column contents as query string and insert columns from that field.]
@@ -172,10 +172,15 @@ public class QueryStringFilterPlugin
172
172
 
173
173
  for (Column inputColumn : inputSchema.getColumns()) {
174
174
  if (columnName.equals(inputColumn.getName())) {
175
- String path = reader.getString(inputColumn);
175
+ String path = null;
176
+ int pos = -1;
176
177
 
177
- int pos = path.indexOf('?');
178
- if (pos > 0) {
178
+ if (!reader.isNull(inputColumn)) {
179
+ path = reader.getString(inputColumn);
180
+ pos = path.indexOf('?');
181
+ }
182
+
183
+ if (path != null && pos > 0) {
179
184
  String queryString = path.substring(pos + 1);
180
185
 
181
186
  Map<String, Object> map = new HashMap<>();
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.1.1
4
+ version: 0.1.2
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-03-10 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement