gripcontrol 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gripcontrol.rb +6 -3
- 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: d74c483cf1ad8bc8112cbe5bf8af9ea71741e112
|
4
|
+
data.tar.gz: eb0aa2aeb1fd70d627c3bc7e80ad95558e729b03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faaf632933e3494199f30b921cad9c6cb217f9215734f92290d253efb72d0f4dadec9d7f4a5aa90be42c844c80ba2698434d9d4433801c3fcfcc0ac5c3d44a71
|
7
|
+
data.tar.gz: df0f6189dd26adcf0f5598433fb65f55bcd72f7daaa0b0ad52077f9b41bf9e34dfc8a65287a86e3e96f38757a35878620f6937559a5d28deaeb9c521b39012da
|
data/lib/gripcontrol.rb
CHANGED
@@ -18,7 +18,7 @@ require_relative 'grippubcontrol.rb'
|
|
18
18
|
require_relative 'response.rb'
|
19
19
|
|
20
20
|
class GripControl
|
21
|
-
def self.create_hold(mode, channels, response)
|
21
|
+
def self.create_hold(mode, channels, response, timeout=nil)
|
22
22
|
hold = Hash.new
|
23
23
|
hold['mode'] = mode
|
24
24
|
if channels.is_a?(Channel)
|
@@ -40,6 +40,9 @@ class GripControl
|
|
40
40
|
ichannels.push(ichannel)
|
41
41
|
end
|
42
42
|
hold['channels'] = ichannels
|
43
|
+
if !timeout.nil?
|
44
|
+
hold['timeout'] = timeout
|
45
|
+
end
|
43
46
|
iresponse = nil
|
44
47
|
if !response.nil?
|
45
48
|
if response.is_a?(String)
|
@@ -150,8 +153,8 @@ class GripControl
|
|
150
153
|
return parts.join(', ')
|
151
154
|
end
|
152
155
|
|
153
|
-
def self.create_hold_response(channels, response=nil)
|
154
|
-
return GripControl.create_hold('response', channels, response)
|
156
|
+
def self.create_hold_response(channels, response=nil, timeout=nil)
|
157
|
+
return GripControl.create_hold('response', channels, response, timeout)
|
155
158
|
end
|
156
159
|
|
157
160
|
def self.create_hold_stream(channels, response=nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gripcontrol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Bokarius
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pubcontrol
|