nameko 0.5.0 → 0.5.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: aa8bfa40183c62b39a9b92361fe6b39997d2ee619d1b7af219775874836fb8d1
4
- data.tar.gz: cde44325f5429beba2e90aa9bb31ccbe8685dfd2524e988c70dd5f9129b48751
3
+ metadata.gz: 85f60aba825c055f09cd4874d8a0fff81dfec7ad38e4840d773aa0f36a9928f5
4
+ data.tar.gz: a33ee8881b468e599575393b3af1e4341c944806445def235f176fc4fe17d626
5
5
  SHA512:
6
- metadata.gz: a946d2295725ee8bc0ffd488254ad8edfac1435dcab7a419c1e7869d5c82cedb7b4b7bc7f919163ff595593ce71fa3e0fd81478772462136f6de6474afe9ba53
7
- data.tar.gz: c05da08603a4157dbbfd91daddd3075453c554a082a6e82024f4eb11530127cbf5cb0fccb7c6c88ff9bb4e0be6a47dc5a28ac078f91a36c2f10bc9d8631a367d
6
+ metadata.gz: bec081b0485dfeb7ccc48eac9b8b08172c74cdbfbae4c614a4b3e80923c55c514bb7b65dc17ff7cdebf591c64eff25615e4ff87dc3bf58fbc85dc6ca4832fac3
7
+ data.tar.gz: aaf6d6035df7442e3985613ca53b293332d1ccb36e1b0cd55651705214880f65ced15822183d4e6c0e651cdf295fdb6f850d76b51c47790063c4751f70db98b1
data/README.md CHANGED
@@ -44,11 +44,10 @@ node.posid #=> 59
44
44
  node.id #=> 1
45
45
  ```
46
46
 
47
- Nameko::Mecab#parse returns a array of `MecabNode`.
47
+ Nameko::Mecab#parse returns an array of `MecabNode`.
48
48
 
49
- The MecabNode has `feature` method.
50
- It return hash.
51
- The hash keys meaning is as follows(The key is symbol):
49
+ The MecabNode has `feature` method that return hash.
50
+ The hash's keys meaning is as follows(The key is symbol):
52
51
 
53
52
  + `pos`: 品詞(Part of speech)
54
53
  + `pos1`: 品詞細分類1(Part of speech subcategory1)
data/lib/nameko/node.rb CHANGED
@@ -58,9 +58,9 @@ class MecabNode < FFI::Struct
58
58
  private
59
59
 
60
60
  def fill_up(analysis)
61
- if !analysis[:yomi] && analysis[:surface].match(/\p{katakana}+/)
62
- analysis[:yomi] = analysis[:surface]
63
- analysis[:pronunciation] = analysis[:surface]
61
+ if !analysis[:yomi] && surface.match(/\p{katakana}+/)
62
+ analysis[:yomi] = surface
63
+ analysis[:pronunciation] = surface
64
64
  end
65
65
  analysis
66
66
  end
@@ -1,3 +1,3 @@
1
1
  module Nameko
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
data/nameko.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["sa2taka@gmail.com"]
11
11
 
12
12
  spec.summary = %q{Ruby binding for Mecab.}
13
- spec.description = %q{Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer."}
13
+ spec.description = %q{Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer.}
14
14
  spec.homepage = "https://github.com/sa2taka/nameko"
15
15
  spec.license = "MIT"
16
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nameko
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sa2taka
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.9'
69
- description: Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer."
69
+ description: Ruby binding for Mecab, Part-of-Speech and Morphological Analyzer.
70
70
  email:
71
71
  - sa2taka@gmail.com
72
72
  executables: []