sps_chat 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/sps_chat.rb +9 -3
- data.tar.gz.sig +0 -0
- metadata +29 -50
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcfe3c9c8639103950423fb4f91001d39cd792e2
|
4
|
+
data.tar.gz: 6ff201b054b347f3f5a323b747297bcdac3df630
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed7d948e97976fd74ad7a4789ae8b141ede992848f398a92fb097cb2107f5c8b8a8254800bbc0cda2425f61b288a765e4f22d4da61abd5a73f17d0cce3875bc5
|
7
|
+
data.tar.gz: 26bdfa5dc700eb000ef6f23045a76f277073479906a26bbc437c57ed2b16e558fd494162ad1789ed088e378c2361a6851d64d806428856b5a9d69322ca300943
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/sps_chat.rb
CHANGED
@@ -47,13 +47,19 @@ class SPSChat
|
|
47
47
|
#
|
48
48
|
def ontopic(topic, msg)
|
49
49
|
|
50
|
-
|
50
|
+
typing = false
|
51
|
+
|
52
|
+
a = topic.split('/')
|
53
|
+
sender = a.pop
|
54
|
+
(sender = a.pop; typing = true) if sender == 'typing'
|
55
|
+
|
51
56
|
return if sender == @userid
|
52
|
-
|
57
|
+
|
58
|
+
typing ? onincoming(sender, msg, true) : onincoming(sender, msg)
|
53
59
|
|
54
60
|
end
|
55
61
|
|
56
|
-
def onincoming(sender, msg)
|
62
|
+
def onincoming(sender, msg, typing=false)
|
57
63
|
|
58
64
|
puts "%s: %s" % [sender, msg]
|
59
65
|
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sps_chat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,71 +10,50 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
/
|
31
|
-
|
32
|
-
MGHl/OiK1ZvMmg==
|
13
|
+
MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwMTI5MTkyNDQ0WhcN
|
15
|
+
MTkwMTI5MTkyNDQ0WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCqQ9Xg
|
17
|
+
c/BrhMqf7oluhL8oOuhmgLgLmtcw03yC4Y6oiwD7g0KzfE7n6dWsZUo3xq4G2rtJ
|
18
|
+
tA7i6UxRHJqxgnthYcogoJsUNlYC5H85A/03Sv/Wqf2LBzxWEjlufGal6CLfQUVY
|
19
|
+
QqStRzi2++krl+txheJP0Gdb/AeN4gKeISdIe7W2F/M9QW0LBSbCG6apVedNaZBp
|
20
|
+
eN775SE2afqa/mZmCOQaQ1e4EhPRuQQiypQwAK/Zu5bWp5dvAyUf0QmNZalW+bbC
|
21
|
+
83wHDcRsAfYsC2EdnXDDUZrwOqbLWYHiZQVvz2beCShVC8HshXBCDIQ2s2TxQXut
|
22
|
+
2bJVavs1amHOljTxAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
23
|
+
HQYDVR0OBBYEFGz17f21XWIEyzwEd1dIV+05CAxyMCYGA1UdEQQfMB2BG2dlbW1h
|
24
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYXN0ZXJAamFt
|
25
|
+
ZXNyb2JlcnRzb24uZXUwDQYJKoZIhvcNAQEFBQADggEBAKL7nrDmTjig7X8iFgHt
|
26
|
+
o7AalZjHg2T1h7fVY5ddQz9V6Xfe6OWpwPNuNEj7aXceGo68fROggIg6qL8oiV/0
|
27
|
+
Yh00xKyletk5yYZ2bxaL8cv/FVz8KA8LGS3GvZHWPg7F9gVc+WeKZfSpvh/2IzRe
|
28
|
+
sYsOc4+8qrOp1tbBF34+NWQnOyP7z/223zx2qLUp94TPjE+qLCUCh3GfndPYPJVh
|
29
|
+
ifqLW8aYY6F3tNMHkxRf9hBVs63Pze5ji8mqw/elnwi7KcbM3VFNYLGys6m/X4xk
|
30
|
+
s9dItOR/wNvg6SaW6COsX0wSHRUDvZm00WV5IykZk86V0G0jIVdbQxW6CMs/LzbZ
|
31
|
+
y7I=
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
33
|
+
date: 2018-01-29 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
|
-
name: sps-
|
36
|
+
name: sps-duplex
|
38
37
|
requirement: !ruby/object:Gem::Requirement
|
39
38
|
requirements:
|
40
39
|
- - "~>"
|
41
40
|
- !ruby/object:Gem::Version
|
42
|
-
version: '0.
|
41
|
+
version: '0.1'
|
43
42
|
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0.
|
44
|
+
version: 0.1.0
|
46
45
|
type: :runtime
|
47
46
|
prerelease: false
|
48
47
|
version_requirements: !ruby/object:Gem::Requirement
|
49
48
|
requirements:
|
50
49
|
- - "~>"
|
51
50
|
- !ruby/object:Gem::Version
|
52
|
-
version: '0.
|
51
|
+
version: '0.1'
|
53
52
|
- - ">="
|
54
53
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.
|
56
|
-
- !ruby/object:Gem::Dependency
|
57
|
-
name: sps-pub
|
58
|
-
requirement: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '0.4'
|
63
|
-
- - ">="
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version: 0.4.0
|
66
|
-
type: :runtime
|
67
|
-
prerelease: false
|
68
|
-
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
requirements:
|
70
|
-
- - "~>"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '0.4'
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.4.0
|
54
|
+
version: 0.1.0
|
76
55
|
description:
|
77
|
-
email: james@
|
56
|
+
email: james@jamesrobertson.eu
|
78
57
|
executables: []
|
79
58
|
extensions: []
|
80
59
|
extra_rdoc_files: []
|
@@ -100,9 +79,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
79
|
version: '0'
|
101
80
|
requirements: []
|
102
81
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.13
|
104
83
|
signing_key:
|
105
84
|
specification_version: 4
|
106
85
|
summary: A simple chat client which sends and receives messages through the SimplePubSub
|
107
|
-
broker
|
86
|
+
broker.
|
108
87
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|