ikku 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: d6f5d63827d1468610c76147e2c6fd9d6636fd18
4
- data.tar.gz: 8b8ccbcaf880266c7c63fa921cc6d219151b7216
3
+ metadata.gz: 79df566316fda67742d5436f512a1f2af79e983d
4
+ data.tar.gz: 36756a87a838820552d9a97af879adfa2af34eb3
5
5
  SHA512:
6
- metadata.gz: 5120f72f6a03fbbfb46ae8c70e0a41c6ba4934e2c592bd0ff4cf467bec427a643650a883d680ef57f2d973be64881c331973df405eddc02ae50749c3cc380776
7
- data.tar.gz: e779bba1705ca3b487218ce650639a396906b0b3d360e66244652baf18e1ec8e86d6600aac500ebd7429a6e943e782d7148860d5af1332318a88855886a8e8ab
6
+ metadata.gz: d12c3b71223808be5d66209e7a35a9ab234348feec050944bea2278aac45e592a9913bf2ed0245b44da78b930a9cbf7070290976b6fd7f500ee247150979cf28
7
+ data.tar.gz: f4a5017c40e2b5f68843bab47e18b653dff24ffcf726a8594f4e113aa0d036b49ef353b50629047016ae3d2d3fe496478c3ff8d589e6720b0d17543d8729a720
@@ -1,3 +1,6 @@
1
+ ## 0.0.8
2
+ - Don't allow ikku starting with no pronounciation length node
3
+
1
4
  ## 0.0.7
2
5
  - Don't allow phrase ending with 接頭辞
3
6
 
@@ -36,7 +36,7 @@ module Ikku
36
36
  case
37
37
  when !first_of_phrase?
38
38
  false
39
- when ["、", "・", " ", " "].include?(surface)
39
+ when pronounciation_length.zero?
40
40
  false
41
41
  else
42
42
  true
@@ -1,3 +1,3 @@
1
1
  module Ikku
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -92,13 +92,21 @@ RSpec.describe Ikku::Reviewer do
92
92
  it { is_expected.to be false }
93
93
  end
94
94
 
95
- context "with phrase ending with 接頭辞" do
95
+ context "with phrase ending with 接頭詞" do
96
96
  let(:text) do
97
97
  "レバーのお汁飲んだので元気出た"
98
98
  end
99
99
 
100
100
  it { is_expected.to be false }
101
101
  end
102
+
103
+ context "with ikku starting with no pronounciation length node" do
104
+ let(:text) do
105
+ "「#{super()}"
106
+ end
107
+
108
+ it { is_expected.to be false }
109
+ end
102
110
  end
103
111
 
104
112
  describe "#search" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ikku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-16 00:00:00.000000000 Z
11
+ date: 2015-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: natto