sps-pub 0.3.0 → 0.3.1

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: d122d08cef7d23819d053ec58d3cea09d2d627d5
4
- data.tar.gz: 1e8ad0b8e022b9cc7b10f7a57a1dd76fa89bcb02
3
+ metadata.gz: 8873d8c1434870e5b91f9e1a7391e4ed8966109a
4
+ data.tar.gz: 2459f718627c07a27522a3d7bca9ed38893b3519
5
5
  SHA512:
6
- metadata.gz: 870c57fcb6d1beddaf4e6a84c755b4a328170927faea14fc267c9c5d9b6c4933f736295606ab1dd9aaa92482d7c25d358adf721b5b98f14e6f4b4952a79fbd0d
7
- data.tar.gz: 1b6de1935c4cba6ea909e94ad7d83af3fb3f3c565b0aa1841a567dff422a2c18a84ad5172a53bb243abaa02f9dbab0fa53bbbf344cf007eb3789e05f59c40bd4
6
+ metadata.gz: 48680308a7a41a5a3378861538cb2dd89d0144fb91b90c4d4a3eee492aa047ee2bd1b7ea9c137ba3617ce08b22a86475bd2d20cf66ebb6afdb1bf0ed9fd22157
7
+ data.tar.gz: 9a22d7742a7800e08b55b72b9b22ec9005bc44c1c86977e33e368635edb1bcb9dbe092bf17d2a06c3635d469c0af5970d3b41fe37f3f844ef9f91ed3f6bf5f36
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -6,10 +6,19 @@ require 'simplepubsub'
6
6
  require 'ws' # from gem 'simpleblockingwebsocketclient'
7
7
 
8
8
 
9
-
10
9
  class SPSPub
11
10
  include SimplePubSub
12
11
 
12
+ def initialize(address: 'sps', port: '59000')
13
+ @client = Net::WS.new "ws://%s:%s/" % [address, port]
14
+ end
15
+
16
+ def notice(s)
17
+ @client.send s
18
+ end
19
+
20
+ alias publish notice
21
+
13
22
  def self.notice(s, address: 'sps', port: '59000')
14
23
 
15
24
  client = Net::WS.new "ws://%s:%s/" % [address, port]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sps-pub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,36 +31,48 @@ cert_chain:
31
31
  2cSEZ0QYbEwC3czzwEism6iYWhlBI/srC6g8JIr7pq91FybciqI5dk5RB7SE5Xgf
32
32
  p7uZNkO8qc9/fg==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-05-22 00:00:00.000000000 Z
34
+ date: 2014-07-12 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: simplepubsub
38
38
  requirement: !ruby/object:Gem::Requirement
39
39
  requirements:
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: '1.1'
40
43
  - - ">="
41
44
  - !ruby/object:Gem::Version
42
- version: '0'
45
+ version: 1.1.2
43
46
  type: :runtime
44
47
  prerelease: false
45
48
  version_requirements: !ruby/object:Gem::Requirement
46
49
  requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '1.1'
47
53
  - - ">="
48
54
  - !ruby/object:Gem::Version
49
- version: '0'
55
+ version: 1.1.2
50
56
  - !ruby/object:Gem::Dependency
51
57
  name: simpleblockingwebsocketclient
52
58
  requirement: !ruby/object:Gem::Requirement
53
59
  requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.43'
54
63
  - - ">="
55
64
  - !ruby/object:Gem::Version
56
- version: '0'
65
+ version: '0.43'
57
66
  type: :runtime
58
67
  prerelease: false
59
68
  version_requirements: !ruby/object:Gem::Requirement
60
69
  requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '0.43'
61
73
  - - ">="
62
74
  - !ruby/object:Gem::Version
63
- version: '0'
75
+ version: '0.43'
64
76
  description:
65
77
  email: james@r0bertson.co.uk
66
78
  executables: []
@@ -80,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
92
  requirements:
81
93
  - - ">="
82
94
  - !ruby/object:Gem::Version
83
- version: '0'
95
+ version: 2.1.2
84
96
  required_rubygems_version: !ruby/object:Gem::Requirement
85
97
  requirements:
86
98
  - - ">="
@@ -88,9 +100,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
100
  version: '0'
89
101
  requirements: []
90
102
  rubyforge_project:
91
- rubygems_version: 2.1.11
103
+ rubygems_version: 2.2.2
92
104
  signing_key:
93
105
  specification_version: 4
94
106
  summary: A SimplePubSub client for publishing or subscribing to messages in 1 line
95
107
  of code.
96
108
  test_files: []
109
+ has_rdoc:
metadata.gz.sig CHANGED
Binary file