embulk 0.8.30-java → 0.8.31-java

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: a8d768ff1cdca1f30819495c0e0f4543a796aa3c
4
- data.tar.gz: 00b77520c45ddd0772147dfa694fad09a6ba6e62
3
+ metadata.gz: b75f4f5fd6e21885fe49a8af1468a43ee0989785
4
+ data.tar.gz: 2c12d170b838e916a67e6e79ae9d85b985c77f4a
5
5
  SHA512:
6
- metadata.gz: 7d25f42dc63816c532f125df3b37556a265fcf06d6ef2b8cb97d26f1421907ca223adc27cf36307599e42c67eaecb2997c894389f8555ea3e295664a6dd1ec9c
7
- data.tar.gz: 1873eb4116e45d7b7c28b55d54ac5b81a8fce36c65eaab573ee2ffa0ed78aea2393563cc0e158209d54a3e9b9e4855c01cb5676ddb9d54bf4ad109ca2e6a76d4
6
+ metadata.gz: 1aafd34ed37453dd11673facebc87ed6e32127ab93bbcde55fe16e8469c51ac968098d058616ad78a536227b4c4fb1eb1598c3c85c4d72e31133fb0f84449453
7
+ data.tar.gz: 0e4b5f0b63b1dd34d357b1fa6ea585a4be3ee74c6e9ed428d383de8100b036a789a326bd3b626306220c11b7fb9292c0cfae56d11e14626cb34f493a53e5e78c
data/build.gradle CHANGED
@@ -16,7 +16,7 @@ def release_projects = [project(":embulk-core"), project(":embulk-standards"), p
16
16
 
17
17
  allprojects {
18
18
  group = 'org.embulk'
19
- version = '0.8.30'
19
+ version = '0.8.31'
20
20
 
21
21
  ext {
22
22
  jrubyVersion = '9.1.5.0'
@@ -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
- System.err.println("[WARN] A plugin uses a deprecated constructor of org.embulk.spi.time.TimestampFormatter.");
65
- System.err.println("[WARN] Please tell the plugin developer to stop using the constructor, or report this to:");
66
- System.err.println("[WARN] https://github.com/embulk/embulk/issues/745");
67
- for (final StackTraceElement stackTrace : Thread.currentThread().getStackTrace()) {
68
- System.err.println("[WARN] " + stackTrace.toString());
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
- System.err.println("[WARN] A plugin uses a deprecated constructor of org.embulk.spi.time.TimestampFormatter.");
89
- System.err.println("[WARN] Please tell the plugin developer to stop using the constructor, or report this to:");
90
- System.err.println("[WARN] https://github.com/embulk/embulk/issues/745");
91
- for (final StackTraceElement stackTrace : Thread.currentThread().getStackTrace()) {
92
- System.err.println("[WARN] " + stackTrace.toString());
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
- System.err.println("[WARN] A plugin uses a deprecated constructor of org.embulk.spi.time.TimestampFormatter.");
86
- System.err.println("[WARN] Please tell the plugin developer to stop using the constructor, or report this to:");
87
- System.err.println("[WARN] https://github.com/embulk/embulk/issues/745");
88
- for (final StackTraceElement stackTrace : Thread.currentThread().getStackTrace()) {
89
- System.err.println("[WARN] " + stackTrace.toString());
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
- System.err.println("[WARN] A plugin uses a deprecated constructor of org.embulk.spi.time.TimestampFormatter.");
114
- System.err.println("[WARN] Please tell the plugin developer to stop using the constructor, or report this to:");
115
- System.err.println("[WARN] https://github.com/embulk/embulk/issues/745");
116
- for (final StackTraceElement stackTrace : Thread.currentThread().getStackTrace()) {
117
- System.err.println("[WARN] " + stackTrace.toString());
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
- System.err.println("[WARN] A plugin uses a deprecated constructor of org.embulk.spi.time.TimestampFormatter.");
132
- System.err.println("[WARN] Please tell the plugin developer to stop using the constructor, or report this to:");
133
- System.err.println("[WARN] https://github.com/embulk/embulk/issues/745");
134
- for (final StackTraceElement stackTrace : Thread.currentThread().getStackTrace()) {
135
- System.err.println("[WARN] " + stackTrace.toString());
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
  }
@@ -4,6 +4,7 @@ Release Notes
4
4
  .. toctree::
5
5
  :maxdepth: 1
6
6
 
7
+ release/release-0.8.31
7
8
  release/release-0.8.30
8
9
  release/release-0.8.29
9
10
  release/release-0.8.28
@@ -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
@@ -3,7 +3,7 @@
3
3
  module Embulk
4
4
  @@warned = false
5
5
 
6
- VERSION_INTERNAL = '0.8.30'
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.30
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-23 00:00:00.000000000 Z
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.30.jar
159
- - classpath/embulk-core-0.8.30.jar
160
- - classpath/embulk-jruby-strptime-0.8.30.jar
161
- - classpath/embulk-standards-0.8.30.jar
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