embulk 0.10.44-java → 0.10.45-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: 11c39352220b1cfbef3263eb4afc6f8f663b7b22
4
- data.tar.gz: 2783369bc4e2f86c30b8418f9a842a4d2bed347e
3
+ metadata.gz: cdf29acae0add6fde587d70e8673b73108c5ef6e
4
+ data.tar.gz: 6c68e1355ccb2996cb40b2c271e3b37f41ae9422
5
5
  SHA512:
6
- metadata.gz: 6416726624c83a60050a539b9ba48db19a29b63243434c846f5adb66789e68db3a7a92ae33adc77e5f8c40d3f7e7d2a0570b5c27179042b4d0057ecc41ea963c
7
- data.tar.gz: fbfac3f744fd400ee172c6b025304b0cf297545cdcfa58103cd46811149cee0efc9e45c8bf4d071ea5abe6199182ca6e102c7f266c82241261dc58679a3b5ba5
6
+ metadata.gz: fb768d8e7cfd7eaecae90a8bdfde631eb6e920043d83dbbeb36961acdc185acac2d3f131831ba8a415e1854fe0c06b2c5c14b1edcdb3da6bd369a8988fb104d3
7
+ data.tar.gz: e5d41d6d88ff3d34f69950e90fb5486e6f3da55283e1b2b422f9d9953d162195b6499778d060bbd73df8396d758f23f23773e70b7c37a2eb98e28df66bc0c7fc
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.44"
3
+ gem.version = "0.10.45"
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.44",
36
+ "source_code_uri" => "https://github.com/embulk/embulk/tree/v0.10.45",
37
37
  # "wiki_uri" => "",
38
38
  }
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module Embulk
2
- GEM_VERSION_EMBEDDED = "0.10.44"
2
+ GEM_VERSION_EMBEDDED = "0.10.45"
3
3
  end
@@ -4,30 +4,11 @@ module Embulk
4
4
  class CharsetGuessPlugin < GuessPlugin
5
5
  Plugin.register_guess('charset', self)
6
6
 
7
- STATIC_MAPPING = {
8
- # ISO-8859-1 means ASCII which is a subset of UTF-8 in most of cases
9
- # due to lack of sample data set.
10
- "ISO-8859-1" => "UTF-8",
11
-
12
- # Shift_JIS is used almost only by Windows that uses "CP932" in fact.
13
- # And "CP932" called by Microsoft actually means "MS932" in Java.
14
- "Shift_JIS" => "MS932",
15
- }
16
-
17
7
  def guess(config, sample_buffer)
18
- detector_class = org.embulk.deps.guess.CharsetDetector
19
- detector = detector_class.create
20
- detector.setText(sample_buffer.to_java_bytes)
21
- best_match = detector.detect
22
- if best_match.getConfidence < 50
23
- name = "UTF-8"
24
- else
25
- name = best_match.getName
26
- if mapped_name = STATIC_MAPPING[name]
27
- name = mapped_name
28
- end
29
- end
30
- return {"parser" => {"charset" => name}}
8
+ Embulk.logger.warn(
9
+ "Ruby-based CharsetGuess is no longer available. "
10
+ + "It always returns \"UTF-8\" unconditionally. Use an appropriate guess plugin explicitly."
11
+ return {"parser" => {"charset" => "UTF-8"}}
31
12
  end
32
13
  end
33
14
 
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.44
4
+ version: 0.10.45
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: 2023-03-20 00:00:00.000000000 Z
13
+ date: 2023-04-03 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.44
81
+ source_code_uri: https://github.com/embulk/embulk/tree/v0.10.45
82
82
  post_install_message:
83
83
  rdoc_options: []
84
84
  require_paths: