eiwa 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +5 -8
- data/.standard.yml +1 -0
- data/Gemfile +5 -1
- data/Gemfile.lock +57 -39
- data/eiwa.gemspec +1 -6
- data/lib/eiwa/tag/antonym.rb +1 -1
- data/lib/eiwa/tag/any.rb +1 -1
- data/lib/eiwa/tag/cross_reference.rb +2 -2
- data/lib/eiwa/tag/definition.rb +1 -1
- data/lib/eiwa/tag/entity.rb +1 -1
- data/lib/eiwa/tag/source_language.rb +1 -1
- data/lib/eiwa/version.rb +1 -1
- metadata +8 -77
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2da2b15cfd1217fc66c9cb8a33bfba25c04661b8da5566b25141b0c1817c014b
|
4
|
+
data.tar.gz: 2d9e4b4d9628e2a1d65c513662428947121309e7e383b922638633913fef0da9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7434fdf07b21cd01088eae89b024c77e1ffc99d7377186ad833b4ff6ca68eac25123cc0b2139a01101acae4a367ad40daa4700770d5de2ed13eedf55ca873483
|
7
|
+
data.tar.gz: df9dc920677758fc3d9186205d3a623205c2ab481030e9a2966fe33a5113d14774f46ff31d3e0e72f28c909e6a9942742bd7fd6ba0f4298794a35e98f558da92
|
data/.github/workflows/ruby.yml
CHANGED
@@ -9,12 +9,9 @@ jobs:
|
|
9
9
|
|
10
10
|
steps:
|
11
11
|
- uses: actions/checkout@v1
|
12
|
-
-
|
13
|
-
uses: actions/setup-ruby@v1
|
12
|
+
- uses: ruby/setup-ruby@v1
|
14
13
|
with:
|
15
|
-
ruby-version:
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
bundle install --jobs 4 --retry 3
|
20
|
-
bundle exec rake
|
14
|
+
ruby-version: '3.3'
|
15
|
+
bundler-cache: true
|
16
|
+
- name: Run tests
|
17
|
+
run: bundle exec rake
|
data/.standard.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby_version: 3.0
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,61 +1,79 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eiwa (0.1.
|
5
|
-
nokogiri
|
4
|
+
eiwa (0.1.2)
|
5
|
+
nokogiri (= 1.14.5)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
ast (2.4.
|
11
|
-
|
10
|
+
ast (2.4.2)
|
11
|
+
json (2.7.1)
|
12
|
+
language_server-protocol (3.17.0.3)
|
13
|
+
lint_roller (1.1.0)
|
14
|
+
m (1.6.2)
|
15
|
+
method_source (>= 0.6.7)
|
16
|
+
rake (>= 0.9.2.2)
|
12
17
|
method_source (1.0.0)
|
13
|
-
mini_portile2 (2.5
|
14
|
-
minitest (5.
|
15
|
-
nokogiri (1.
|
16
|
-
mini_portile2 (~> 2.
|
18
|
+
mini_portile2 (2.8.5)
|
19
|
+
minitest (5.22.2)
|
20
|
+
nokogiri (1.14.5)
|
21
|
+
mini_portile2 (~> 2.8.0)
|
17
22
|
racc (~> 1.4)
|
18
|
-
parallel (1.
|
19
|
-
parser (3.
|
23
|
+
parallel (1.24.0)
|
24
|
+
parser (3.3.0.5)
|
20
25
|
ast (~> 2.4.1)
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
racc
|
27
|
+
racc (1.7.3)
|
28
|
+
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)
|
33
|
+
json (~> 2.3)
|
34
|
+
language_server-protocol (>= 3.17.0)
|
30
35
|
parallel (~> 1.10)
|
31
|
-
parser (>=
|
36
|
+
parser (>= 3.3.0.2)
|
32
37
|
rainbow (>= 2.2.2, < 4.0)
|
33
38
|
regexp_parser (>= 1.8, < 3.0)
|
34
|
-
rexml
|
35
|
-
rubocop-ast (>= 1.
|
39
|
+
rexml (>= 3.2.5, < 4.0)
|
40
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
36
41
|
ruby-progressbar (~> 1.7)
|
37
|
-
unicode-display_width (>=
|
38
|
-
rubocop-ast (1.
|
39
|
-
parser (>=
|
40
|
-
rubocop-performance (1.
|
41
|
-
rubocop (>=
|
42
|
-
rubocop-ast (>=
|
43
|
-
ruby-progressbar (1.
|
44
|
-
standard (
|
45
|
-
|
46
|
-
|
47
|
-
|
42
|
+
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)
|
46
|
+
rubocop (>= 1.48.1, < 2.0)
|
47
|
+
rubocop-ast (>= 1.30.0, < 2.0)
|
48
|
+
ruby-progressbar (1.13.0)
|
49
|
+
standard (1.34.0)
|
50
|
+
language_server-protocol (~> 3.17.0.2)
|
51
|
+
lint_roller (~> 1.0)
|
52
|
+
rubocop (~> 1.60)
|
53
|
+
standard-custom (~> 1.0.0)
|
54
|
+
standard-performance (~> 1.3)
|
55
|
+
standard-custom (1.0.2)
|
56
|
+
lint_roller (~> 1.0)
|
57
|
+
rubocop (~> 1.50)
|
58
|
+
standard-performance (1.3.1)
|
59
|
+
lint_roller (~> 1.1)
|
60
|
+
rubocop-performance (~> 1.20.2)
|
61
|
+
unicode-display_width (2.5.0)
|
48
62
|
|
49
63
|
PLATFORMS
|
50
|
-
|
64
|
+
aarch64-linux
|
65
|
+
arm-linux
|
66
|
+
arm64-darwin
|
67
|
+
x86-linux
|
68
|
+
x86_64-darwin
|
69
|
+
x86_64-linux
|
51
70
|
|
52
71
|
DEPENDENCIES
|
53
|
-
bundler (~> 1.17)
|
54
72
|
eiwa!
|
55
|
-
|
56
|
-
|
57
|
-
rake
|
73
|
+
m
|
74
|
+
minitest
|
75
|
+
rake
|
58
76
|
standard
|
59
77
|
|
60
78
|
BUNDLED WITH
|
61
|
-
|
79
|
+
2.5.4
|
data/eiwa.gemspec
CHANGED
@@ -19,10 +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"
|
23
|
-
spec.add_development_dependency "bundler", "~> 1.17"
|
24
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
25
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
26
|
-
spec.add_development_dependency "standard"
|
27
|
-
spec.add_development_dependency "pry"
|
22
|
+
spec.add_dependency "nokogiri", "1.14.5"
|
28
23
|
end
|
data/lib/eiwa/tag/antonym.rb
CHANGED
data/lib/eiwa/tag/any.rb
CHANGED
@@ -12,7 +12,7 @@ module Eiwa
|
|
12
12
|
def end_self
|
13
13
|
parts = @characters.split("・")
|
14
14
|
@text = parts.first
|
15
|
-
@reading = parts[1
|
15
|
+
@reading = parts[1..].find { |part| /[^0-9]/.match(part) }
|
16
16
|
@sense_ordinal = parts.find { |part| /^[0-9]+$/.match(part) }&.to_i
|
17
17
|
end
|
18
18
|
|
@@ -24,7 +24,7 @@ module Eiwa
|
|
24
24
|
alias_method :==, :eql?
|
25
25
|
|
26
26
|
def hash
|
27
|
-
@text
|
27
|
+
[@text, @reading, @sense_ordinal].hash
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/eiwa/tag/definition.rb
CHANGED
data/lib/eiwa/tag/entity.rb
CHANGED
data/lib/eiwa/version.rb
CHANGED
metadata
CHANGED
@@ -1,99 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eiwa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Searls
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.14.5
|
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:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '1.17'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.17'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '13.0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '13.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: minitest
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '5.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '5.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: standard
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: pry
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
26
|
+
version: 1.14.5
|
97
27
|
description:
|
98
28
|
email:
|
99
29
|
- searls@gmail.com
|
@@ -103,6 +33,7 @@ extra_rdoc_files: []
|
|
103
33
|
files:
|
104
34
|
- ".github/workflows/ruby.yml"
|
105
35
|
- ".gitignore"
|
36
|
+
- ".standard.yml"
|
106
37
|
- Gemfile
|
107
38
|
- Gemfile.lock
|
108
39
|
- LICENSE.txt
|
@@ -153,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
84
|
- !ruby/object:Gem::Version
|
154
85
|
version: '0'
|
155
86
|
requirements: []
|
156
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.5.4
|
157
88
|
signing_key:
|
158
89
|
specification_version: 4
|
159
90
|
summary: Parses the JMDict Japanese-English dictionary
|