ikku 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: f2bde3418b9c17c20a73512609a82d6ece6ce596
4
- data.tar.gz: 76ab9007031d69cd1e290b469fbfd9921379f0e4
3
+ metadata.gz: a70c684dd795a3e2b7f41e2e48045ad85ce25771
4
+ data.tar.gz: 18cf28254326d74bfc6b7594530bbde28b224c53
5
5
  SHA512:
6
- metadata.gz: 6247ab019d5dc0cfb5196795e7091c26e0d285ec4800da4077552585e1328a38a4d64fb7cdecba68653c59235e7315da39ba79fd163e1fc0ada242bfadbbd0a0
7
- data.tar.gz: 0019ea4cc1a6fd9dcec4ff99ec7d955e1f81ae9a418a0253743d7fef73eb2b517f6a77d97e1b6fc19752a25ad2d31fcbf37278905d21125f289e4e0040d037f4
6
+ metadata.gz: 70e986f93c25c2b17ee3c9bfea3804491641d408bc8aeb2502a5614f4c1a43d2d994628f85df3574c124c3cd8996701794044f370206da4639d5069a600c79b3
7
+ data.tar.gz: eb527ec36dcc1570296e3026d34492c26571f4501e757f38a46181bff2165e35decbf5151ea8e4d01242504eef925bdc45f68c69814b53096e2f08e1ff319e87
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.4
2
+ - Fix bug of Ikku::Scanner#consume
3
+
1
4
  ## 0.0.3
2
5
  - Change rule option interface
3
6
 
data/lib/ikku.rb CHANGED
@@ -53,6 +53,11 @@ module Ikku
53
53
  @rule = rule
54
54
  end
55
55
 
56
+ # @note Pronounciation count
57
+ def count
58
+ @count ||= 0
59
+ end
60
+
56
61
  def scan
57
62
  if has_valid_first_node? && has_valid_last_node?
58
63
  @nodes.each_with_index do |node, index|
@@ -84,11 +89,6 @@ module Ikku
84
89
  end
85
90
  end
86
91
 
87
- # @note Pronounciation count
88
- def count
89
- @count ||= 0
90
- end
91
-
92
92
  def first_of_phrase?
93
93
  rule.inject([]) do |array, length|
94
94
  array << array.last.to_i + length
data/lib/ikku/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ikku
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
4
+ version: 0.0.4
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-13 00:00:00.000000000 Z
11
+ date: 2015-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: natto