natsukantou 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 1edac0c042ee1ad4c1051d15028d5c6ff9ac397160c5bc83c9cd8c7fe1730d3f
4
- data.tar.gz: 9e8950028f71f90f4e1b141a63d74027c021b36a2231151e290b50fcd396ec34
3
+ metadata.gz: d29dec07a03407ea767c53dce9760627262abf2fb35d3f9888659be3c2442efa
4
+ data.tar.gz: 36b30c5b5fff59a62293acdf660fd7f508c0b8bfc20c1882c3f7139b7ba4a06c
5
5
  SHA512:
6
- metadata.gz: 82d10f0790a4eb1899ec277b90b9fa3c66de282d08915fd5e9d2fe6e53d97a39b12205a9ec8389c6bdbf5587f492fb072ca70d02326bd991be7f94217f144b8e
7
- data.tar.gz: 7c81870166e14a41957246cd266a8b0e58e6868421ed7115deb853746e036d3f913fed5880412d73e9b530f3dcab8304a430ca5475c1decbf7ad7f0876c458bb
6
+ metadata.gz: 07cb8f6e26187a971f0ff080767b7662a62ce7f0eb7730c647586ea351925ba94190156400ac37d3012d8bdaa7f848bd7456dc58b0216cb5e5ccb386ba9d4be5
7
+ data.tar.gz: da43175d1d13f63a0c2255cdc110257e35e54d8164ec65fbbdab1c81c1eff01b146db8e5239cef8312bfea87802e6be9258dcf42401991a72e379f35d5ba4288
data/CHANGELOG.md CHANGED
@@ -17,3 +17,11 @@
17
17
  ## [0.1.3] - 2023-02-27
18
18
 
19
19
  - Skip interlacing if nodes' text() are identical
20
+
21
+ ## [0.2.0] - 2023-03-05
22
+
23
+ - Add ChatGPT
24
+
25
+ ## [0.2.1] - 2023-04-30
26
+
27
+ - Remove newline characters in HandleRubyMarkup, which helps improving translation
@@ -26,7 +26,7 @@ module Natsukantou
26
26
 
27
27
  def process_node(node)
28
28
  node.css('rt').each(&:remove)
29
- node.inner_text = node.text.gsub(' ', '')
29
+ node.inner_text = node.text.gsub(/[[:space:]]/, '')
30
30
  end
31
31
  end
32
32
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Natsukantou
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
data/natsukantou.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["mark@goodlife.tw"]
10
10
 
11
11
  spec.summary = "human language translation library for XML documents"
12
- spec.description = "human language translation library for XML documents, supporting DeepL"
12
+ spec.description = "human language translation library for XML documents, supporting DeepL and ChatGPT"
13
13
  spec.homepage = "https://gitlab.com/lulalala/natsukantou"
14
14
  spec.license = "MIT"
15
15
  spec.required_ruby_version = ">= 2.7.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: natsukantou
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lulalala
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-05 00:00:00.000000000 Z
11
+ date: 2023-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: middleware
@@ -123,6 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: 3.5.0
125
125
  description: human language translation library for XML documents, supporting DeepL
126
+ and ChatGPT
126
127
  email:
127
128
  - mark@goodlife.tw
128
129
  executables:
@@ -182,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
183
  - !ruby/object:Gem::Version
183
184
  version: '0'
184
185
  requirements: []
185
- rubygems_version: 3.4.7
186
+ rubygems_version: 3.4.12
186
187
  signing_key:
187
188
  specification_version: 4
188
189
  summary: human language translation library for XML documents