sinatra-websocketio 0.3.9 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/sinatra-websocketio/version.rb +1 -1
- data/lib/sinatra-websocketio/websocketio.rb +2 -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: 0c6c4b999cc5f41c0d7b92d13210c4ffe23c4d00
|
4
|
+
data.tar.gz: 4e242742fecca0a5fb5559ff3474221c6c134582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2ef63db595352e7ea52a40e7798e4317e298502a30921ff033333b9b6977da2a4e54fd10a026dd2034d88d391f05d5984aaf3246f923d09242ae622cad1d8e5
|
7
|
+
data.tar.gz: a579d3cccba11b9cd7a5ebb9b29a31809e774cdbbeb7097b2147b0c29a970da52c32d22ec07ba1e290436bab81bce9b470f92152503e3317c1dd7f77a300ad19
|
data/History.txt
CHANGED
@@ -54,7 +54,8 @@ module Sinatra
|
|
54
54
|
end
|
55
55
|
|
56
56
|
def self.push(type, data, opt={})
|
57
|
-
if opt.include? :to
|
57
|
+
if opt.include? :to
|
58
|
+
return unless self.sessions.include? opt[:to]
|
58
59
|
s = self.sessions[opt[:to]][:websocket]
|
59
60
|
begin
|
60
61
|
s.send({:type => type, :data => data}.to_json)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-websocketio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|