punchblock 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -132,7 +132,7 @@ module Punchblock
132
132
  context "with an unknown call ID" do
133
133
  it 'sends an error in response to the command' do
134
134
  subject.execute_call_command command
135
- command.response.should be == ProtocolError.new('call-not-found', "Could not find a call with ID #{call_id}", call_id, nil)
135
+ command.response.should be == ProtocolError.new.setup('call-not-found', "Could not find a call with ID #{call_id}", call_id, nil)
136
136
  end
137
137
  end
138
138
  end
@@ -161,7 +161,7 @@ module Punchblock
161
161
  context "with an unknown component ID" do
162
162
  it 'sends an error in response to the command' do
163
163
  subject.execute_component_command command
164
- command.response.should be == ProtocolError.new('component-not-found', "Could not find a component with ID #{component_id}", nil, component_id)
164
+ command.response.should be == ProtocolError.new.setup('component-not-found', "Could not find a component with ID #{component_id}", nil, component_id)
165
165
  end
166
166
  end
167
167
  end
@@ -218,7 +218,7 @@ module Punchblock
218
218
 
219
219
  it 'sends an error in response to the command' do
220
220
  subject.execute_command command
221
- command.response.should be == ProtocolError.new('command-not-acceptable', "Did not understand command")
221
+ command.response.should be == ProtocolError.new.setup('command-not-acceptable', "Did not understand command")
222
222
  end
223
223
  end
224
224
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punchblock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-19 00:00:00.000000000 Z
14
+ date: 2012-03-29 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: niceogiri
18
- requirement: &2151919020 !ruby/object:Gem::Requirement
18
+ requirement: &2151904540 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.0.4
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *2151919020
26
+ version_requirements: *2151904540
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: blather
29
- requirement: &2151918340 !ruby/object:Gem::Requirement
29
+ requirement: &2151919620 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.5.12
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *2151918340
37
+ version_requirements: *2151919620
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: activesupport
40
- requirement: &2151916900 !ruby/object:Gem::Requirement
40
+ requirement: &2151917060 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: 2.1.0
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *2151916900
48
+ version_requirements: *2151917060
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: state_machine
51
- requirement: &2151915880 !ruby/object:Gem::Requirement
51
+ requirement: &2151913560 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 1.0.1
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *2151915880
59
+ version_requirements: *2151913560
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: future-resource
62
- requirement: &2151914700 !ruby/object:Gem::Requirement
62
+ requirement: &2151923540 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 0.0.2
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *2151914700
70
+ version_requirements: *2151923540
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: has-guarded-handlers
73
- requirement: &2151924520 !ruby/object:Gem::Requirement
73
+ requirement: &2151933680 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 0.1.0
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *2151924520
81
+ version_requirements: *2151933680
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: celluloid
84
- requirement: &2151922900 !ruby/object:Gem::Requirement
84
+ requirement: &2151938780 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: 0.9.0
90
90
  type: :runtime
91
91
  prerelease: false
92
- version_requirements: *2151922900
92
+ version_requirements: *2151938780
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: ruby_ami
95
- requirement: &2151920220 !ruby/object:Gem::Requirement
95
+ requirement: &2152114920 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,10 +100,10 @@ dependencies:
100
100
  version: 0.1.3
101
101
  type: :runtime
102
102
  prerelease: false
103
- version_requirements: *2151920220
103
+ version_requirements: *2152114920
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: ruby_speech
106
- requirement: &2151941120 !ruby/object:Gem::Requirement
106
+ requirement: &2152144720 !ruby/object:Gem::Requirement
107
107
  none: false
108
108
  requirements:
109
109
  - - ! '>='
@@ -111,10 +111,10 @@ dependencies:
111
111
  version: 0.5.1
112
112
  type: :runtime
113
113
  prerelease: false
114
- version_requirements: *2151941120
114
+ version_requirements: *2152144720
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: bundler
117
- requirement: &2155990800 !ruby/object:Gem::Requirement
117
+ requirement: &2152162740 !ruby/object:Gem::Requirement
118
118
  none: false
119
119
  requirements:
120
120
  - - ! '>='
@@ -122,10 +122,10 @@ dependencies:
122
122
  version: 1.0.0
