ruby_speech 2.1.0 → 2.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
  SHA1:
3
- metadata.gz: 412147ee2efc1f9e8db108476c6939cc8723a68b
4
- data.tar.gz: c73dbaad254dd7e90d1f08520a147bb9ebcbe20a
3
+ metadata.gz: 1a8d3e73e5f227d7d3da08899c03911a31608f8d
4
+ data.tar.gz: 56f12469b5e17e34b587a0158b7cbe112db4f5a4
5
5
  SHA512:
6
- metadata.gz: 4a4be1f240f91097e810e8394619c6efd9a7b4e2bf0ef817d0af65f313fcfe19d992c5e1d1ca29a06b355fd931fc8c70d4febe58221499a531c440c17b24b6eb
7
- data.tar.gz: f734ad2b4103ed7c21a9d15e0abe7141a4ed4edcc1ba8b6c830e4fc37254fc466c1c95cd61c15dc6002437ea6a83abb2dbe95fef8ee012cb404154de0437099a
6
+ metadata.gz: 041a96833583708890574c64eb659a0d1898b4d7b86296a6ca0932ea3696a4918aba4bee41343689e6a30ec67f20b8761d5b44e0e5a7d9e540aa8245524f96a8
7
+ data.tar.gz: 932a81c99d79b66ea580f1377c0c4ed2b84b40fd67f3b132e650385ffa6fa2e377073c46acac5c72c2251d4b0666820fa4b1dffc93553f0261d116024b55c930
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/benlangfeld/ruby_speech)
2
2
 
3
+ # [2.1.1](https://github.com/benlangfeld/ruby_speech/compare/v2.1.0...v2.1.1) - [2013-05-09](https://rubygems.org/gems/ruby_speech/versions/2.1.1)
4
+ * Bugfix: Support numeric SISR literal tags
5
+
3
6
  # [2.1.0](https://github.com/benlangfeld/ruby_speech/compare/v2.0.2...v2.1.0) - [2013-05-07](https://rubygems.org/gems/ruby_speech/versions/2.1.0)
4
7
  * Feature: Support for SISR literal syntax
5
8
 
@@ -119,7 +119,8 @@ module RubySpeech
119
119
  match = /#{regexp_content}/.match(utterance)
120
120
  return if match.captures.all?(&:nil?)
121
121
  last_capture_index = match.captures.size - 1 - match.captures.reverse.find_index { |item| !item.nil? }
122
- match.names[last_capture_index]
122
+ group = match.names[last_capture_index]
123
+ group && group[1..-1]
123
124
  end
124
125
  end
125
126
  end
@@ -22,7 +22,7 @@ module RubySpeech
22
22
  end
23
23
 
24
24
  def regexp_content # :nodoc:
25
- "?<#{content}>"
25
+ "?<t#{content}>"
26
26
  end
27
27
  end # Tag
28
28
  end # GRXML
@@ -1,3 +1,3 @@
1
1
  module RubySpeech
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -41,7 +41,7 @@ module RubySpeech
41
41
  item do
42
42
  one_of do
43
43
  item do
44
- tag { 'foo' }
44
+ tag { '1' }
45
45
  '1'
46
46
  end
47
47
  item do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_speech
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Langfeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-07 00:00:00.000000000 Z
11
+ date: 2013-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: niceogiri