ruby_speech 1.1.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -97,32 +97,22 @@ describe RubySpeech do
97
97
  context "with an NLSML document" do
98
98
  let :example_document do
99
99
  '''
100
- <result xmlns="http://www.w3c.org/2000/11/nlsml" xmlns:xf="http://www.w3.org/2000/xforms" xmlns:myApp="foo" grammar="http://flight">
100
+ <result xmlns="http://www.ietf.org/xml/ns/mrcpv2" grammar="http://flight">
101
101
  <interpretation confidence="60">
102
102
  <input mode="speech">I want to go to Pittsburgh</input>
103
- <xf:model>
104
- <xf:group name="airline">
105
- <xf:string name="to_city"/>
106
- </xf:group>
107
- </xf:model>
108
- <xf:instance>
109
- <myApp:airline>
110
- <myApp:to_city>Pittsburgh</myApp:to_city>
111
- </myApp:airline>
112
- </xf:instance>
103
+ <instance>
104
+ <airline>
105
+ <to_city>Pittsburgh</to_city>
106
+ </airline>
107
+ </instance>
113
108
  </interpretation>
114
109
  <interpretation confidence="40">
115
110
  <input>I want to go to Stockholm</input>
116
- <xf:model>
117
- <xf:group name="airline">
118
- <xf:string name="to_city"/>
119
- </xf:group>
120
- </xf:model>
121
- <xf:instance>
122
- <myApp:airline>
123
- <myApp:to_city>Stockholm</myApp:to_city>
124
- </myApp:airline>
125
- </xf:instance>
111
+ <instance>
112
+ <airline>
113
+ <to_city>Stockholm</to_city>
114
+ </airline>
115
+ </instance>
126
116
  </interpretation>
127
117
  </result>
128
118
  '''
@@ -16,7 +16,6 @@ GRXML_SCHEMA = Nokogiri::XML::Schema File.open(schema_file_path)
16
16
  puts "Finished loading schema."
17
17
 
18
18
  RSpec.configure do |config|
19
- config.mock_with :mocha
20
19
  config.filter_run :focus => true
21
20
  config.run_all_when_everything_filtered = true
22
21
  end
metadata CHANGED
@@ -1,241 +1,215 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_speech
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
5
- prerelease:
4
+ version: 2.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ben Langfeld
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-02 00:00:00.000000000 Z
11
+ date: 2013-04-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: niceogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.1'
22
- - - ! '>='
20
+ - - '>='
23
21
  - !ruby/object:Gem::Version
24
22
  version: 1.1.1
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
27
  - - ~>
31
28
  - !ruby/object:Gem::Version
32
29
  version: '1.1'
33
- - - ! '>='
30
+ - - '>='
34
31
  - !ruby/object:Gem::Version
35
32
  version: 1.1.1
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: nokogiri
38
35
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
37
  - - ~>
42
38
  - !ruby/object:Gem::Version
43
39
  version: '1.5'
44
- - - ! '>='
40
+ - - '>='
45
41
  - !ruby/object:Gem::Version
46
42
  version: 1.5.6
47
43
  type: :runtime
48
44
  prerelease: false
49
45
  version_requirements: !ruby/object:Gem::Requirement
50
- none: false
51
46
  requirements:
52
47
  - - ~>
53
48
  - !ruby/object:Gem::Version
54
49
  version: '1.5'
55
- - - ! '>='
50
+ - - '>='
56
51
  - !ruby/object:Gem::Version
57
52
  version: 1.5.6
58
53
  - !ruby/object:Gem::Dependency
59
54
  name: activesupport
60
55
  requirement: !ruby/object:Gem::Requirement
61
- none: false
62
56
  requirements:
63
- - - ! '>='
57
+ - - '>='
64
58
  - !ruby/object:Gem::Version
65
59
  version: 3.0.7
66
60
  type: :runtime
67
61
  prerelease: false
68
62
  version_requirements: !ruby/object:Gem::Requirement
69
- none: false
70
63
  requirements:
71
- - - ! '>='
64
+ - - '>='
72
65
  - !ruby/object:Gem::Version
73
66
  version: 3.0.7
74
67
  - !ruby/object:Gem::Dependency
75
68
  name: bundler
76
69
  requirement: !ruby/object:Gem::Requirement
77
- none: false
78
70
  requirements:
79
- - - ! '>='
71
+ - - '>='
80
72
  - !ruby/object:Gem::Version
81
73
  version: 1.0.0
82
74
  type: :development
83
75
  prerelease: false
84
76
  version_requirements: !ruby/object:Gem::Requirement
85
- none: false
86
77
  requirements:
87
- - - ! '>='
78
+ - - '>='
88
79
  - !ruby/object:Gem::Version
89
80
  version: 1.0.0
90
81
  - !ruby/object:Gem::Dependency
91
82
  name: rspec
