ruby_speech 2.1.0-java → 2.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -2,14 +2,14 @@
2
2
  name: ruby_speech
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.0
5
+ version: 2.1.1
6
6
  platform: java
7
7
  authors:
8
8
  - Ben Langfeld
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-08 00:00:00.000000000 Z
12
+ date: 2013-05-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: niceogiri