gripcontrol 0.2.1 → 1.0.0
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 +4 -4
- data/lib/grippubcontrol.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cb685268f1ea61c39270498828601e45855428dc
|
|
4
|
+
data.tar.gz: c21e473c4e1eb219f60b15907821635f2062c28e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5255d6bd37494a6577e7611d1affdca5f2ba4cd6100904e92cd76c16b0a484e9aa0075a438c7eefdefc61010d104570328a1b94ed5b87d8c8b2a23f9a1e00505
|
|
7
|
+
data.tar.gz: c9bc4d2e40a22f9573c221f218b552ecbce972e0af034677a9802bfc4972199f97d35cf3bf139df84b617e986d23d700378b76996e07e06c26bdc69ade452d90
|
data/lib/grippubcontrol.rb
CHANGED
|
@@ -12,6 +12,13 @@ class GripPubControl < PubControl
|
|
|
12
12
|
alias super_publish publish
|
|
13
13
|
alias super_publish_async publish_async
|
|
14
14
|
|
|
15
|
+
def initialize(config=nil)
|
|
16
|
+
@clients = Array.new
|
|
17
|
+
if !config.nil?
|
|
18
|
+
apply_grip_config(config)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
15
22
|
def apply_grip_config(config)
|
|
16
23
|
if !config.is_a?(Array)
|
|
17
24
|
config = [config]
|
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: 0.
|
|
4
|
+
version: 1.0.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-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pubcontrol
|
|
@@ -52,7 +52,7 @@ files:
|
|
|
52
52
|
- lib/response.rb
|
|
53
53
|
- lib/websocketevent.rb
|
|
54
54
|
- lib/websocketmessageformat.rb
|
|
55
|
-
homepage:
|
|
55
|
+
homepage: https://github.com/fanout/ruby-gripcontrol
|
|
56
56
|
licenses:
|
|
57
57
|
- MIT
|
|
58
58
|
metadata: {}
|