punchblock 2.7.0 → 2.7.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: 818e14c3ff0bfcf90e7e8087256855a16a1298f4
4
- data.tar.gz: e0702027282797f03c8c02d2550f94de4b99e4e8
3
+ metadata.gz: 35195771cc15e2610a1150b15154cf6c3116db63
4
+ data.tar.gz: bf32f24e8587d6463bb1c8a358fe3ebd78524756
5
5
  SHA512:
6
- metadata.gz: e8865f044c3d41d8c4410f655fca8c2271a49e29b726bfb6de36a8df936a592a061bd9bf73a6c22e35fe2bc7bfeea478a21b5969b54a218aa1e93d1bc6e43a70
7
- data.tar.gz: 2951eeea8e8ddf297280b5e488a33768e24a09eae4a0712f144a27a4d8de696d7d1969742493d90e203db9745342714590df5cf44178587be7ddbbc1a84126de
6
+ metadata.gz: e48260063f15f468c12306ae1b109d75499d18eb6bbfc0d18aca8dec0db385c537e661242f73e8f1b58d70a19042afc96875ac7bec11281b668a270b381938e5
7
+ data.tar.gz: 9f595263dae20bb2d44cc0f630e35da720e5063e1b4a89b79ebf7b8625ed58d2ebe811e0197fb0e50cfdb5761da99f12cf356016bc39d6cc5a6d147d3651eac7
@@ -1,5 +1,8 @@
1
1
  # [develop](https://github.com/adhearsion/punchblock)
2
2
 
3
+ # [v2.7.1](https://github.com/adhearsion/punchblock/compare/v2.7.0...v2.7.1) - [2015-07-14](https://rubygems.org/gems/punchblock/versions/2.7.1)
4
+ * Bugfix: Ensure components are deregistered from asterisk translator once the call is ended ([#250](https://github.com/adhearsion/punchblock/pull/250))
5
+
3
6
  # [v2.7.0](https://github.com/adhearsion/punchblock/compare/v2.6.0...v2.7.0) - [2015-06-09](https://rubygems.org/gems/punchblock/versions/2.7.0)
4
7
  * Feature: Support for Asterisk 13 (AMI v2)
5
8
  * Feature: Pass all possible MRCP recognition headers through Asterisk [#244](https://github.com/adhearsion/punchblock/pull/244)
@@ -72,6 +72,10 @@ module Punchblock
72
72
  @components[component.id] ||= component
73
73
  end
74
74
 
75
+ def deregister_component(id)
76
+ @components.delete id
77
+ end
78
+
75
79
  def component_with_id(component_id)
76
80
  @components[component_id]
77
81
  end
@@ -40,6 +40,7 @@ module Punchblock
40
40
  event = Punchblock::Event::Complete.new reason: reason, recording: recording
41
41
  send_event event
42
42
  call.deregister_component id if call
43
+ translator.deregister_component id
43
44
  end
44
45
 
45
46
  def send_event(event)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Punchblock
4
- VERSION = "2.7.0"
4
+ VERSION = "2.7.1"
5
5
  end
@@ -58,6 +58,14 @@ module Punchblock
58
58
  expect(subject).to receive(:send_complete_event).once.with Punchblock::Event::Complete::Hangup.new
59
59
  subject.call_ended
60
60
  end
61
+
62
+ it "should deregister component from translator" do
63
+ translator.register_component(subject)
64
+ expect(translator.component_with_id(subject.id)).not_to be nil
65
+ expect(translator).to receive(:handle_pb_event).once
66
+ subject.call_ended
67
+ expect(translator.component_with_id(subject.id)).to be nil
68
+ end
61
69
  end
62
70
 
63
71
  describe '#execute_command' do
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: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Goecke
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-09 00:00:00.000000000 Z
13
+ date: 2015-07-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: nokogiri