embulk 0.10.39-java → 0.10.40-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/embulk.gemspec +2 -2
- data/lib/embulk/error.rb +86 -12
- data/lib/embulk/gem_version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb86c09a7380df5687daa279146cec893021d0a3
|
4
|
+
data.tar.gz: 49634221ede004b9460122e60e720ad72626d254
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7309ed9f95a0107719ffcc68b393c8bc1305ec1c849b31761441e4314c18dc0d0122015cdc303777bef69efa33a26a2172d9d0da84b6df68a8c9e6e13f80e94e
|
7
|
+
data.tar.gz: 6602ddcd1519a024c70570e2eca820eab8fb8579375f3eb1f78b5d51b7414541be314c132663a4bdde8e825d6ffd888a2e764e463175e96373f27f9e4da8c481
|
data/embulk.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = "embulk"
|
3
|
-
gem.version = "0.10.
|
3
|
+
gem.version = "0.10.40"
|
4
4
|
gem.license = "Apache-2.0"
|
5
5
|
|
6
6
|
gem.summary = "Embulk's runtime library for Ruby."
|
@@ -33,7 +33,7 @@ Gem::Specification.new do |gem|
|
|
33
33
|
"documentation_uri" => "https://www.embulk.org/",
|
34
34
|
"homepage_uri" => gem.homepage,
|
35
35
|
# "mailing_list_uri" => "",
|
36
|
-
"source_code_uri" => "https://github.com/embulk/embulk/tree/v0.10.
|
36
|
+
"source_code_uri" => "https://github.com/embulk/embulk/tree/v0.10.40",
|
37
37
|
# "wiki_uri" => "",
|
38
38
|
}
|
39
39
|
end
|
data/lib/embulk/error.rb
CHANGED
@@ -3,24 +3,98 @@ module Embulk
|
|
3
3
|
# ConfigError is not a ::StandardError but is a java.lang.RuntimeException.
|
4
4
|
# "rescue => e" can rescues ConfigError.
|
5
5
|
class ConfigError < Java::Config::ConfigException
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
# :call-seq:
|
7
|
+
# ConfigError.new()
|
8
|
+
# ConfigError.new(string)
|
9
|
+
#
|
10
|
+
# Returns the new +ConfigError+ object.
|
11
|
+
#
|
12
|
+
# The signature of +ConfigError.new+ accepts any argument. But in fact, it
|
13
|
+
# accepts only <tt>ConfigError.new()</tt> and <tt>ConfigError.new(String)</tt>.
|
14
|
+
# It raises <tt>Error: org.jruby.exceptions.Argument</tt> otherwise. It has
|
15
|
+
# been like this since \Embulk v0.10.38 because a subclass of a Java class is
|
16
|
+
# a full Java class as of JRuby 9.3, which introduced some restrictions.
|
17
|
+
#
|
18
|
+
# See also:
|
19
|
+
# - https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby#subclassing-a-java-class
|
20
|
+
# - https://github.com/jruby/jruby/issues/7221
|
21
|
+
#
|
22
|
+
# ==== History
|
23
|
+
#
|
24
|
+
# +ConfigError.initialize+ receives only a variable-length argument list
|
25
|
+
# (rest parameters) since \Embulk v0.10.38. It is to satisfy restrictions
|
26
|
+
# as of JRuby 9.3.
|
27
|
+
#
|
28
|
+
# It was <tt>ConfigError.initialize(message=nil)</tt> before v0.10.38.
|
29
|
+
# It switched over to call <tt>super()</tt> (<tt>ConfigException()</tt>),
|
30
|
+
# or <tt>super(String)</tt> (<tt>ConfigException(String)</tt>) based on
|
31
|
+
# +message+. It was because Ruby does not allow method overloading, and
|
32
|
+
# then, +ConfigError+ can have only a single +initialize+ method.
|
33
|
+
#
|
34
|
+
# On the other hand, JRuby 9.3+ does not allow +initialize+ to contain
|
35
|
+
# multiple +super+ calls in it. Switching the superclass constructor is
|
36
|
+
# no longer accepted in JRuby 9.3+.
|
37
|
+
#
|
38
|
+
# To keep compatibility from caller's viewpoint, +ConfigError.initialize+
|
39
|
+
# receives only a variable-length argument list (<tt>*arguments</tt>), and
|
40
|
+
# calls the superclass constructor with +super+ (without parenthesis). It
|
41
|
+
# allows <tt>ConfigError.new()</tt> and <tt>ConfigError.new(String)</tt>
|
42
|
+
# to call an appropriate superclass constructor for each.
|
43
|
+
#
|
44
|
+
# However, +ConfigError.new+ now accepts any argument undesirably. It
|
45
|
+
# raises an unexpected <tt>Error: org.jruby.exceptions.ArgumentError</tt>
|
46
|
+
# when +ConfigError.new+ is called with an unexpected argument.
|
47
|
+
def initialize(*arguments)
|
48
|
+
super
|
12
49
|
end
|
13
50
|
end
|
14
51
|
|
15
52
|
# DataError is not a ::StandardError but is a java.lang.RuntimeException.
|
16
53
|
# "rescue => e" can rescues DataError.
|
17
54
|
class DataError < Java::SPI::DataException
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
55
|
+
# :call-seq:
|
56
|
+
# DataError.new()
|
57
|
+
# DataError.new(string)
|
58
|
+
#
|
59
|
+
# Returns the new +DataError+ object.
|
60
|
+
#
|
61
|
+
# The signature of +DataError.new+ accepts any argument. But in fact, it
|
62
|
+
# accepts only <tt>DataError.new()</tt> and <tt>DataError.new(String)</tt>.
|
63
|
+
# It raises <tt>Error: org.jruby.exceptions.Argument</tt> otherwise. It has
|
64
|
+
# been like this since \Embulk v0.10.38 because a subclass of a Java class is
|
65
|
+
# a full Java class as of JRuby 9.3, which introduced some restrictions.
|
66
|
+
#
|
67
|
+
# See also:
|
68
|
+
# - https://github.com/jruby/jruby/wiki/CallingJavaFromJRuby#subclassing-a-java-class
|
69
|
+
# - https://github.com/jruby/jruby/issues/7221
|
70
|
+
#
|
71
|
+
# ==== History
|
72
|
+
#
|
73
|
+
# +DataError.initialize+ receives only a variable-length argument list
|
74
|
+
# (rest parameters) since \Embulk v0.10.38. It is to satisfy restrictions
|
75
|
+
# as of JRuby 9.3.
|
76
|
+
#
|
77
|
+
# It was <tt>DataError.initialize(message=nil)</tt> before v0.10.38.
|
78
|
+
# It switched over to call <tt>super()</tt> (<tt>ConfigException()</tt>),
|
79
|
+
# or <tt>super(String)</tt> (<tt>ConfigException(String)</tt>) based on
|
80
|
+
# +message+. It was because Ruby does not allow method overloading, and
|
81
|
+
# then, +DataError+ can have only a single +initialize+ method.
|
82
|
+
#
|
83
|
+
# On the other hand, JRuby 9.3+ does not allow +initialize+ to contain
|
84
|
+
# multiple +super+ calls in it. Switching the superclass constructor is
|
85
|
+
# no longer accepted in JRuby 9.3+.
|
86
|
+
#
|
87
|
+
# To keep compatibility from caller's viewpoint, +DataError.initialize+
|
88
|
+
# receives only a variable-length argument list (<tt>*arguments</tt>), and
|
89
|
+
# calls the superclass constructor with +super+ (without parenthesis). It
|
90
|
+
# allows <tt>DataError.new()</tt> and <tt>DataError.new(String)</tt>
|
91
|
+
# to call an appropriate superclass constructor for each.
|
92
|
+
#
|
93
|
+
# However, +DataError.new+ now accepts any argument undesirably. It
|
94
|
+
# raises an unexpected <tt>Error: org.jruby.exceptions.ArgumentError</tt>
|
95
|
+
# when +DataError.new+ is called with an unexpected argument.
|
96
|
+
def initialize(*arguments)
|
97
|
+
super
|
24
98
|
end
|
25
99
|
end
|
26
100
|
|
data/lib/embulk/gem_version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.40
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-12-
|
13
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,7 +78,7 @@ metadata:
|
|
78
78
|
changelog_uri: https://github.com/embulk/embulk/releases
|
79
79
|
documentation_uri: https://www.embulk.org/
|
80
80
|
homepage_uri: https://www.embulk.org/
|
81
|
-
source_code_uri: https://github.com/embulk/embulk/tree/v0.10.
|
81
|
+
source_code_uri: https://github.com/embulk/embulk/tree/v0.10.40
|
82
82
|
post_install_message:
|
83
83
|
rdoc_options: []
|
84
84
|
require_paths:
|