123
123
  type: :development
124
124
  prerelease: false
125
- version_requirements: *2155990800
125
+ version_requirements: *2152162740
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rspec
128
- requirement: &2156008400 !ruby/object:Gem::Requirement
128
+ requirement: &2152170960 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
131
131
  - - ~>
@@ -133,10 +133,10 @@ dependencies:
133
133
  version: 2.7.0
134
134
  type: :development
135
135
  prerelease: false
136
- version_requirements: *2156008400
136
+ version_requirements: *2152170960
137
137
  - !ruby/object:Gem::Dependency
138
138
  name: ci_reporter
139
- requirement: &2156026220 !ruby/object:Gem::Requirement
139
+ requirement: &2152169100 !ruby/object:Gem::Requirement
140
140
  none: false
141
141
  requirements:
142
142
  - - ! '>='
@@ -144,10 +144,10 @@ dependencies:
144
144
  version: 1.6.3
145
145
  type: :development
146
146
  prerelease: false
147
- version_requirements: *2156026220
147
+ version_requirements: *2152169100
148
148
  - !ruby/object:Gem::Dependency
149
149
  name: yard
150
- requirement: &2156031820 !ruby/object:Gem::Requirement
150
+ requirement: &2152166660 !ruby/object:Gem::Requirement
151
151
  none: false
152
152
  requirements:
153
153
  - - ~>
@@ -155,10 +155,10 @@ dependencies:
155
155
  version: 0.6.0
156
156
  type: :development
157
157
  prerelease: false
158
- version_requirements: *2156031820
158
+ version_requirements: *2152166660
159
159
  - !ruby/object:Gem::Dependency
160
160
  name: rake
161
- requirement: &2156043300 !ruby/object:Gem::Requirement
161
+ requirement: &2152021340 !ruby/object:Gem::Requirement
162
162
  none: false
163
163
  requirements:
164
164
  - - ! '>='
@@ -166,10 +166,10 @@ dependencies:
166
166
  version: '0'
167
167
  type: :development
168
168
  prerelease: false
169
- version_requirements: *2156043300
169
+ version_requirements: *2152021340
170
170
  - !ruby/object:Gem::Dependency
171
171
  name: mocha
172
- requirement: &2156040120 !ruby/object:Gem::Requirement
172
+ requirement: &2152018180 !ruby/object:Gem::Requirement
173
173
  none: false
174
174
  requirements:
175
175
  - - ! '>='
@@ -177,10 +177,10 @@ dependencies:
177
177
  version: '0'
178
178
  type: :development
179
179
  prerelease: false
180
- version_requirements: *2156040120
180
+ version_requirements: *2152018180
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: i18n
183
- requirement: &2155893660 !ruby/object:Gem::Requirement
183
+ requirement: &2152015600 !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements:
186
186
  - - ! '>='
@@ -188,10 +188,10 @@ dependencies:
188
188
  version: '0'
189
189
  type: :development
190
190
  prerelease: false
191
- version_requirements: *2155893660
191
+ version_requirements: *2152015600
192
192
  - !ruby/object:Gem::Dependency
193
193
  name: countdownlatch
194
- requirement: &2155888780 !ruby/object:Gem::Requirement
194
+ requirement: &2152176560 !ruby/object:Gem::Requirement
195
195
  none: false
196
196
  requirements:
197
197
  - - ! '>='
@@ -199,10 +199,10 @@ dependencies:
199
199
  version: '0'
200
200
  type: :development
201
201
  prerelease: false
202
- version_requirements: *2155888780
202
+ version_requirements: *2152176560
203
203
  - !ruby/object:Gem::Dependency
204
204
  name: guard-rspec
205
- requirement: &2156051360 !ruby/object:Gem::Requirement
205
+ requirement: &2152174900 !ruby/object:Gem::Requirement
206
206
  none: false
207
207
  requirements:
208
208
  - - ! '>='
@@ -210,7 +210,7 @@ dependencies:
210
210
  version: '0'
211
211
  type: :development
212
212
  prerelease: false
213
- version_requirements: *2156051360
213
+ version_requirements: *2152174900
214
214
  description: Like Rack is to Rails and Sinatra, Punchblock provides a consistent API
