janus_gateway 0.0.7 → 0.0.8

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: bc4b9beb3a1785cdd57969399012134c3d9cf1f6
4
- data.tar.gz: 6f0f36f3d20e628ce3e71a9bba8048e29c7e0fcf
3
+ metadata.gz: 1b5f1e1a634d58a9791fcc99947d960e9d2ced1a
4
+ data.tar.gz: 63ae487a9f49af06539aaba033e589fb19712b22
5
5
  SHA512:
6
- metadata.gz: 61469d3bf261e225d482a2a1a5ad7fe06c6e475125ad7bf106d1106361617e4a0aa8a23f9432bcd23669ba15203e405cfd80ebda369fe4b1899eaefe007b3962
7
- data.tar.gz: b8105fbd4c6e7a56939d4667c031d8356e245d531b311747a3df0bb59702c1febffcf5c786081ee8eacd5deedf6ec90dfc8a389bfe29884b41b32a48f7658f27
6
+ metadata.gz: c2e65926e02d77b161d61cd0c833c2d91641e03d6e5a74aea4b3e33f8ace6957be571f3959ce7ba70827fd8b686e0c3aff11fc02d9219ef885bd79b3a9e03a75
7
+ data.tar.gz: f103a5f8f5826147afc15bfcbe5304dc66918f866cc47f7473ac4fec11dcc7dae3b48d202b623b838ce7a300a43a59a51ec017c63b877328ffce797b6c651bfa
@@ -54,6 +54,11 @@ module JanusGateway
54
54
 
55
55
  client.on :close do
56
56
  emit :close
57
+
58
+ @transaction_queue.each do |transaction_id, promise|
59
+ error = JanusGateway::Error.new(0, "Transaction id `#{transaction_id}` has failed due to websocket `close`!")
60
+ promise.fail(error).execute
61
+ end
57
62
  end
58
63
  end
59
64
 
@@ -75,7 +80,7 @@ module JanusGateway
75
80
 
76
81
  thread = Thread.new do
77
82
  sleep(_transaction_timeout)
78
- error = JanusGateway::Error.new(0, "Transaction id `#{transaction}` has failed due to timeout!")
83
+ error = JanusGateway::Error.new(0, "Transaction id `#{transaction}` has failed due to `timeout`!")
79
84
  promise.fail(error).execute
80
85
  end
81
86
 
@@ -1,3 +1,3 @@
1
1
  module JanusGateway
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: janus_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-12-06 00:00:00.000000000 Z
14
+ date: 2016-01-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: faye-websocket
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.4.8
153
+ rubygems_version: 2.5.0
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: janus-gateway client