92
83
  requirement: !ruby/object:Gem::Requirement
93
- none: false
94
84
  requirements:
95
- - - ! '>='
85
+ - - '>='
96
86
  - !ruby/object:Gem::Version
97
87
  version: '2.7'
98
88
  type: :development
99
89
  prerelease: false
100
90
  version_requirements: !ruby/object:Gem::Requirement
101
- none: false
102
91
  requirements:
103
- - - ! '>='
92
+ - - '>='
104
93
  - !ruby/object:Gem::Version
105
94
  version: '2.7'
106
95
  - !ruby/object:Gem::Dependency
107
96
  name: ci_reporter
108
97
  requirement: !ruby/object:Gem::Requirement
109
- none: false
110
98
  requirements:
111
- - - ! '>='
99
+ - - '>='
112
100
  - !ruby/object:Gem::Version
113
101
  version: 1.6.3
114
102
  type: :development
115
103
  prerelease: false
116
104
  version_requirements: !ruby/object:Gem::Requirement
117
- none: false
118
105
  requirements:
119
- - - ! '>='
106
+ - - '>='
120
107
  - !ruby/object:Gem::Version
121
108
  version: 1.6.3
122
109
  - !ruby/object:Gem::Dependency
123
110
  name: yard
124
111
  requirement: !ruby/object:Gem::Requirement
125
- none: false
126
112
  requirements:
127
- - - ! '>='
113
+ - - '>='
128
114
  - !ruby/object:Gem::Version
129
115
  version: 0.7.0
130
116
  type: :development
131
117
  prerelease: false
132
118
  version_requirements: !ruby/object:Gem::Requirement
133
- none: false
134
119
  requirements:
135
- - - ! '>='
120
+ - - '>='
136
121
  - !ruby/object:Gem::Version
137
122
  version: 0.7.0
138
123
  - !ruby/object:Gem::Dependency
139
124
  name: rake
140
125
  requirement: !ruby/object:Gem::Requirement
141
- none: false
142
126
  requirements:
143
- - - ! '>='
127
+ - - '>='
144
128
  - !ruby/object:Gem::Version
145
129
  version: '0'
146
130
  type: :development
147
131
  prerelease: false
148
132
  version_requirements: !ruby/object:Gem::Requirement
149
- none: false
150
133
  requirements:
151
- - - ! '>='
134
+ - - '>='
152
135
  - !ruby/object:Gem::Version
153
136
  version: '0'
154
137
  - !ruby/object:Gem::Dependency
155
- name: mocha
138
+ name: guard
156
139
  requirement: !ruby/object:Gem::Requirement
157
- none: false
158
140
  requirements:
159
- - - ! '>='
141
+ - - '>='
160
142
  - !ruby/object:Gem::Version
161
- version: '0'
143
+ version: 0.9.0
162
144
  type: :development
163
145
  prerelease: false
164
146
  version_requirements: !ruby/object:Gem::Requirement
165
- none: false
166
147
  requirements:
167
- - - ! '>='
148
+ - - '>='
168
149
  - !ruby/object:Gem::Version
169
- version: '0'
150
+ version: 0.9.0
170
151
  - !ruby/object:Gem::Dependency
171
- name: i18n
152
+ name: guard-rspec
172
153
  requirement: !ruby/object:Gem::Requirement
173
- none: false
174
154
  requirements:
175
- - - ! '>='
155
+ - - '>='
176
156
  - !ruby/object:Gem::Version
177
157
  version: '0'
178
158
  type: :development
179
159
  prerelease: false
180
160
  version_requirements: !ruby/object:Gem::Requirement
181
- none: false
182
161
  requirements:
183
- - - ! '>='
162
+ - - '>='
184
163
  - !ruby/object:Gem::Version
185
164
  version: '0'
186
165
  - !ruby/object:Gem::Dependency
187
- name: guard
166
+ name: ruby_gntp
188
167
  requirement: !ruby/object:Gem::Requirement
189
- none: false
190
168
  requirements:
191
- - - ! '>='
169
+ - - '>='
192
170
  - !ruby/object:Gem::Version
193
- version: 0.9.0
171
+ version: '0'
194
172
  type: :development
195
173
  prerelease: false
196
174
  version_requirements: !ruby/object:Gem::Requirement
197
- none: false
198
175
  requirements:
199
- - - ! '>='
176
+ - - '>='
200
177
  - !ruby/object:Gem::Version
201
- version: 0.9.0
178
+ version: '0'
202
179
  - !ruby/object:Gem::Dependency
203
- name: guard-rspec
180
+ name: guard-rake
204
181
  requirement: !ruby/object:Gem::Requirement
205
- none: false
206
182
  requirements:
207
- - - ! '>='
183
+ - - '>='
208
184
  - !ruby/object:Gem::Version
209
185
  version: '0'
210
186
  type: :development