215
215
  on top of several underlying third-party call control protocols.
216
216
  email: punchblock@adhearsion.com
@@ -264,6 +264,7 @@ files:
264
264
  - lib/punchblock/core_ext/ruby.rb
265
265
  - lib/punchblock/disconnected_error.rb
266
266
  - lib/punchblock/event.rb
267
+ - lib/punchblock/event/active_speaker.rb
267
268
  - lib/punchblock/event/answered.rb
268
269
  - lib/punchblock/event/asterisk.rb
269
270
  - lib/punchblock/event/asterisk/ami.rb
@@ -274,6 +275,8 @@ files:
274
275
  - lib/punchblock/event/joined.rb
275
276
  - lib/punchblock/event/offer.rb
276
277
  - lib/punchblock/event/ringing.rb
278
+ - lib/punchblock/event/started_speaking.rb
279
+ - lib/punchblock/event/stopped_speaking.rb
277
280
  - lib/punchblock/event/unjoined.rb
278
281
  - lib/punchblock/has_headers.rb
279
282
  - lib/punchblock/header.rb
@@ -292,6 +295,7 @@ files:
292
295
  - lib/punchblock/translator/asterisk/component/asterisk/ami_action.rb
293
296
  - lib/punchblock/translator/asterisk/component/input.rb
294
297
  - lib/punchblock/translator/asterisk/component/output.rb
298
+ - lib/punchblock/translator/asterisk/component/stop_by_redirect.rb
295
299
  - lib/punchblock/version.rb
296
300
  - punchblock.gemspec
297
301
  - spec/capture_warnings.rb
@@ -324,6 +328,8 @@ files:
324
328
  - spec/punchblock/event/joined_spec.rb
325
329
  - spec/punchblock/event/offer_spec.rb
326
330
  - spec/punchblock/event/ringing_spec.rb
331
+ - spec/punchblock/event/started_speaking_spec.rb
332
+ - spec/punchblock/event/stopped_speaking_spec.rb
327
333
  - spec/punchblock/event/unjoined_spec.rb
328
334
  - spec/punchblock/header_spec.rb
329
335
  - spec/punchblock/protocol_error_spec.rb
@@ -333,6 +339,7 @@ files:
333
339
  - spec/punchblock/translator/asterisk/component/asterisk/ami_action_spec.rb
334
340
  - spec/punchblock/translator/asterisk/component/input_spec.rb
335
341
  - spec/punchblock/translator/asterisk/component/output_spec.rb
342
+ - spec/punchblock/translator/asterisk/component/stop_by_redirect_spec.rb
336
343
  - spec/punchblock/translator/asterisk/component_spec.rb
337
344
  - spec/punchblock/translator/asterisk_spec.rb
338
345
  - spec/spec_helper.rb
@@ -352,7 +359,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
352
359
  version: '0'
353
360
  segments:
354
361
  - 0
355
- hash: -3534075971953608927
362
+ hash: 115218676843076240
356
363
  required_rubygems_version: !ruby/object:Gem::Requirement
357
364
  none: false
358
365
  requirements:
@@ -396,6 +403,8 @@ test_files:
396
403
  - spec/punchblock/event/joined_spec.rb
397
404
  - spec/punchblock/event/offer_spec.rb
398
405
  - spec/punchblock/event/ringing_spec.rb
406
+ - spec/punchblock/event/started_speaking_spec.rb
407
+ - spec/punchblock/event/stopped_speaking_spec.rb
399
408
  - spec/punchblock/event/unjoined_spec.rb
400
409
  - spec/punchblock/header_spec.rb
401
410
  - spec/punchblock/protocol_error_spec.rb
@@ -405,6 +414,7 @@ test_files:
405
414
  - spec/punchblock/translator/asterisk/component/asterisk/ami_action_spec.rb
406
415
  - spec/punchblock/translator/asterisk/component/input_spec.rb
407
416
  - spec/punchblock/translator/asterisk/component/output_spec.rb
417
+ - spec/punchblock/translator/asterisk/component/stop_by_redirect_spec.rb
408
418
  - spec/punchblock/translator/asterisk/component_spec.rb
409
419
  - spec/punchblock/translator/asterisk_spec.rb
410
420
  - spec/spec_helper.rb