embulk 0.10.31.2-java → 0.10.35-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: d339f2e08b4f01039bcd17f74fb585fbc261e7ef
4
- data.tar.gz: 9bcf09a449909298b4e77e909ecb10bdcece54e7
3
+ metadata.gz: 007a6e451b31e2ccd31d06a6878fc3551d6becec
4
+ data.tar.gz: a071b70f98a7ab027b4e3d1da26ece22320d4679
5
5
  SHA512:
6
- metadata.gz: 965b3a9ff7719165245fdd9d2bac091cdc522c7269c2b2ca21c1f7aec7b7579cde19404b90694413bdd6e5b49032ff3b0f1e24523892489505f910b2d58727ec
7
- data.tar.gz: 999c699806fa37003e5732026b9a4ac98fa6d7f088111248cfbf30cf57361c5e848281a10d490b0dcdf0e97bbc5dfdf5e37c58c22ea190865c9262a1c176d489
6
+ metadata.gz: 00e7484c634175dc02267f8eeef3331a4e69091066e18ecf143470ee661414bca5d0749e56fa6ad73cc807c863708206e9ec55f8bced708a7204ca2593fe0c5a
7
+ data.tar.gz: fe2ba6248306caa1c7685facae0bb88b8892c820bd931a1559eb2660cca1b372ede4bcfbd94bfc7576fc29436be732683cd7cb662bbe7582a99aabbbe2c2f221
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.31.2"
3
+ gem.version = "0.10.35"
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.31.2",
36
+ "source_code_uri" => "https://github.com/embulk/embulk/tree/v0.10.35",
37
37
  # "wiki_uri" => "",
38
38
  }
39
39
  end
@@ -203,7 +203,7 @@ module Embulk
203
203
 
204
204
  def to_java
205
205
  json = to_json
206
- Java::Injected::ModelManager.readObject(Java::DataSourceImpl.java_class, json.to_java)
206
+ Java::Injected::ModelManager.readObjectAsDataSource(json.to_java)
207
207
  end
208
208
 
209
209
  def load_config(task_type)
@@ -13,7 +13,7 @@ module Embulk
13
13
  module RubyAdapter
14
14
  module ClassMethods
15
15
  def new_java
16
- Java::FileInputRunner.new(Java.injector.getInstance(plugin_java_class))
16
+ Java::FileInputRunner.new(Java::org.embulk.plugin.PluginManager.newPluginInstance(plugin_java_class, Embulk::Java::EmbulkSystemProperties))
17
17
  end
18
18
  # TODO transaction, resume, cleanup
19
19
  end
@@ -13,7 +13,7 @@ module Embulk
13
13
  module RubyAdapter
14
14
  module ClassMethods
15
15
  def new_java
16
- Java::FileOutputRunner.new(Java.injector.getInstance(plugin_java_class))
16
+ Java::FileOutputRunner.new(Java::org.embulk.plugin.PluginManager.newPluginInstance(plugin_java_class, Embulk::Java::EmbulkSystemProperties))
17
17
  end
18
18
  # TODO transaction, resume, cleanup
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module Embulk
2
- GEM_VERSION_EMBEDDED = "0.10.31.2"
2
+ GEM_VERSION_EMBEDDED = "0.10.35"
3
3
  end
@@ -4,7 +4,7 @@ module Embulk
4
4
  require 'time'
5
5
 
6
6
  module Injected
7
- # Following constats are set by org.embulk.jruby.JRubyScriptingModule:
7
+ # Following constats are set by org.embulk.jruby.JRubyInitializer:
8
8
  # Injector
9
9
  # ModelManager
10
10
  # BufferAllocator
@@ -44,7 +44,6 @@ module Embulk::Java
44
44
  include_package 'org.embulk'
45
45
 
46
46
  java_import 'org.embulk.spi.Buffer'
47
- java_import 'org.embulk.config.DataSourceImpl'
48
47
  java_import 'org.embulk.spi.time.Timestamp'
49
48
  java_import 'org.embulk.spi.time.TimestampParseException'
50
49
  java_import 'org.embulk.spi.GuessPlugin'
@@ -89,7 +89,7 @@ module Embulk
89
89
  # ruby_module::ClassMethods includes other modules.
90
90
  unless ruby_module::ClassMethods.method_defined?(:new_java)
91
91
  def self.new_java
92
- Java.injector.getInstance(plugin_java_class)
92
+ Java::org.embulk.plugin.PluginManager.newPluginInstance(plugin_java_class, Embulk::Java::EmbulkSystemProperties)
93
93
  end
94
94
  end
95
95
  end
@@ -38,7 +38,7 @@ module Embulk
38
38
  # TODO get task as an argument
39
39
  task = Java::SPI::Exec.newConfigSource.load_config(Java::DynamicPageBuilder::BuilderTask.java_class)
40
40
  @page_builder = Java::DynamicPageBuilder.createWithTimestampMetadataFromBuilderTask(
41
- task, Java::Injected::BufferAllocator, schema.to_java, java_page_output)
41
+ task, Java::BufferAllocator, schema.to_java, java_page_output)
42
42
  else
43
43
  @page_builder = java_dynamic_page_builder
44
44
  end
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.31.2
4
+ version: 0.10.35
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: 2021-11-25 00:00:00.000000000 Z
13
+ date: 2021-12-20 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.31.2
81
+ source_code_uri: https://github.com/embulk/embulk/tree/v0.10.35
82
82
  post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths: