punchblock 1.9.2 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8cab569413379f9b64819195dbecb7b8f921182
4
- data.tar.gz: 84ff42e219d7ab469132aedc89467c99c8e3666b
3
+ metadata.gz: 9ff3ea16e07ba9b68609f3fd2e92f83042da06b5
4
+ data.tar.gz: c165944f3bccf0cdb604106e8378557d7dd9c695
5
5
  SHA512:
6
- metadata.gz: 36e448fa84bb6ad08baedf61ee0fe85b131de31f1801306f97428d6affd718f5b9957cd16d059ea195a9e63dc53b1aa511e5897bd6bd50cd15c07d132344cc70
7
- data.tar.gz: f328f5d65afd54685f29dd7e64607f9a069fd87477b18758610ee28e37f979cea9982ad0e7297b8c4acd1a41dd89bb57b316dacedad12e9bc842c9f50026068a
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 not executing" unless executing?
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
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Punchblock
4
- VERSION = "1.9.2"
4
+ VERSION = "1.9.3"
5
5
  end
@@ -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 not executing")
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 not executing")
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 not executing")
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
@@ -18,7 +18,7 @@ RSpec.configure do |config|
18
18
  end
19
19
 
20
20
  config.after :each do
21
- Celluloid.shutdown
21
+ Object.const_defined?(:Celluloid) && Celluloid.shutdown
22
22
  end
23
23
  end
24
24
 
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.2
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-10 00:00:00.000000000 Z
13
+ date: 2013-05-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: niceogiri