211
187
  prerelease: false
212
188
  version_requirements: !ruby/object:Gem::Requirement
213
- none: false
214
189
  requirements:
215
- - - ! '>='
190
+ - - '>='
216
191
  - !ruby/object:Gem::Version
217
192
  version: '0'
218
193
  - !ruby/object:Gem::Dependency
219
- name: ruby_gntp
194
+ name: rake-compiler
220
195
  requirement: !ruby/object:Gem::Requirement
221
- none: false
222
196
  requirements:
223
- - - ! '>='
197
+ - - '>='
224
198
  - !ruby/object:Gem::Version
225
199
  version: '0'
226
200
  type: :development
227
201
  prerelease: false
228
202
  version_requirements: !ruby/object:Gem::Requirement
229
- none: false
230
203
  requirements:
231
- - - ! '>='
204
+ - - '>='
232
205
  - !ruby/object:Gem::Version
233
206
  version: '0'
234
207
  description: Prepare SSML and GRXML documents with ease
235
208
  email:
236
209
  - ben@langfeld.me
237
210
  executables: []
238
- extensions: []
211
+ extensions:
212
+ - ext/ruby_speech/extconf.rb
239
213
  extra_rdoc_files: []
240
214
  files:
241
215
  - .gitignore
@@ -252,6 +226,10 @@ files:
252
226
  - assets/synthesis-core.xsd
253
227
  - assets/synthesis.xsd
254
228
  - assets/xml.xsd
229
+ - ext/ruby_speech/RubySpeechGRXMLMatcher.java
230
+ - ext/ruby_speech/RubySpeechService.java
231
+ - ext/ruby_speech/extconf.rb
232
+ - ext/ruby_speech/ruby_speech.c
255
233
  - lib/ruby_speech.rb
256
234
  - lib/ruby_speech/generic_element.rb
257
235
  - lib/ruby_speech/grxml.rb
@@ -259,6 +237,7 @@ files:
259
237
  - lib/ruby_speech/grxml/grammar.rb
260
238
  - lib/ruby_speech/grxml/item.rb
261
239
  - lib/ruby_speech/grxml/match.rb
240
+ - lib/ruby_speech/grxml/matcher.rb
262
241
  - lib/ruby_speech/grxml/no_match.rb
263
242
  - lib/ruby_speech/grxml/one_of.rb
264
243
  - lib/ruby_speech/grxml/potential_match.rb
@@ -291,6 +270,7 @@ files:
291
270
  - spec/ruby_speech/grxml/grammar_spec.rb
292
271
  - spec/ruby_speech/grxml/item_spec.rb
293
272
  - spec/ruby_speech/grxml/match_spec.rb
273
+ - spec/ruby_speech/grxml/matcher_spec.rb
294
274
  - spec/ruby_speech/grxml/no_match_spec.rb
295
275
  - spec/ruby_speech/grxml/one_of_spec.rb
296
276
  - spec/ruby_speech/grxml/potential_match_spec.rb
@@ -319,38 +299,32 @@ files:
319
299
  - spec/support/matchers.rb
320
300
  homepage: https://github.com/benlangfeld/ruby_speech
321
301
  licenses: []
302
+ metadata: {}
322
303
  post_install_message:
323
304
  rdoc_options: []
324
305
  require_paths:
325
306
  - lib
326
307
  required_ruby_version: !ruby/object:Gem::Requirement
327
- none: false
328
308
  requirements:
329
- - - ! '>='
309
+ - - '>='
330
310
  - !ruby/object:Gem::Version
331
311
  version: '0'
332
- segments:
333
- - 0
334
- hash: -2548283956083168054
335
312
  required_rubygems_version: !ruby/object:Gem::Requirement
336
- none: false
337
313
  requirements:
338
- - - ! '>='
314
+ - - '>='
339
315
  - !ruby/object:Gem::Version
340
316
  version: '0'
341
- segments:
342
- - 0
343
- hash: -2548283956083168054
344
317
  requirements: []
345
318
  rubyforge_project: ruby_speech
346
- rubygems_version: 1.8.24
319
+ rubygems_version: 2.0.0
347
320
  signing_key:
348
- specification_version: 3
349
- summary: A ruby library for TTS & ASR document preparation
321
+ specification_version: 4
322
+ summary: A Ruby library for TTS & ASR document preparation
350
323
  test_files:
351
324
  - spec/ruby_speech/grxml/grammar_spec.rb
352
325
  - spec/ruby_speech/grxml/item_spec.rb
353
326
  - spec/ruby_speech/grxml/match_spec.rb
327
+ - spec/ruby_speech/grxml/matcher_spec.rb
354
328
  - spec/ruby_speech/grxml/no_match_spec.rb
355
329
  - spec/ruby_speech/grxml/one_of_spec.rb
356
330
  - spec/ruby_speech/grxml/potential_match_spec.rb