eiwa 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: ef277fcf117e28dcbc32fc6e17c8d34f1783b546f9adf5b9452e04d073d31ee8
4
- data.tar.gz: d1e744a10c6e688e532da9855790ba1a9fad89338b75f0924ee9a5f90294e3ee
3
+ metadata.gz: 87f19acddb018cdf9b99c46b8cd03b38c7ae13d2d006fe31938cf76ebba9da87
4
+ data.tar.gz: e1049fd3df59e89d3b45998a8bf7fbd0620f29a4ba5908a28df33bf72cbd1bc2
5
5
  SHA512:
6
- metadata.gz: '090773b16ffc636c53cbd957e5f6131449c455bf4e00c39908f78403c2c284bd7364b9e33ea9f6d8ac9a930777cfdc1f67e296d701ee7224fd6572da812f5f93'
7
- data.tar.gz: d43f3a9ded86a0a3238eaac28c86b1d3d7b95dbe3d7a7c6eb8fe389014c7393600009f0c79f69cf7b06ff8dcd84650c0fa679524703cd36207b795b994892375
6
+ metadata.gz: 5900ba9dd6094ca0b376f1a7067df65ddd289b6ef74c9b111ed44a28ac07daf7c32c6b92d898b85fc93278718e1e10fb674a90ae51df3b3303a80d4bf6365de2
7
+ data.tar.gz: ced4f6719aab797bbb5b1ba251f285751ae15982f36f5c296ebf3e6b607feff0350109a284cc8aee768c2cd248d7aa1f81227567ff549961bc4e37ec4193131b
@@ -9,12 +9,9 @@ jobs:
9
9
 
10
10
  steps:
11
11
  - uses: actions/checkout@v1
12
- - name: Set up Ruby 2.6
13
- uses: actions/setup-ruby@v1
12
+ - uses: ruby/setup-ruby@v1
14
13
  with:
15
- ruby-version: 2.6.x
16
- - name: Build and test with Rake
17
- run: |
18
- gem install bundler
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
@@ -2,5 +2,9 @@ source "https://rubygems.org"
2
2
 
3
3
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
- # Specify your gem's dependencies in eiwa.gemspec
6
5
  gemspec
6
+
7
+ gem "standard"
8
+ gem "minitest"
9
+ gem "rake"
10
+ gem "m"
data/Gemfile.lock CHANGED
@@ -1,61 +1,79 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eiwa (0.1.0)
5
- nokogiri
4
+ eiwa (0.1.1)
5
+ nokogiri (~> 1.15.5)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- ast (2.4.1)
11
- coderay (1.1.3)
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.0)
14
- minitest (5.14.3)
15
- nokogiri (1.11.1)
16
- mini_portile2 (~> 2.5.0)
18
+ mini_portile2 (2.8.5)
19
+ minitest (5.22.2)
20
+ nokogiri (1.15.5)
21
+ mini_portile2 (~> 2.8.2)
17
22
  racc (~> 1.4)
18
- parallel (1.20.1)
19
- parser (3.0.0.0)
23
+ parallel (1.24.0)
24
+ parser (3.3.0.5)
20
25
  ast (~> 2.4.1)
21
- pry (0.13.1)
22
- coderay (~> 1.1)
23
- method_source (~> 1.0)
24
- racc (1.5.2)
25
- rainbow (3.0.0)
26
- rake (13.0.3)
27
- regexp_parser (2.0.3)
28
- rexml (3.2.4)
29
- rubocop (1.7.0)
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 (>= 2.7.1.5)
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.2.0, < 2.0)
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 (>= 1.4.0, < 2.0)
38
- rubocop-ast (1.4.0)
39
- parser (>= 2.7.1.5)
40
- rubocop-performance (1.9.2)
41
- rubocop (>= 0.90.0, < 2.0)
42
- rubocop-ast (>= 0.4.0)
43
- ruby-progressbar (1.11.0)
44
- standard (0.11.0)
45
- rubocop (= 1.7.0)
46
- rubocop-performance (= 1.9.2)
47
- unicode-display_width (1.7.0)
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
- ruby
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
- minitest (~> 5.0)
56
- pry
57
- rake (~> 13.0)
73
+ m
74
+ minitest
75
+ rake
58
76
  standard
59
77
 
60
78
  BUNDLED WITH
61
- 1.17.3
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.15.5"
28
23
  end
@@ -21,7 +21,7 @@ module Eiwa
21
21
  alias_method :==, :eql?
22
22
 
23
23
  def hash
24
- @text.hash + @sense_ordinal.hash
24
+ [@text, @sense_ordinal].hash
25
25
  end
26
26
  end
27
27
  end
data/lib/eiwa/tag/any.rb CHANGED
@@ -5,7 +5,7 @@ module Eiwa
5
5
 
6
6
  def start(tag_name, attrs, parent)
7
7
  @tag_name = tag_name
8
- @attrs = Hash[attrs]
8
+ @attrs = attrs.to_h
9
9
  @parent = parent
10
10
  end
11
11
 
@@ -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..-1].find { |part| /[^0-9]/.match(part) }
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.hash + @reading.hash + @sense_ordinal.hash
27
+ [@text, @reading, @sense_ordinal].hash
28
28
  end
29
29
  end
30
30
  end
@@ -38,7 +38,7 @@ module Eiwa
38
38
  alias_method :==, :eql?
39
39
 
40
40
  def hash
41
- @text.hash + @language.hash + @gender.hash + @type.hash
41
+ [@text, @language, @gender, @type].hash
42
42
  end
43
43
  end
44
44
  end
@@ -20,7 +20,7 @@ module Eiwa
20
20
  alias_method :==, :eql?
21
21
 
22
22
  def hash
23
- @code.hash + @text.hash
23
+ [@code, @text].hash
24
24
  end
25
25
  end
26
26
  end
@@ -26,7 +26,7 @@ module Eiwa
26
26
  alias_method :==, :eql?
27
27
 
28
28
  def hash
29
- @text.hash + @language.hash + @wasei.hash + @type.hash
29
+ [@text, @language, @wasei, @type].hash
30
30
  end
31
31
  end
32
32
  end
data/lib/eiwa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eiwa
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-19 00:00:00.000000000 Z
11
+ date: 2024-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
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
15
  requirement: !ruby/object:Gem::Requirement
58
16
  requirements:
59
17
  - - "~>"
60
18
  - !ruby/object:Gem::Version
61
- version: '5.0'
62
- type: :development
19
+ version: 1.15.5
20
+ type: :runtime
63
21
  prerelease: false
64
22
  version_requirements: !ruby/object:Gem::Requirement
65
23
  requirements:
66
24
  - - "~>"
67
25
  - !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.15.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.1.4
87
+ rubygems_version: 3.5.4
157
88
  signing_key:
158
89
  specification_version: 4
159
90
  summary: Parses the JMDict Japanese-English dictionary