punchblock 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +12 -0
  3. data/Gemfile +1 -1
  4. data/lib/punchblock/component/component_node.rb +1 -1
  5. data/lib/punchblock/component/stop.rb +2 -2
  6. data/lib/punchblock/connection/asterisk.rb +3 -3
  7. data/lib/punchblock/connection/freeswitch.rb +2 -2
  8. data/lib/punchblock/connection/xmpp.rb +1 -1
  9. data/lib/punchblock/translator.rb +1 -0
  10. data/lib/punchblock/translator/asterisk.rb +10 -9
  11. data/lib/punchblock/translator/asterisk/call.rb +15 -7
  12. data/lib/punchblock/translator/asterisk/component/asterisk/ami_action.rb +1 -1
  13. data/lib/punchblock/translator/asterisk/component/input.rb +3 -4
  14. data/lib/punchblock/translator/asterisk/component/output.rb +6 -6
  15. data/lib/punchblock/translator/asterisk/component/record.rb +7 -7
  16. data/lib/punchblock/translator/asterisk/component/stop_by_redirect.rb +3 -3
  17. data/lib/punchblock/translator/dtmf_recognizer.rb +87 -0
  18. data/lib/punchblock/translator/freeswitch.rb +9 -7
  19. data/lib/punchblock/translator/freeswitch/call.rb +6 -4
  20. data/lib/punchblock/translator/freeswitch/component/input.rb +1 -2
  21. data/lib/punchblock/translator/freeswitch/component/output.rb +1 -2
  22. data/lib/punchblock/translator/freeswitch/component/tts_output.rb +1 -1
  23. data/lib/punchblock/translator/input_component.rb +17 -64
  24. data/lib/punchblock/version.rb +1 -1
  25. data/punchblock.gemspec +1 -1
  26. data/spec/punchblock/component/input_spec.rb +1 -1
  27. data/spec/punchblock/component/output_spec.rb +33 -3
  28. data/spec/punchblock/component/record_spec.rb +1 -1
  29. data/spec/punchblock/connection/asterisk_spec.rb +3 -3
  30. data/spec/punchblock/connection/freeswitch_spec.rb +3 -2
  31. data/spec/punchblock/connection/xmpp_spec.rb +18 -6
  32. data/spec/punchblock/translator/asterisk/call_spec.rb +83 -31
  33. data/spec/punchblock/translator/asterisk/component/input_spec.rb +1 -1
  34. data/spec/punchblock/translator/asterisk/component/output_spec.rb +32 -27
  35. data/spec/punchblock/translator/asterisk/component/record_spec.rb +47 -43
  36. data/spec/punchblock/translator/asterisk/component/stop_by_redirect_spec.rb +2 -2
  37. data/spec/punchblock/translator/asterisk_spec.rb +28 -26
  38. data/spec/punchblock/translator/freeswitch/call_spec.rb +24 -15
  39. data/spec/punchblock/translator/freeswitch/component/input_spec.rb +1 -1
  40. data/spec/punchblock/translator/freeswitch/component/output_spec.rb +2 -3
  41. data/spec/punchblock/translator/freeswitch/component/record_spec.rb +1 -1
  42. data/spec/punchblock/translator/freeswitch_spec.rb +75 -18
  43. data/spec/spec_helper.rb +1 -1
  44. metadata +24 -74
data/spec/spec_helper.rb CHANGED
@@ -18,7 +18,7 @@ RSpec.configure do |config|
18
18
  end
19
19
 
20
20
  config.after :each do
21
- Object.const_defined?(:Celluloid) && Celluloid.shutdown
21
+ Celluloid.shutdown
22
22
  end
23
23
  end
24
24
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punchblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
5
- prerelease:
4
+ version: 1.8.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jason Goecke
@@ -11,12 +10,11 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-01-10 00:00:00.000000000 Z
13
+ date: 2013-03-25 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: niceogiri
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
19
  - - ~>
22
20
  - !ruby/object:Gem::Version
@@ -24,7 +22,6 @@ dependencies:
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
26
  - - ~>
30
27
  - !ruby/object:Gem::Version
@@ -32,45 +29,40 @@ dependencies:
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: nokogiri
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
33
  - - ~>
38
34
  - !ruby/object:Gem::Version
39
35
  version: '1.5'
40
- - - ! '>='
36
+ - - '>='
41
37
  - !ruby/object:Gem::Version
42
38
  version: 1.5.6
43
39
  type: :runtime
44
40
  prerelease: false
45
41
  version_requirements: !ruby/object:Gem::Requirement
46
- none: false
47
42
  requirements:
48
43
  - - ~>
49
44
  - !ruby/object:Gem::Version
50
45
  version: '1.5'
51
- - - ! '>='
46
+ - - '>='
52
47
  - !ruby/object:Gem::Version
53
48
  version: 1.5.6
54
49
  - !ruby/object:Gem::Dependency
55
50
  name: blather
56
51
  requirement: !ruby/object:Gem::Requirement
57
- none: false
58
52
  requirements:
59
- - - ! '>='
53
+ - - '>='
60
54
  - !ruby/object:Gem::Version
61
55
  version: 0.7.0
62
56
  type: :runtime
63
57
  prerelease: false
64
58
  version_requirements: !ruby/object:Gem::Requirement
65
- none: false
66
59
  requirements:
67
- - - ! '>='
60
+ - - '>='
68
61
  - !ruby/object:Gem::Version
69
62
  version: 0.7.0
70
63
  - !ruby/object:Gem::Dependency
71
64
  name: activesupport
72
65
  requirement: !ruby/object:Gem::Requirement
73
- none: false
74
66
  requirements:
75
67
  - - ~>
76
68
  - !ruby/object:Gem::Version
@@ -78,7 +70,6 @@ dependencies:
78
70
  type: :runtime
79
71
  prerelease: false
80
72
  version_requirements: !ruby/object:Gem::Requirement
81
- none: false
82
73
  requirements:
83
74
  - - ~>
84
75
  - !ruby/object:Gem::Version
@@ -86,7 +77,6 @@ dependencies:
86
77
  - !ruby/object:Gem::Dependency
87
78
  name: state_machine
88
79
  requirement: !ruby/object:Gem::Requirement
89
- none: false
90
80
  requirements:
91
81
  - - ~>
92
82
  - !ruby/object:Gem::Version
@@ -94,7 +84,6 @@ dependencies:
94
84
  type: :runtime
95
85
  prerelease: false
96
86
  version_requirements: !ruby/object:Gem::Requirement
97
- none: false
98
87
  requirements:
99
88
  - - ~>
100
89
  - !ruby/object:Gem::Version
@@ -102,7 +91,6 @@ dependencies:
102
91
  - !ruby/object:Gem::Dependency
103
92
  name: future-resource
104
93
  requirement: !ruby/object:Gem::Requirement
105
- none: false
106
94
  requirements:
107
95
  - - ~>
108
96
  - !ruby/object:Gem::Version
@@ -110,7 +98,6 @@ dependencies:
110
98
  type: :runtime
111
99
  prerelease: false
112
100
  version_requirements: !ruby/object:Gem::Requirement
113
- none: false
114
101
  requirements:
115
102
  - - ~>
116
103
  - !ruby/object:Gem::Version
@@ -118,7 +105,6 @@ dependencies:
118
105
  - !ruby/object:Gem::Dependency
119
106
  name: has-guarded-handlers
120
107
  requirement: !ruby/object:Gem::Requirement
121
- none: false
122
108
  requirements:
123
109
  - - ~>
124
110
  - !ruby/object:Gem::Version
@@ -126,7 +112,6 @@ dependencies:
126
112
  type: :runtime
127
113
  prerelease: false
128
114
  version_requirements: !ruby/object:Gem::Requirement
129
- none: false
130
115
  requirements:
131
116
  - - ~>
132
117
  - !ruby/object:Gem::Version
@@ -134,51 +119,40 @@ dependencies:
134
119
  - !ruby/object:Gem::Dependency
135
120
  name: celluloid
136
121
  requirement: !ruby/object:Gem::Requirement
137
- none: false
138
122
  requirements:
139
123
  - - ~>
140
124
  - !ruby/object:Gem::Version
141
- version: '0.12'
142
- - - ! '>='
143
- - !ruby/object:Gem::Version
144
- version: 0.12.4
125
+ version: '0.13'
145
126
  type: :runtime
146
127
  prerelease: false
147
128
  version_requirements: !ruby/object:Gem::Requirement
148
- none: false
149
129
  requirements:
150
130
  - - ~>
151
131
  - !ruby/object:Gem::Version
152
- version: '0.12'
153
- - - ! '>='
154
- - !ruby/object:Gem::Version
155
- version: 0.12.4
132
+ version: '0.13'
156
133
  - !ruby/object:Gem::Dependency
157
134
  name: ruby_ami
158
135
  requirement: !ruby/object:Gem::Requirement
159
- none: false
160
136
  requirements:
161
137
  - - ~>
162
138
  - !ruby/object:Gem::Version
163
139
  version: '1.2'
