suika 0.3.2 → 0.3.3

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: a03decb52a47468d332c6177131b627fd961c532077d6c92dbf66b8558d94a9d
4
- data.tar.gz: 85c8f68c3772669dee4cdb7a8c1a2b3149936c96b391294deafa3e2fb3c6e66c
3
+ metadata.gz: 7d6745438c0a8281903fe9cd22adb6db0b4226b3b8b0677e90ecba65fc287b8c
4
+ data.tar.gz: 4c512813f3c9b14083fa53c91dc8c95e570344c836c1303147f25c3e3eab35f9
5
5
  SHA512:
6
- metadata.gz: 1a277d7b595ad52d21e5d3ffc179e11bf555cf8ee0680c0f4d9ba77206ea77677208cd0c6b54342b8fc689c3213ae365a8802b58560e6dde4780f8352318b1c7
7
- data.tar.gz: 0c5da3097be496973eb5b52e13a89e0d71d410972524a5a53e3f3e1eed8f98b21dd17cb7758c45297caabe5daab155111d53dc036b19ec40e38f05e1b65852d5
6
+ metadata.gz: 5b0f9ce528cb4751399e5976fb744c4eee8300044ca8dbe10f26b90e25ef9e63764ee7b2319ae0ab7dff63ad03449d88f0ccd7df89765db19cbcce7479480a7d
7
+ data.tar.gz: 828cdce758ac69c326a2d88dd8a72744434e2ac7eca70aa773b37f06a9f92fd3199963cb2b153ec8bfe4edecbfb0478676036a236514c69c6b1f799848a6fdbd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.3
2
+
3
+ - Add csv and nkf gems to runtime dependencies for Ruby 3.4.
4
+ - Refactor codes and configs with RuboCop.
5
+
1
6
  ## 0.3.2
2
7
 
3
8
  - Refactor codes and configs with RuboCop.
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2020-2022 Atsushi Tatsuma
1
+ Copyright (c) 2020-2024 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Suika
2
2
 
3
3
  [![Build Status](https://github.com/yoshoku/suika/workflows/build/badge.svg)](https://github.com/yoshoku/suika/actions?query=workflow%3Abuild)
4
- [![Coverage Status](https://coveralls.io/repos/github/yoshoku/suika/badge.svg?branch=main)](https://coveralls.io/github/yoshoku/suika?branch=main)
5
4
  [![Gem Version](https://badge.fury.io/rb/suika.svg)](https://badge.fury.io/rb/suika)
6
5
  [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/suika/blob/main/LICENSE.txt)
7
6
  [![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://rubydoc.info/gems/suika)
data/lib/suika/tagger.rb CHANGED
@@ -24,7 +24,7 @@ module Suika
24
24
  class Tagger
25
25
  # Create a new tagger by loading the built-in binary dictionary.
26
26
  def initialize
27
- raise IOError, 'SHA1 digest of dictionary file does not match.' unless DICTIONARY_KEY == Digest::SHA1.file(DICTIONARY_PATH).to_s
27
+ raise IOError, 'SHA1 digest of dictionary file does not match.' unless Digest::SHA1.file(DICTIONARY_PATH).to_s == DICTIONARY_KEY
28
28
 
29
29
  @sysdic = Marshal.load(Zlib::GzipReader.open(DICTIONARY_PATH, &:read))
30
30
  @trie = DartsClone::DoubleArray.new
@@ -52,7 +52,7 @@ module Suika
52
52
  features[indices[i]].each do |el|
53
53
  lattice.insert(start, start + word.length, word, false, el[0].to_i, el[1].to_i, el[2].to_i, el[3..-1])
54
54
  end
55
- step = word.length if word.length < step # rubocop:disable Metrics/BlockNesting
55
+ step = word.length if word.length < step
56
56
  end
57
57
  end
58
58
  end
data/lib/suika/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Suika is a Japanese morphological analyzer written in pure Ruby.
4
4
  module Suika
5
5
  # The version of Suika you are using.
6
- VERSION = '0.3.2'
6
+ VERSION = '0.3.3'
7
7
  end
metadata CHANGED
@@ -1,15 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: suika
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2022-06-19 00:00:00.000000000 Z
10
+ date: 2024-12-29 00:00:00.000000000 Z
12
11
  dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: csv
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 3.1.9
19
+ type: :runtime
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: 3.1.9
13
26
  - !ruby/object:Gem::Dependency
14
27
  name: dartsclone
15
28
  requirement: !ruby/object:Gem::Requirement
@@ -24,6 +37,20 @@ dependencies:
24
37
  - - ">="
25
38
  - !ruby/object:Gem::Version
26
39
  version: 0.2.0
40
+ - !ruby/object:Gem::Dependency
41
+ name: nkf
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.1.1
47
+ type: :runtime
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.1.1
27
54
  description: Suika is a Japanese morphological analyzer written in pure Ruby.
28
55
  email:
29
56
  - yoshoku@outlook.com
@@ -56,7 +83,6 @@ metadata:
56
83
  changelog_uri: https://github.com/yoshoku/suika/blob/main/CHANGELOG.md
57
84
  documentation_uri: https://rubydoc.info/gems/suika
58
85
  rubygems_mfa_required: 'true'
59
- post_install_message:
60
86
  rdoc_options: []
61
87
  require_paths:
62
88
  - lib
@@ -71,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
97
  - !ruby/object:Gem::Version
72
98
  version: '0'
73
99
  requirements: []
74
- rubygems_version: 3.2.33
75
- signing_key:
100
+ rubygems_version: 3.6.2
76
101
  specification_version: 4
77
102
  summary: Suika is a Japanese morphological analyzer written in pure Ruby.
78
103
  test_files: []