embulk 0.8.30 → 0.8.31

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07b249572fa56d1f86fcf05b0ca4ecf46336ad31
4
- data.tar.gz: c70acaab9b51e85ec95b0b9d8265e56f52b2d236
3
+ metadata.gz: 6ff6c6b94f1515912bd831a3b7110fa284bfb6bd
4
+ data.tar.gz: 2ae51b3c9418fe73fe20b494a120d7163d15a6d8
5
5
  SHA512:
6
- metadata.gz: e74c87466c4d63dd673c845bca64d7e8cd750b5ac00441c0d0e8a268d21674296266fadd98fafec8886d22ab017d2bf85dd0a18cd0731ec82f449545ef43ef66
7
- data.tar.gz: 44b17054093ffea2aa5beb19c90f0aea382c8fd0f119e813f2bbf6724961877762cee52bc5da187b7694954547ba760265267c047b97ea1355579a55b7737f94
6
+ metadata.gz: 9aba47a88b711b9ae862f8f391c1b8ea439e781d5b77c189309a871b05d538e707c8b8aca9b7609a497de81eadad430c4ab1b6dbcc9edaefd93526dd09fd49f5
7
+ data.tar.gz: 5a615308623290f1e2bc2a90eca9b841ffee8ad3428eabd59d289839d42af7037ab5a46e62a69e92967034ebc932d1200407eecc7d4c048f89825845b3e1fb60
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: ruby
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: 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.30.jar
119
- - classpath/embulk-core-0.8.30.jar
120
- - classpath/embulk-jruby-strptime-0.8.30.jar
121
- - classpath/embulk-standards-0.8.30.jar
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