164
- - - ! '>='
140
+ - - '>='
165
141
  - !ruby/object:Gem::Version
166
142
  version: 1.2.1
167
143
  type: :runtime
168
144
  prerelease: false
169
145
  version_requirements: !ruby/object:Gem::Requirement
170
- none: false
171
146
  requirements:
172
147
  - - ~>
173
148
  - !ruby/object:Gem::Version
174
149
  version: '1.2'
175
- - - ! '>='
150
+ - - '>='
176
151
  - !ruby/object:Gem::Version
177
152
  version: 1.2.1
178
153
  - !ruby/object:Gem::Dependency
179
154
  name: ruby_fs
180
155
  requirement: !ruby/object:Gem::Requirement
181
- none: false
182
156
  requirements:
183
157
  - - ~>
184
158
  - !ruby/object:Gem::Version
@@ -186,7 +160,6 @@ dependencies:
186
160
  type: :runtime
187
161
  prerelease: false
188
162
  version_requirements: !ruby/object:Gem::Requirement
189
- none: false
190
163
  requirements:
191
164
  - - ~>
192
165
  - !ruby/object:Gem::Version
@@ -194,7 +167,6 @@ dependencies:
194
167
  - !ruby/object:Gem::Dependency
195
168
  name: ruby_speech
196
169
  requirement: !ruby/object:Gem::Requirement
197
- none: false
198
170
  requirements:
199
171
  - - ~>
200
172
  - !ruby/object:Gem::Version
@@ -202,7 +174,6 @@ dependencies:
202
174
  type: :runtime
203
175
  prerelease: false
204
176
  version_requirements: !ruby/object:Gem::Requirement
205
- none: false
206
177
  requirements:
207
178
  - - ~>
208
179
  - !ruby/object:Gem::Version
@@ -210,7 +181,6 @@ dependencies:
210
181
  - !ruby/object:Gem::Dependency
211
182
  name: bundler
212
183
  requirement: !ruby/object:Gem::Requirement
213
- none: false
214
184
  requirements:
215
185
  - - ~>
216
186
  - !ruby/object:Gem::Version
@@ -218,7 +188,6 @@ dependencies:
218
188
  type: :development
219
189
  prerelease: false
220
190
  version_requirements: !ruby/object:Gem::Requirement
221
- none: false
222
191
  requirements:
223
192
  - - ~>
224
193
  - !ruby/object:Gem::Version
@@ -226,7 +195,6 @@ dependencies:
226
195
  - !ruby/object:Gem::Dependency
227
196
  name: rspec
228
197
  requirement: !ruby/object:Gem::Requirement
229
- none: false
230
198
  requirements:
231
199
  - - ~>
232
200
  - !ruby/object:Gem::Version
@@ -234,7 +202,6 @@ dependencies:
234
202
  type: :development
235
203
  prerelease: false
236
204
  version_requirements: !ruby/object:Gem::Requirement
237
- none: false
238
205
  requirements:
239
206
  - - ~>
240
207
  - !ruby/object:Gem::Version
@@ -242,7 +209,6 @@ dependencies:
242
209
  - !ruby/object:Gem::Dependency
243
210
  name: ci_reporter
244
211
  requirement: !ruby/object:Gem::Requirement
245
- none: false
246
212
  requirements:
247
213
  - - ~>
248
214
  - !ruby/object:Gem::Version
@@ -250,7 +216,6 @@ dependencies:
250
216
  type: :development
251
217
  prerelease: false
252
218
  version_requirements: !ruby/object:Gem::Requirement
253
- none: false
254
219
  requirements:
255
220
  - - ~>
256
221
  - !ruby/object:Gem::Version
@@ -258,7 +223,6 @@ dependencies:
258
223
  - !ruby/object:Gem::Dependency
259
224
  name: yard
260
225
  requirement: !ruby/object:Gem::Requirement
261
- none: false
262
226
  requirements:
263
227
  - - ~>
264
228
  - !ruby/object:Gem::Version
@@ -266,7 +230,6 @@ dependencies:
266
230
  type: :development
267
231
  prerelease: false
268
232
  version_requirements: !ruby/object:Gem::Requirement
269
- none: false
270
233
  requirements:
271
234
  - - ~>
272
235
  - !ruby/object:Gem::Version
@@ -274,71 +237,62 @@ dependencies:
274
237
  - !ruby/object:Gem::Dependency
275
238
  name: rake
276
239
  requirement: !ruby/object:Gem::Requirement
277
- none: false
278
240
  requirements:
279
- - - ! '>='
241
+ - - '>='
280
242
  - !ruby/object:Gem::Version
