embulk 0.8.30 → 0.8.31
Sign up to get free protection for your applications and to get access to all the features.
- 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: 6ff6c6b94f1515912bd831a3b7110fa284bfb6bd
|
4
|
+
data.tar.gz: 2ae51b3c9418fe73fe20b494a120d7163d15a6d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aba47a88b711b9ae862f8f391c1b8ea439e781d5b77c189309a871b05d538e707c8b8aca9b7609a497de81eadad430c4ab1b6dbcc9edaefd93526dd09fd49f5
|
7
|
+
data.tar.gz: 5a615308623290f1e2bc2a90eca9b841ffee8ad3428eabd59d289839d42af7037ab5a46e62a69e92967034ebc932d1200407eecc7d4c048f89825845b3e1fb60
|
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: ruby
|
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: jruby-jars
|
@@ -115,10 +115,10 @@ files:
|
|
115
115
|
- classpath/commons-compress-1.10.jar
|
116
116
|
- classpath/commons-lang-2.4.jar
|
117
117
|
- classpath/commons-lang3-3.4.jar
|
118
|
-
- classpath/embulk-cli-0.8.
|
119
|
-
- classpath/embulk-core-0.8.
|
120
|
-
- classpath/embulk-jruby-strptime-0.8.
|
121
|
-
- classpath/embulk-standards-0.8.
|
118
|
+
- classpath/embulk-cli-0.8.31.jar
|
119
|
+
- classpath/embulk-core-0.8.31.jar
|
120
|
+
- classpath/embulk-jruby-strptime-0.8.31.jar
|
121
|
+
- classpath/embulk-standards-0.8.31.jar
|
122
122
|
- classpath/guava-18.0.jar
|
123
123
|
- classpath/guice-4.0.jar
|
124
124
|
- classpath/guice-bootstrap-0.1.1.jar
|
@@ -520,6 +520,7 @@ files:
|
|
520
520
|
- embulk-docs/src/release/release-0.8.29.rst
|
521
521
|
- embulk-docs/src/release/release-0.8.3.rst
|
522
522
|
- embulk-docs/src/release/release-0.8.30.rst
|
523
|
+
- embulk-docs/src/release/release-0.8.31.rst
|
523
524
|
- embulk-docs/src/release/release-0.8.4.rst
|
524
525
|
- embulk-docs/src/release/release-0.8.5.rst
|
525
526
|
- embulk-docs/src/release/release-0.8.6.rst
|