eiwa 0.1.2 → 0.2.0

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: 2da2b15cfd1217fc66c9cb8a33bfba25c04661b8da5566b25141b0c1817c014b
4
- data.tar.gz: 2d9e4b4d9628e2a1d65c513662428947121309e7e383b922638633913fef0da9
3
+ metadata.gz: 30b687188f6619274fd070b4e9e5474bd88d85e6d05585549ea43d9aed196997
4
+ data.tar.gz: b3bdd500a94577063547fa1ab3243ba22c161fc132ca62f7389340d34a76fe90
5
5
  SHA512:
6
- metadata.gz: 7434fdf07b21cd01088eae89b024c77e1ffc99d7377186ad833b4ff6ca68eac25123cc0b2139a01101acae4a367ad40daa4700770d5de2ed13eedf55ca873483
7
- data.tar.gz: df9dc920677758fc3d9186205d3a623205c2ab481030e9a2966fe33a5113d14774f46ff31d3e0e72f28c909e6a9942742bd7fd6ba0f4298794a35e98f558da92
6
+ metadata.gz: ccf49f2a655c6d325c0ce8fc2dfa4e8532b29c6396d6d69d78778a5bb082e86a080e8ee4554fa7e2c8cf0f214728dd8f457cf4e3a14b9b8ddf5b919a61140893
7
+ data.tar.gz: ddff0da7bc6d784da2217663425b20763b9f10fbee1e121a6e65ef156ba6a6b4c4e3d0ff613ece3bc4e3f82631d4fdb79995e72a9c1bc3a910956778913663b1
data/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # 0.2.0
2
+
3
+ * Upgrade nokogiri and improve entity decoding - [@flavorjones](https://github.com/flavorjones) [#11](https://github.com/searls/eiwa/pull/11)
4
+
5
+ # 0.1.2
6
+
7
+ The time before this had a changelog.
data/Gemfile.lock CHANGED
@@ -1,64 +1,70 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eiwa (0.1.2)
5
- nokogiri (= 1.14.5)
4
+ eiwa (0.2.0)
5
+ nokogiri (= 1.17.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.2)
11
- json (2.7.1)
11
+ json (2.9.0)
12
12
  language_server-protocol (3.17.0.3)
13
13
  lint_roller (1.1.0)
14
14
  m (1.6.2)
15
15
  method_source (>= 0.6.7)
16
16
  rake (>= 0.9.2.2)
17
- method_source (1.0.0)
18
- mini_portile2 (2.8.5)
19
- minitest (5.22.2)
20
- nokogiri (1.14.5)
21
- mini_portile2 (~> 2.8.0)
17
+ method_source (1.1.0)
18
+ minitest (5.25.4)
19
+ nokogiri (1.17.0-aarch64-linux)
22
20
  racc (~> 1.4)
23
- parallel (1.24.0)
24
- parser (3.3.0.5)
21
+ nokogiri (1.17.0-arm-linux)
22
+ racc (~> 1.4)
23
+ nokogiri (1.17.0-arm64-darwin)
24
+ racc (~> 1.4)
25
+ nokogiri (1.17.0-x86-linux)
26
+ racc (~> 1.4)
27
+ nokogiri (1.17.0-x86_64-darwin)
28
+ racc (~> 1.4)
29
+ nokogiri (1.17.0-x86_64-linux)
30
+ racc (~> 1.4)
31
+ parallel (1.26.3)
32
+ parser (3.3.6.0)
25
33
  ast (~> 2.4.1)
26
34
  racc
27
- racc (1.7.3)
35
+ racc (1.8.1)
28
36
  rainbow (3.1.1)
29
- rake (13.1.0)
30
- regexp_parser (2.9.0)
31
- rexml (3.2.6)
32
- rubocop (1.62.1)
37
+ rake (13.2.1)
38
+ regexp_parser (2.9.3)
39
+ rubocop (1.68.0)
33
40
  json (~> 2.3)
34
41
  language_server-protocol (>= 3.17.0)
35
42
  parallel (~> 1.10)
36
43
  parser (>= 3.3.0.2)
37
44
  rainbow (>= 2.2.2, < 4.0)
38
- regexp_parser (>= 1.8, < 3.0)
39
- rexml (>= 3.2.5, < 4.0)
40
- rubocop-ast (>= 1.31.1, < 2.0)
45
+ regexp_parser (>= 2.4, < 3.0)
46
+ rubocop-ast (>= 1.32.2, < 2.0)
41
47
  ruby-progressbar (~> 1.7)
42
48
  unicode-display_width (>= 2.4.0, < 3.0)
43
- rubocop-ast (1.31.2)
44
- parser (>= 3.3.0.4)
45
- rubocop-performance (1.20.2)
49
+ rubocop-ast (1.36.2)
50
+ parser (>= 3.3.1.0)
51
+ rubocop-performance (1.22.1)
46
52
  rubocop (>= 1.48.1, < 2.0)
47
- rubocop-ast (>= 1.30.0, < 2.0)
53
+ rubocop-ast (>= 1.31.1, < 2.0)
48
54
  ruby-progressbar (1.13.0)
49
- standard (1.34.0)
55
+ standard (1.42.1)
50
56
  language_server-protocol (~> 3.17.0.2)
51
57
  lint_roller (~> 1.0)
52
- rubocop (~> 1.60)
58
+ rubocop (~> 1.68.0)
53
59
  standard-custom (~> 1.0.0)
54
- standard-performance (~> 1.3)
60
+ standard-performance (~> 1.5)
55
61
  standard-custom (1.0.2)
56
62
  lint_roller (~> 1.0)
57
63
  rubocop (~> 1.50)
58
- standard-performance (1.3.1)
64
+ standard-performance (1.5.0)
59
65
  lint_roller (~> 1.1)
60
- rubocop-performance (~> 1.20.2)
61
- unicode-display_width (2.5.0)
66
+ rubocop-performance (~> 1.22.0)
67
+ unicode-display_width (2.6.0)
62
68
 
63
69
  PLATFORMS
64
70
  aarch64-linux
@@ -76,4 +82,4 @@ DEPENDENCIES
76
82
  standard
77
83
 
78
84
  BUNDLED WITH
79
- 2.5.4
85
+ 2.5.23
data/eiwa.gemspec CHANGED
@@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "nokogiri", "1.14.5"
22
+ spec.add_dependency "nokogiri", "1.17.0"
23
23
  end
@@ -53,6 +53,10 @@ module Eiwa
53
53
  @current.add_characters(s)
54
54
  end
55
55
 
56
+ def reference(name, content)
57
+ @current.set_entity(name, content)
58
+ end
59
+
56
60
  # def comment string
57
61
  # puts "comment #{string}"
58
62
  # end
@@ -62,15 +66,7 @@ module Eiwa
62
66
  # end
63
67
 
64
68
  def error(msg)
65
- if (matches = msg.match(/Entity '(\S+)' not defined/))
66
- # See: http://github.com/sparklemotion/nokogiri/issues/1926
67
- code = matches[1]
68
- @current.set_entity(code, ENTITIES[code])
69
- elsif msg == "Detected an entity reference loop\n"
70
- # Do nothing and hope this does not matter.
71
- else
72
- raise Eiwa::Error.new("Parsing error: #{msg}")
73
- end
69
+ raise Eiwa::Error.new("Parsing error: #{msg}")
74
70
  end
75
71
 
76
72
  # def cdata_block string
@@ -13,7 +13,7 @@ module Eiwa
13
13
  "adj-ku" => "`ku' adjective (archaic)",
14
14
  "adj-na" => "adjectival nouns or quasi-adjectives (keiyodoshi)",
15
15
  "adj-nari" => "archaic/formal form of na-adjective",
16
- "adj-no" => "nouns which may take the genitive case particle `no'",
16
+ "adj-no" => "nouns which may take the genitive case particle 'no'",
17
17
  "adj-pn" => "pre-noun adjectival (rentaishi)",
18
18
  "adj-shiku" => "`shiku' adjective (archaic)",
19
19
  "adj-t" => "`taru' adjective",
@@ -34,7 +34,7 @@ module Eiwa
34
34
  "chem" => "chemistry term",
35
35
  "chn" => "children's language",
36
36
  "col" => "colloquialism",
37
- "comp" => "computer terminology",
37
+ "comp" => "computing",
38
38
  "conj" => "conjunction",
39
39
  "cop" => "copula",
40
40
  "cop-da" => "copula",
@@ -101,6 +101,7 @@ module Eiwa
101
101
  "quote" => "quotation",
102
102
  "rare" => "rare",
103
103
  "rkb" => "Ryuukyuu-ben",
104
+ "rK" => "rarely used kanji form",
104
105
  "sens" => "sensitive",
105
106
  "shogi" => "shogi term",
106
107
  "sl" => "slang",
data/lib/eiwa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eiwa
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eiwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-12 00:00:00.000000000 Z
11
+ date: 2024-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.14.5
19
+ version: 1.17.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 1.14.5
26
+ version: 1.17.0
27
27
  description:
28
28
  email:
29
29
  - searls@gmail.com
@@ -34,6 +34,7 @@ files:
34
34
  - ".github/workflows/ruby.yml"
35
35
  - ".gitignore"
36
36
  - ".standard.yml"
37
+ - CHANGELOG.md
37
38
  - Gemfile
38
39
  - Gemfile.lock
39
40
  - LICENSE.txt
@@ -84,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  - !ruby/object:Gem::Version
85
86
  version: '0'
86
87
  requirements: []
87
- rubygems_version: 3.5.4
88
+ rubygems_version: 3.5.11
88
89
  signing_key:
89
90
  specification_version: 4
90
91
  summary: Parses the JMDict Japanese-English dictionary