281
243
  version: '0'
282
244
  type: :development
283
245
  prerelease: false
284
246
  version_requirements: !ruby/object:Gem::Requirement
285
- none: false
286
247
  requirements:
287
- - - ! '>='
248
+ - - '>='
288
249
  - !ruby/object:Gem::Version
289
250
  version: '0'
290
251
  - !ruby/object:Gem::Dependency
291
252
  name: i18n
292
253
  requirement: !ruby/object:Gem::Requirement
293
- none: false
294
254
  requirements:
295
- - - ! '>='
255
+ - - '>='
296
256
  - !ruby/object:Gem::Version
297
257
  version: '0'
298
258
  type: :development
299
259
  prerelease: false
300
260
  version_requirements: !ruby/object:Gem::Requirement
301
- none: false
302
261
  requirements:
303
- - - ! '>='
262
+ - - '>='
304
263
  - !ruby/object:Gem::Version
305
264
  version: '0'
306
265
  - !ruby/object:Gem::Dependency
307
266
  name: countdownlatch
308
267
  requirement: !ruby/object:Gem::Requirement
309
- none: false
310
268
  requirements:
311
- - - ! '>='
269
+ - - '>='
312
270
  - !ruby/object:Gem::Version
313
271
  version: '0'
314
272
  type: :development
315
273
  prerelease: false
316
274
  version_requirements: !ruby/object:Gem::Requirement
317
- none: false
318
275
  requirements:
319
- - - ! '>='
276
+ - - '>='
320
277
  - !ruby/object:Gem::Version
321
278
  version: '0'
322
279
  - !ruby/object:Gem::Dependency
323
280
  name: guard-rspec
324
281
  requirement: !ruby/object:Gem::Requirement
325
- none: false
326
282
  requirements:
327
- - - ! '>='
283
+ - - '>='
328
284
  - !ruby/object:Gem::Version
329
285
  version: '0'
330
286
  type: :development
331
287
  prerelease: false
332
288
  version_requirements: !ruby/object:Gem::Requirement
333
- none: false
334
289
  requirements:
335
- - - ! '>='
290
+ - - '>='
336
291
  - !ruby/object:Gem::Version
337
292
  version: '0'
338
293
  - !ruby/object:Gem::Dependency
339
294
  name: rb-fsevent
340
295
  requirement: !ruby/object:Gem::Requirement
341
- none: false
342
296
  requirements:
343
297
  - - ~>
344
298
  - !ruby/object:Gem::Version
@@ -346,7 +300,6 @@ dependencies:
346
300
  type: :development
347
301
  prerelease: false
348
302
  version_requirements: !ruby/object:Gem::Requirement
349
- none: false
350
303
  requirements:
351
304
  - - ~>
352
305
  - !ruby/object:Gem::Version
@@ -437,6 +390,7 @@ files:
437
390
  - lib/punchblock/translator/asterisk/component/output.rb
438
391
  - lib/punchblock/translator/asterisk/component/record.rb
439
392
  - lib/punchblock/translator/asterisk/component/stop_by_redirect.rb
393
+ - lib/punchblock/translator/dtmf_recognizer.rb
440
394
  - lib/punchblock/translator/freeswitch.rb
441
395
  - lib/punchblock/translator/freeswitch/call.rb
442
396
  - lib/punchblock/translator/freeswitch/component.rb
@@ -509,30 +463,26 @@ files:
509
463
  homepage: http://github.com/adhearsion/punchblock
510
464
  licenses:
511
465
  - MIT
466
+ metadata: {}
512
467
  post_install_message:
513
468
  rdoc_options: []
514
469
  require_paths:
515
470
  - lib
516
471
  required_ruby_version: !ruby/object:Gem::Requirement
517
- none: false
518
472
  requirements:
519
- - - ! '>='
473
+ - - '>='
520
474
  - !ruby/object:Gem::Version
521
475
  version: '0'
522
- segments:
523
- - 0
524
- hash: 1644648502358388529
525
476
  required_rubygems_version: !ruby/object:Gem::Requirement
526
- none: false
527
477
  requirements:
528
- - - ! '>='
478
+ - - '>='
529
479
  - !ruby/object:Gem::Version
530
480
  version: 1.3.7
531
481
  requirements: []
532
482
  rubyforge_project: punchblock
533
- rubygems_version: 1.8.24
483
+ rubygems_version: 2.0.0
534
484
  signing_key:
535
- specification_version: 3
485
+ specification_version: 4
536
486
  summary: Punchblock is a telephony middleware library
537
487
  test_files:
538
488
  - spec/capture_warnings.rb