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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 14c660cb73378c5f65c7958f14b8a92f72dbe3e3
4
- data.tar.gz: 99ad1a0159c343cbf92233131b555269c3a702a9
3
+ metadata.gz: bcfe3c9c8639103950423fb4f91001d39cd792e2
4
+ data.tar.gz: 6ff201b054b347f3f5a323b747297bcdac3df630
5
5
  SHA512:
6
- metadata.gz: e457ceafa8681a4eefebc1f43134d34949648b6d9ce67d3b5536a9238c7d19661e4bfc7744a8820743c31cb9ca16f3bd5937f9fadffeaca275bc9c3d747b1c50
7
- data.tar.gz: 383a338b4b30a3b64ba8c7c143a29e6ad39088ab521916e2aa229887028d2abac88277797a2dd4dc6557963e764d376016882745cbef07413bd05b1ae44bb817
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
- sender = topic.split('/').last
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
- onincoming sender, msg
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.1.2
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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE2MDcyNjAwMDE0M1oXDTE3MDcyNjAwMDE0M1owSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAMfbH2nWTFqscCt0SdjrPNm4Cw/uULqG/kjhAq74XiL2vESg+ddanp0cjHis
19
- tVKAMSKNzGFsxFOWYh7Oyiv7REnXt9uA1IGzGreaaw5CHMw9s1IhxBEqMOTdFhL2
20
- B5p0MAKDhAYMnvd4wQ9KWbzf9DyqpX8ENGnkbZWM8NueRo8oI2Smc5BI07fu+RCi
21
- nWVuxK2uWwSQQEOU77vDljW1+cUgWQanAISRizVPOKm2nk6DA5ws7eFUrJCv8WfY
22
- W+Zg2T8JfQaokbgyoAhtSRROJyOMo+APTin0CcnIZJLFb/WmLfY6sGEl+hkTMzPY
23
- eNGibVMbN3r2QqxaTRWnJcP4cMsCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
- DwQEAwIEsDAdBgNVHQ4EFgQUJPPoHiVx8q2YwJVoSqUKel2CYhQwJgYDVR0RBB8w
25
- HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h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1amHOljTxAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
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: 2016-07-26 00:00:00.000000000 Z
33
+ date: 2018-01-29 00:00:00.000000000 Z
35
34
  dependencies:
36
35
  - !ruby/object:Gem::Dependency
37
- name: sps-sub
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.2'
41
+ version: '0.1'
43
42
  - - ">="
44
43
  - !ruby/object:Gem::Version
45
- version: 0.2.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.2'
51
+ version: '0.1'
53
52
  - - ">="
54
53
  - !ruby/object:Gem::Version
55
- version: 0.2.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@r0bertson.co.uk
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.5.1
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