embulk-output-td 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/build.gradle +1 -1
- data/embulk-output-td.gemspec +1 -1
- data/src/main/java/org/embulk/output/td/TdOutputPlugin.java +17 -6
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ebf964f7fb872e56a7a39508835b3414aaeb600
|
4
|
+
data.tar.gz: 2c40c6bbfbff60c1bf390ced74ced48a726e1a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d425caf2d476d054c76bd0acff2760df98ad8a90c461b8fb4442d85a77572063740761713888f43608a779a61ad739ba52c4e231841226ba466b7f2b62181ab2
|
7
|
+
data.tar.gz: 0f042e174cc191748954dd8b8e63e8a648f6db5d874b2b57a7df07b54bdc3aff3fbc05a8fa4a02599d15a11eb179338f0d840c568d99c6c776ca6b0b84cf904e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.4.2 - 2017-08-09
|
2
|
+
|
3
|
+
* [maintenance] Fix Embulk version check logic bug [#79](https://github.com/treasure-data/embulk-output-td/pull/79)
|
4
|
+
|
1
5
|
## 0.4.1 - 2017-08-08
|
2
6
|
|
3
7
|
* [maintenance] Upgrade gradle 3.2.1 [#77](https://github.com/treasure-data/embulk-output-td/pull/77)
|
data/build.gradle
CHANGED
data/embulk-output-td.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
Gem::Specification.new do |spec|
|
3
3
|
spec.name = "embulk-output-td"
|
4
|
-
spec.version = "0.4.
|
4
|
+
spec.version = "0.4.2"
|
5
5
|
spec.authors = ["Muga Nishizawa"]
|
6
6
|
spec.summary = %[TreasureData output plugin for Embulk]
|
7
7
|
spec.description = %[TreasureData output plugin is an Embulk plugin that loads records to TreasureData read by any input plugins. Search the input plugins by 'embulk-output' keyword.]
|
@@ -819,15 +819,26 @@ public class TdOutputPlugin
|
|
819
819
|
{
|
820
820
|
// Embulk v0.8.21 and lower version uses old Jackson and doesn't works with this plugin
|
821
821
|
// https://github.com/embulk/embulk/pull/615
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
822
|
+
boolean isValidVersion = true;
|
823
|
+
try {
|
824
|
+
// Embulk v0.8.18 or lower version doesn't have class org.embulk.EmbulkVersion
|
825
|
+
Class.forName("org.embulk.EmbulkVersion");
|
826
|
+
String[] versionNumber = EmbulkVersion.VERSION.split("-"); // to split e.g. "0.8.26-SNAPSHOT" or "0.8.30-ALPHA1"
|
827
|
+
if (versionNumber[0] != null) {
|
828
|
+
String[] versions = versionNumber[0].split("\\.");
|
829
|
+
if (versions.length == 3) {
|
830
|
+
if (Integer.valueOf(versions[1]) <= 8 && Integer.valueOf(versions[2]) < 22) {
|
831
|
+
isValidVersion = false;
|
832
|
+
}
|
828
833
|
}
|
829
834
|
}
|
830
835
|
}
|
836
|
+
catch (ClassNotFoundException ex) {
|
837
|
+
isValidVersion = false;
|
838
|
+
}
|
839
|
+
if (!isValidVersion) {
|
840
|
+
throw new ConfigException("embulk-output-td v0.4.x+ only supports Embulk v0.8.22 or higher versions");
|
841
|
+
}
|
831
842
|
}
|
832
843
|
|
833
844
|
@VisibleForTesting
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-output-td
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Muga Nishizawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
|
14
|
+
name: bundler
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ~>
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '1.0'
|
19
|
-
|
20
|
-
prerelease: false
|
21
|
-
type: :development
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirement: !ruby/object:Gem::Requirement
|
23
21
|
requirements:
|
24
22
|
- - ~>
|
25
23
|
- !ruby/object:Gem::Version
|
26
24
|
version: '1.0'
|
25
|
+
prerelease: false
|
26
|
+
type: :development
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
|
28
|
+
name: rake
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '10.0'
|
33
|
-
|
34
|
-
prerelease: false
|
35
|
-
type: :development
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
37
35
|
requirements:
|
38
36
|
- - '>='
|
39
37
|
- !ruby/object:Gem::Version
|
40
38
|
version: '10.0'
|
39
|
+
prerelease: false
|
40
|
+
type: :development
|
41
41
|
description: TreasureData output plugin is an Embulk plugin that loads records to TreasureData read by any input plugins. Search the input plugins by 'embulk-output' keyword.
|
42
42
|
email:
|
43
43
|
- muga.nishizawa@gmail.com
|
@@ -82,7 +82,7 @@ files:
|
|
82
82
|
- src/test/java/org/embulk/output/td/TestTdOutputPlugin.java
|
83
83
|
- src/test/java/org/embulk/output/td/TestTimeValueGenerator.java
|
84
84
|
- src/test/java/org/embulk/output/td/writer/TestFieldWriterSet.java
|
85
|
-
- classpath/embulk-output-td-0.4.
|
85
|
+
- classpath/embulk-output-td-0.4.2.jar
|
86
86
|
- classpath/hamcrest-core-1.1.jar
|
87
87
|
- classpath/jackson-datatype-json-org-2.6.7.jar
|
88
88
|
- classpath/jetty-client-9.2.22.v20170606.jar
|