embulk 0.8.30-java → 0.8.31-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/build.gradle +1 -1
- data/embulk-cli/src/main/java/org/embulk/cli/Main.java +2 -1
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampFormatter.java +15 -10
- data/embulk-core/src/main/java/org/embulk/spi/time/TimestampParser.java +21 -15
- data/embulk-docs/src/release.rst +1 -0
- data/embulk-docs/src/release/release-0.8.31.rst +12 -0
- data/lib/embulk/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b75f4f5fd6e21885fe49a8af1468a43ee0989785
|
4
|
+
data.tar.gz: 2c12d170b838e916a67e6e79ae9d85b985c77f4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1aafd34ed37453dd11673facebc87ed6e32127ab93bbcde55fe16e8469c51ac968098d058616ad78a536227b4c4fb1eb1598c3c85c4d72e31133fb0f84449453
|
7
|
+
data.tar.gz: 0e4b5f0b63b1dd34d357b1fa6ea585a4be3ee74c6e9ed428d383de8100b036a789a326bd3b626306220c11b7fb9292c0cfae56d11e14626cb34f493a53e5e78c
|
data/build.gradle
CHANGED
@@ -25,6 +25,7 @@ public class Main
|
|
25
25
|
}
|
26
26
|
|
27
27
|
final EmbulkRun run = new EmbulkRun(EmbulkVersion.VERSION);
|
28
|
-
run.run(Collections.unmodifiableList(embulkArgs), Collections.unmodifiableList(jrubyOptions));
|
28
|
+
final int error = run.run(Collections.unmodifiableList(embulkArgs), Collections.unmodifiableList(jrubyOptions));
|
29
|
+
System.exit(error);
|
29
30
|
}
|
30
31
|
}
|
@@ -61,11 +61,12 @@ public class TimestampFormatter
|
|
61
61
|
this(format, task.getTimeZone());
|
62
62
|
// NOTE: Its deprecation is not actually from ScriptingContainer, though.
|
63
63
|
// TODO: Notify users about deprecated calls through the notification reporter.
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
64
|
+
if (!deprecationWarned) {
|
65
|
+
System.err.println("[WARN] Plugin uses deprecated constructor of org.embulk.spi.time.TimestampFormatter.");
|
66
|
+
System.err.println("[WARN] Report plugins in your config at: https://github.com/embulk/embulk/issues/745");
|
67
|
+
// The |deprecationWarned| flag is used only for warning messages.
|
68
|
+
// Even in case of race conditions, messages are just duplicated -- should be acceptable.
|
69
|
+
deprecationWarned = true;
|
69
70
|
}
|
70
71
|
}
|
71
72
|
|
@@ -85,11 +86,12 @@ public class TimestampFormatter
|
|
85
86
|
{
|
86
87
|
this(format, timeZone);
|
87
88
|
// TODO: Notify users about deprecated calls through the notification reporter.
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
89
|
+
if (!deprecationWarned) {
|
90
|
+
System.err.println("[WARN] Plugin uses deprecated constructor of org.embulk.spi.time.TimestampFormatter.");
|
91
|
+
System.err.println("[WARN] Report plugins in your config at: https://github.com/embulk/embulk/issues/745");
|
92
|
+
// The |deprecationWarned| flag is used only for warning messages.
|
93
|
+
// Even in case of race conditions, messages are just duplicated -- should be acceptable.
|
94
|
+
deprecationWarned = true;
|
93
95
|
}
|
94
96
|
}
|
95
97
|
|
@@ -117,4 +119,7 @@ public class TimestampFormatter
|
|
117
119
|
dateFormat.setNSec(value.getNano());
|
118
120
|
return dateFormat.format(null);
|
119
121
|
}
|
122
|
+
|
123
|
+
// TODO: Remove this once deprecated constructors are finally removed.
|
124
|
+
private static boolean deprecationWarned = false;
|
120
125
|
}
|
@@ -82,11 +82,12 @@ public class TimestampParser
|
|
82
82
|
this(format, task.getDefaultTimeZone());
|
83
83
|
// NOTE: Its deprecation is not actually from ScriptingContainer, though.
|
84
84
|
// TODO: Notify users about deprecated calls through the notification reporter.
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
85
|
+
if (!deprecationWarned) {
|
86
|
+
System.err.println("[WARN] Plugin uses deprecated constructor of org.embulk.spi.time.TimestampParser.");
|
87
|
+
System.err.println("[WARN] Report plugins in your config at: https://github.com/embulk/embulk/issues/745");
|
88
|
+
// The |deprecationWarned| flag is used only for warning messages.
|
89
|
+
// Even in case of race conditions, messages are just duplicated -- should be acceptable.
|
90
|
+
deprecationWarned = true;
|
90
91
|
}
|
91
92
|
}
|
92
93
|
|
@@ -110,11 +111,12 @@ public class TimestampParser
|
|
110
111
|
{
|
111
112
|
this(format, defaultTimeZone);
|
112
113
|
// TODO: Notify users about deprecated calls through the notification reporter.
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
114
|
+
if (!deprecationWarned) {
|
115
|
+
System.err.println("[WARN] Plugin uses deprecated constructor of org.embulk.spi.time.TimestampParser.");
|
116
|
+
System.err.println("[WARN] Report plugins in your config at: https://github.com/embulk/embulk/issues/745");
|
117
|
+
// The |deprecationWarned| flag is used only for warning messages.
|
118
|
+
// Even in case of race conditions, messages are just duplicated -- should be acceptable.
|
119
|
+
deprecationWarned = true;
|
118
120
|
}
|
119
121
|
}
|
120
122
|
|
@@ -128,11 +130,12 @@ public class TimestampParser
|
|
128
130
|
{
|
129
131
|
this(format, defaultTimeZone, defaultDate);
|
130
132
|
// TODO: Notify users about deprecated calls through the notification reporter.
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
133
|
+
if (!deprecationWarned) {
|
134
|
+
System.err.println("[WARN] Plugin uses deprecated constructor of org.embulk.spi.time.TimestampParser.");
|
135
|
+
System.err.println("[WARN] Report plugins in your config at: https://github.com/embulk/embulk/issues/745");
|
136
|
+
// The |deprecationWarned| flag is used only for warning messages.
|
137
|
+
// Even in case of race conditions, messages are just duplicated -- should be acceptable.
|
138
|
+
deprecationWarned = true;
|
136
139
|
}
|
137
140
|
}
|
138
141
|
|
@@ -274,4 +277,7 @@ public class TimestampParser
|
|
274
277
|
return zone;
|
275
278
|
}
|
276
279
|
}
|
280
|
+
|
281
|
+
// TODO: Remove this once deprecated constructors are finally removed.
|
282
|
+
private static boolean deprecationWarned = false;
|
277
283
|
}
|
data/embulk-docs/src/release.rst
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
Release 0.8.31
|
2
|
+
==================================
|
3
|
+
|
4
|
+
General Changes
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Relax deprecation messages of TimestampFormatter/Parser constructors [#768] [#769]
|
8
|
+
* Return non-zero exit status in case of errors [#771] [#772]
|
9
|
+
|
10
|
+
Release Date
|
11
|
+
------------------
|
12
|
+
2017-08-28
|
data/lib/embulk/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Embulk
|
4
4
|
@@warned = false
|
5
5
|
|
6
|
-
VERSION_INTERNAL = '0.8.
|
6
|
+
VERSION_INTERNAL = '0.8.31'
|
7
7
|
|
8
8
|
DEPRECATED_MESSAGE = 'Embulk::VERSION in (J)Ruby is deprecated. Use org.embulk.EmbulkVersion::VERSION instead. If this message is from a plugin, please tell this to the author of the plugin!'
|
9
9
|
def self.const_missing(name)
|
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.31
|
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-08-
|
11
|
+
date: 2017-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -155,10 +155,10 @@ files:
|
|
155
155
|
- classpath/commons-compress-1.10.jar
|
156
156
|
- classpath/commons-lang-2.4.jar
|
157
157
|
- classpath/commons-lang3-3.4.jar
|
158
|
-
- classpath/embulk-cli-0.8.
|
159
|
-
- classpath/embulk-core-0.8.
|
160
|
-
- classpath/embulk-jruby-strptime-0.8.
|
161
|
-
- classpath/embulk-standards-0.8.
|
158
|
+
- classpath/embulk-cli-0.8.31.jar
|
159
|
+
- classpath/embulk-core-0.8.31.jar
|
160
|
+
- classpath/embulk-jruby-strptime-0.8.31.jar
|
161
|
+
- classpath/embulk-standards-0.8.31.jar
|
162
162
|
- classpath/guava-18.0.jar
|
163
163
|
- classpath/guice-4.0.jar
|
164
164
|
- classpath/guice-bootstrap-0.1.1.jar
|
@@ -560,6 +560,7 @@ files:
|
|
560
560
|
- embulk-docs/src/release/release-0.8.29.rst
|
561
561
|
- embulk-docs/src/release/release-0.8.3.rst
|
562
562
|
- embulk-docs/src/release/release-0.8.30.rst
|
563
|
+
- embulk-docs/src/release/release-0.8.31.rst
|
563
564
|
- embulk-docs/src/release/release-0.8.4.rst
|
564
565
|
- embulk-docs/src/release/release-0.8.5.rst
|
565
566
|
- embulk-docs/src/release/release-0.8.6.rst
|