embulk 0.8.17-java → 0.8.18-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/build.gradle +1 -1
- data/classpath/{embulk-cli-0.8.17.jar → embulk-cli-0.8.18.jar} +0 -0
- data/classpath/{embulk-core-0.8.17.jar → embulk-core-0.8.18.jar} +0 -0
- data/classpath/{embulk-standards-0.8.17.jar → embulk-standards-0.8.18.jar} +0 -0
- data/classpath/netty-buffer-4.0.44.Final.jar +0 -0
- data/classpath/netty-common-4.0.44.Final.jar +0 -0
- data/embulk-core/build.gradle +2 -2
- data/embulk-core/src/main/java/org/embulk/spi/json/JsonParser.java +1 -0
- data/embulk-docs/src/release/release-0.7.8.rst +1 -1
- data/embulk-docs/src/release/release-0.8.18.rst +27 -0
- data/embulk-docs/src/release.rst +1 -0
- data/embulk-standards/src/test/java/org/embulk/standards/guess/TestCsvGuessPlugin.java +9 -0
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column.csv +12 -0
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_guessed.yml +12 -0
- data/embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_seed.yml +1 -0
- data/lib/embulk/guess/schema_guess.rb +6 -5
- data/lib/embulk/guess_plugin.rb +1 -1
- data/lib/embulk/version.rb +1 -1
- metadata +11 -7
- data/classpath/netty-buffer-5.0.0.Alpha1.jar +0 -0
- data/classpath/netty-common-5.0.0.Alpha1.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d36e9ca66a386370910265a070608eea08890a7
|
4
|
+
data.tar.gz: 2b07320950266fc836bb08e801cb4ea325c24781
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea70fe0768119bd5b2e801868299c90d3925a13fcd637d5f72ad663889d0b27cd4efde7e99cc08be3bffaab1752a332f2972b81d45fdd9de4e0497eb87ef9c11
|
7
|
+
data.tar.gz: ec23e1279135ca1412f49fe6d294d02b1a88b47c36a35bf6b5441dbf0e31739d5c5ae9e93d472f550cdc2ae288d7a237088ef5f485ff50ca599c0adbd51c9152
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Embulk is a Java application. Please make sure that [Java](http://www.oracle.com
|
|
20
20
|
Following 4 commands install embulk to your home directory:
|
21
21
|
|
22
22
|
```sh
|
23
|
-
curl --create-dirs -o ~/.embulk/bin/embulk -L "
|
23
|
+
curl --create-dirs -o ~/.embulk/bin/embulk -L "https://dl.embulk.org/embulk-latest.jar"
|
24
24
|
chmod +x ~/.embulk/bin/embulk
|
25
25
|
echo 'export PATH="$HOME/.embulk/bin:$PATH"' >> ~/.bashrc
|
26
26
|
source ~/.bashrc
|
data/build.gradle
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/embulk-core/build.gradle
CHANGED
@@ -36,7 +36,7 @@ dependencies {
|
|
36
36
|
compile 'org.apache.bval:bval-jsr303:0.5'
|
37
37
|
compile 'io.airlift:slice:0.9'
|
38
38
|
compile 'joda-time:joda-time:2.9.2'
|
39
|
-
compile 'io.netty:netty-buffer:
|
39
|
+
compile 'io.netty:netty-buffer:4.0.44.Final'
|
40
40
|
compile 'org.fusesource.jansi:jansi:1.11'
|
41
41
|
compile 'org.msgpack:msgpack-core:0.8.11'
|
42
42
|
|
@@ -44,7 +44,7 @@ dependencies {
|
|
44
44
|
compile 'com.ibm.icu:icu4j:54.1.1'
|
45
45
|
|
46
46
|
gems 'rubygems:bundler:1.10.6'
|
47
|
-
gems 'rubygems:msgpack:
|
47
|
+
gems 'rubygems:msgpack:1.1.0'
|
48
48
|
gems 'rubygems:liquid:3.0.6'
|
49
49
|
}
|
50
50
|
|
@@ -4,7 +4,7 @@ Release 0.7.8
|
|
4
4
|
General Changes
|
5
5
|
------------------
|
6
6
|
|
7
|
-
* Added "mkbundle" subcommand. Its help
|
7
|
+
* Added "mkbundle" subcommand. Its help message shows how to use plugin bundles with examples.
|
8
8
|
* When a transaction throws an exception and cleanup code (close() method) also throws an exception, the exception of transaction was hidden. Now the exception of transaction is the primary error and exception of cleanup code is also included as a suppressed exception.
|
9
9
|
* CSV parser plugin doesn't show lines twice with "Unexpected extra character" error.
|
10
10
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Release 0.8.18
|
2
|
+
==================================
|
3
|
+
|
4
|
+
General Changes
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Fixed schema guess plugin and changed a condition to guess double type. [#554]
|
8
|
+
|
9
|
+
* Fixed guess plugin that doesn't not use last line in sample_lines for schema guess. [#551]
|
10
|
+
|
11
|
+
* Fixed Json parser plugin that enables to parse non numeric numbers as floating number values. [#548]
|
12
|
+
|
13
|
+
* Updated msgpack-ruby v1.1.0 (@hiroyuki-sato) [#539, #553]
|
14
|
+
|
15
|
+
* ChangeLog: https://github.com/msgpack/msgpack-ruby/blob/master/ChangeLog
|
16
|
+
|
17
|
+
* Downgraded netty-buffer 4.0.x for Embulk instead of 5.x. [#549]
|
18
|
+
|
19
|
+
* Minor fix:
|
20
|
+
|
21
|
+
* Fixed typos in v0.7.8 release note. (@yoshihara) [#552]
|
22
|
+
|
23
|
+
* Updated download link to be https. (@cosmok) [#544]
|
24
|
+
|
25
|
+
Release Date
|
26
|
+
------------------
|
27
|
+
2017-03-06
|
data/embulk-docs/src/release.rst
CHANGED
@@ -156,6 +156,15 @@ public class TestCsvGuessPlugin
|
|
156
156
|
"test_int_single_column_guessed.yml");
|
157
157
|
}
|
158
158
|
|
159
|
+
@Test
|
160
|
+
public void testDoubleSingleColumn()
|
161
|
+
throws Exception
|
162
|
+
{
|
163
|
+
assertGuessByResource(embulk,
|
164
|
+
"test_double_single_column_seed.yml", "test_double_single_column.csv",
|
165
|
+
"test_double_single_column_guessed.yml");
|
166
|
+
}
|
167
|
+
|
159
168
|
@Test
|
160
169
|
public void testStringSingleColumnWithHeader()
|
161
170
|
throws Exception
|
@@ -0,0 +1 @@
|
|
1
|
+
{}
|
@@ -62,11 +62,12 @@ module Embulk::Guess
|
|
62
62
|
return "long"
|
63
63
|
end
|
64
64
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
65
|
+
# Introduce a regular expression to make better suggestion to double type. It refers to Guava 21.0's regular
|
66
|
+
# expression in Doubles#fpPattern() but, there're difference as following:
|
67
|
+
# * It intentionaly rejects float values when they start with "0" like "001.0", "010.01". "0.1" is ok.
|
68
|
+
# * It doesn't support hexadecimal representation. It could be improved more later.
|
69
|
+
if str =~ /^[+-]?(NaN|Infinity|([1-9]\d*|0)(\.\d+)([eE][+-]?\d+)?[fFdD]?)$/
|
70
|
+
return "double"
|
70
71
|
end
|
71
72
|
|
72
73
|
if str.empty?
|
data/lib/embulk/guess_plugin.rb
CHANGED
@@ -114,7 +114,7 @@ module Embulk
|
|
114
114
|
sample_lines << line
|
115
115
|
end
|
116
116
|
unless sample.end_with?(parser_task.getNewline.getString)
|
117
|
-
sample_lines.pop
|
117
|
+
sample_lines.pop unless sample_lines.empty? # last line is partial
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
data/lib/embulk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.18
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,9 +148,9 @@ files:
|
|
148
148
|
- classpath/commons-beanutils-core-1.8.3.jar
|
149
149
|
- classpath/commons-compress-1.10.jar
|
150
150
|
- classpath/commons-lang3-3.1.jar
|
151
|
-
- classpath/embulk-cli-0.8.
|
152
|
-
- classpath/embulk-core-0.8.
|
153
|
-
- classpath/embulk-standards-0.8.
|
151
|
+
- classpath/embulk-cli-0.8.18.jar
|
152
|
+
- classpath/embulk-core-0.8.18.jar
|
153
|
+
- classpath/embulk-standards-0.8.18.jar
|
154
154
|
- classpath/guava-18.0.jar
|
155
155
|
- classpath/guice-4.0.jar
|
156
156
|
- classpath/guice-bootstrap-0.1.1.jar
|
@@ -167,8 +167,8 @@ files:
|
|
167
167
|
- classpath/logback-classic-1.1.3.jar
|
168
168
|
- classpath/logback-core-1.1.3.jar
|
169
169
|
- classpath/msgpack-core-0.8.11.jar
|
170
|
-
- classpath/netty-buffer-
|
171
|
-
- classpath/netty-common-
|
170
|
+
- classpath/netty-buffer-4.0.44.Final.jar
|
171
|
+
- classpath/netty-common-4.0.44.Final.jar
|
172
172
|
- classpath/slf4j-api-1.7.12.jar
|
173
173
|
- classpath/slice-0.9.jar
|
174
174
|
- classpath/snakeyaml-1.14.jar
|
@@ -472,6 +472,7 @@ files:
|
|
472
472
|
- embulk-docs/src/release/release-0.8.15.rst
|
473
473
|
- embulk-docs/src/release/release-0.8.16.rst
|
474
474
|
- embulk-docs/src/release/release-0.8.17.rst
|
475
|
+
- embulk-docs/src/release/release-0.8.18.rst
|
475
476
|
- embulk-docs/src/release/release-0.8.2.rst
|
476
477
|
- embulk-docs/src/release/release-0.8.3.rst
|
477
478
|
- embulk-docs/src/release/release-0.8.4.rst
|
@@ -545,6 +546,9 @@ files:
|
|
545
546
|
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape.csv
|
546
547
|
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape_guessed.yml
|
547
548
|
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_backslash_escape_seed.yml
|
549
|
+
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column.csv
|
550
|
+
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_guessed.yml
|
551
|
+
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_double_single_column_seed.yml
|
548
552
|
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column.csv
|
549
553
|
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_guessed.yml
|
550
554
|
- embulk-standards/src/test/resources/org/embulk/standards/guess/csv/test/test_int_single_column_seed.yml
|
Binary file
|
Binary file
|