embulk-parser-jsonl 0.1.0 → 0.1.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: 973fe894b7704f01da0d8d0ba2b93eaa3804ea7d
4
- data.tar.gz: fe6ca73d3100595bd64e95e0e08269490671314e
3
+ metadata.gz: eed57dc612f9af90f47c438130dbe3469e086ed0
4
+ data.tar.gz: 7c2bd81c5b583eae4ed38a7afbfdd06fa5cb99bc
5
5
  SHA512:
6
- metadata.gz: 74ad34c4f29980e75f36ac88b9160fd784a975a83b906d6d5c30738edab617211c0653f22d0a9c01ad533bbcc92394b3ceccad20dcc8805b1627298695b5d6ac
7
- data.tar.gz: dd611c8bff080d4ca1c61a8c071a5baeb2d982b89b2812457af67f9ecaacd5c3e17b42c230356087c26ed53ecb51a7a0728a1fde14c67a441974483a53fcd58b
6
+ metadata.gz: b0a751469cdc1bb4ac979e898dd2a83b7cf9110d729fbc6a65bdd37a4215cd06e88eb64f345b2fd0d4e0bb99b7d49822db7b83f0f8a658062507a49b06e7bca4
7
+ data.tar.gz: 2da25aefb298cb41351f0201055797a56efaf77be11781a8daa2eff08d0c910492cb2bf2448bb63306e137ab74b347e335c860473b696fe5427e7e8b78fba8cc
@@ -1,3 +1,7 @@
1
+ ## 0.1.1 - 2016-03-17
2
+
3
+ [fix bug] Avoid org.embulk.spi.json.JsonParseException: Unable to parse empty string [#5](https://github.com/shun0102/embulk-parser-jsonl/pull/5)
4
+
1
5
  ## 0.1.0 - 2016-02-22
2
6
 
3
7
  Upgrade Embulk v0.8 and support Json type in Java [#3](https://github.com/shun0102/embulk-parser-jsonl/pull/3)
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.0"
16
+ version = "0.1.1"
17
17
 
18
18
  compileJava.options.encoding = 'UTF-8' // source encoding
19
19
  sourceCompatibility = 1.7
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-parser-jsonl"
4
- spec.version = "0.1.0"
4
+ spec.version = "0.1.1"
5
5
  spec.authors = ["Shunsuke Mikami"]
6
6
  spec.summary = "Jsonl parser plugin for Embulk"
7
7
  spec.description = "Parses Jsonl files read by other file input plugins."
@@ -18,6 +18,7 @@ import org.embulk.spi.PageOutput;
18
18
  import org.embulk.spi.ParserPlugin;
19
19
  import org.embulk.spi.Schema;
20
20
  import org.embulk.spi.SchemaConfig;
21
+ import org.embulk.spi.json.JsonParseException;
21
22
  import org.embulk.spi.json.JsonParser;
22
23
  import org.embulk.spi.time.TimestampParser;
23
24
  import org.embulk.spi.util.LineDecoder;
@@ -228,7 +229,7 @@ public class JsonlParserPlugin
228
229
 
229
230
  pageBuilder.addRecord();
230
231
  }
231
- catch (JsonRecordValidateException e) {
232
+ catch (JsonRecordValidateException | JsonParseException e) {
232
233
  if (stopOnInvalidRecord) {
233
234
  throw new DataException(String.format("Invalid record at line %d: %s", lineNumber, line), e);
234
235
  }
@@ -76,7 +76,8 @@ public class TestJsonlParserPlugin
76
76
  "10",
77
77
  "true",
78
78
  "false",
79
- "null"
79
+ "null",
80
+ " "
80
81
  ));
81
82
 
82
83
  List<Object[]> records = Pages.toObjects(schema.toSchema(), output.pages);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-parser-jsonl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shunsuke Mikami
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-22 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -62,7 +62,7 @@ files:
62
62
  - settings.gradle
63
63
  - src/main/java/org/embulk/parser/jsonl/JsonlParserPlugin.java
64
64
  - src/test/java/org/embulk/parser/jsonl/TestJsonlParserPlugin.java
65
- - classpath/embulk-parser-jsonl-0.1.0.jar
65
+ - classpath/embulk-parser-jsonl-0.1.1.jar
66
66
  homepage: https://github.com/shun0102/embulk-parser-jsonl
67
67
  licenses:
68
68
  - MIT