punchblock 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/punchblock/component/component_node.rb +1 -1
- data/lib/punchblock/version.rb +1 -1
- data/spec/punchblock/component/input_spec.rb +1 -1
- data/spec/punchblock/component/output_spec.rb +1 -1
- data/spec/punchblock/component/record_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ff3ea16e07ba9b68609f3fd2e92f83042da06b5
|
4
|
+
data.tar.gz: c165944f3bccf0cdb604106e8378557d7dd9c695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d65f082760974940de41c52a9a27cfa539270221e392f7df25865294c12ec80e9ad6a32ebad1b00e991aa808690cf444b1c4ff78ca4f08e86e1bad16132c35b
|
7
|
+
data.tar.gz: b136fbe1f8647e8298c70bccd148cb662578c3bfab3ac6191149d8f19b4e621138b38ee46143c3bc246198afc804eb72bd753c57d7ebb8854e077634d6b0bad5
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# [develop](https://github.com/adhearsion/punchblock)
|
2
2
|
|
3
|
+
# [v1.9.3](https://github.com/adhearsion/punchblock/compare/v1.9.2...v1.9.3) - [2013-05-16](https://rubygems.org/gems/punchblock/versions/1.9.3)
|
4
|
+
* Bugfix: Improve error messages when trying to execute stop commands on components in an invalid state
|
5
|
+
|
3
6
|
# [v1.9.2](https://github.com/adhearsion/punchblock/compare/v1.9.1...v1.9.2) - [2013-05-10](https://rubygems.org/gems/punchblock/versions/1.9.2)
|
4
7
|
* Bugfix: We were raising an exception on connection shutdown due to waiting for the connection to end incorrectly.
|
5
8
|
* Bugfix/Perf: FreeSWITCH Call actors were being kept alive after hangup for no reason
|
@@ -67,7 +67,7 @@ module Punchblock
|
|
67
67
|
# Sends a Rayo stop message for the current component
|
68
68
|
#
|
69
69
|
def stop!(options = {})
|
70
|
-
raise InvalidActionError, "Cannot stop a #{self.class.name.split("::").last} that is
|
70
|
+
raise InvalidActionError, "Cannot stop a #{self.class.name.split("::").last} that is #{state}" unless executing?
|
71
71
|
stop_action.tap { |action| write_action action }
|
72
72
|
end
|
73
73
|
end
|
data/lib/punchblock/version.rb
CHANGED
@@ -170,7 +170,7 @@ module Punchblock
|
|
170
170
|
|
171
171
|
describe "when the command is not executing" do
|
172
172
|
it "should raise an error" do
|
173
|
-
lambda { command.stop! }.should raise_error(InvalidActionError, "Cannot stop a Input that is
|
173
|
+
lambda { command.stop! }.should raise_error(InvalidActionError, "Cannot stop a Input that is new")
|
174
174
|
end
|
175
175
|
end
|
176
176
|
end
|
@@ -254,7 +254,7 @@ module Punchblock
|
|
254
254
|
|
255
255
|
describe "when the command is not executing" do
|
256
256
|
it "should raise an error" do
|
257
|
-
lambda { command.stop! }.should raise_error(InvalidActionError, "Cannot stop a Output that is
|
257
|
+
lambda { command.stop! }.should raise_error(InvalidActionError, "Cannot stop a Output that is new")
|
258
258
|
end
|
259
259
|
end
|
260
260
|
end # #stop!
|
@@ -229,7 +229,7 @@ module Punchblock
|
|
229
229
|
|
230
230
|
describe "when the command is not executing" do
|
231
231
|
it "should raise an error" do
|
232
|
-
lambda { command.stop! }.should raise_error(InvalidActionError, "Cannot stop a Record that is
|
232
|
+
lambda { command.stop! }.should raise_error(InvalidActionError, "Cannot stop a Record that is new")
|
233
233
|
end
|
234
234
|
end
|
235
235
|
end
|
data/spec/spec_helper.rb
CHANGED
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: 1.9.
|
4
|
+
version: 1.9.3
|
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: 2013-05-
|
13
|
+
date: 2013-05-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: niceogiri
|