simplepubsub 1.1.13 → 1.1.14

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: f5354b1436e4ee47561c6f265298359e14c587b0
4
- data.tar.gz: d7a33dada06d3aa7d3daa695f1b184dfd8c4ea6b
3
+ metadata.gz: 402cc0c47c92fbb6d31edab18f5ef602f4ebe032
4
+ data.tar.gz: be5e324d71c9f37d416dfd3caec105871afaddda
5
5
  SHA512:
6
- metadata.gz: 3d236ad7a00a56f18a47c6e9b68d7f7e48f299dae7cd31216bc21564e73f70b6a322deb4f43d978919bb05beece02124a3acdea106f2908e650d6ffb030411b0
7
- data.tar.gz: fb615e15cacba577aaf3d9984f134db0466377e9c808593644e0127ad89f9726f70ada4a67cdd3353867f0d035aa064723f3b86a167d0ffa290f6eada8d6efb3
6
+ metadata.gz: a0497b8058d23155cc0e5a3206fdb4e080a1c88d7aec5d21a7aa61ba1353b27add3e05af8ac01fab8c40245448e0f2ceef39c01cd1715f84546aba40d656a0ba
7
+ data.tar.gz: 283b1f4f1d5f573425d3b7a01a7d2e1d0c3d447ff18cde81bc00c223d55a0efe61adacaeae38be7c6ae118b7573f80d851fa3b6439b48679de6c1ed5cd8ee44a
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/simplepubsub.rb CHANGED
@@ -26,8 +26,7 @@ module SimplePubSub
26
26
 
27
27
  ws.onmessage do |msg, type|
28
28
 
29
- #puts "Received message: #{msg}"
30
-
29
+ msg = '' if not msg[0][/\w/]
31
30
  a = msg.strip.split(/\s*:\s*/,2)
32
31
 
33
32
  def ws.subscriber?()
@@ -51,7 +50,8 @@ module SimplePubSub
51
50
 
52
51
  #puts "publish this %s: %s" % a
53
52
  current_topic, message = a
54
- return if current_topic =~ /[^a-zA-Z0-9\/_]/
53
+ return if current_topic[0] == '/'
54
+ return if current_topic =~ /[^a-zA-Z0-9\/_]/
55
55
 
56
56
  reg = XMLRegistry.new
57
57
  reg[current_topic] = message
@@ -203,4 +203,4 @@ if __FILE__ == $0 then
203
203
  end
204
204
 
205
205
  =end
206
- end
206
+ end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplepubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  uOVdk9PsRKwYmaspqeSKWj4fpSd1mCtTjPlLbGQC/8sULVs7AlYVp2pAKbkXkbTn
32
32
  EkYZt+RIxgYhhw==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-05-23 00:00:00.000000000 Z
34
+ date: 2015-06-13 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: websocket-eventmachine-server
metadata.gz.sig CHANGED
Binary file