embulk 0.10.39-java → 0.10.41-java
Sign up to get free protection for your applications and to get access to all the features.
- 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: ac9f02dc149744b5d133aa7330f6c5d4a49763d5
|
4
|
+
data.tar.gz: 68e16d259860b087f3bff30678f0d7bc7ee4f855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee035b8de80fe350f25b18c4907cb98c734da49016cb019a52f891d49dacb70915aff6fc05c3c39d47e004dd8f3e1e4bb4c47e780034435234da5a3f5c319da
|
7
|
+
data.tar.gz: 46369cb6be377808b7988bda8ee0f4c3d1685c11a321bc010c25acaaa16146720a037f5fbd861eff7c1e55921599190be8100ce4e8d0e8bfcfd1143c30c42b21
|
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.41"
|
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.41",
|
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.41
|
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-15 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.41
|
82
82
|
post_install_message:
|
83
83
|
rdoc_options: []
|
84
84
|
require_paths:
|