tamashii-manager 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tamashii/manager/client_manager.rb +2 -1
- data/lib/tamashii/manager/server.rb +5 -0
- data/lib/tamashii/manager/version.rb +1 -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: 7513e1d4a1084d008197e4b78e9629ac357149c3
|
4
|
+
data.tar.gz: 8acf820bf7f066b2d7ccd70ae837fbe87e7c98cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85ccc4fc0d53b292cd10a38fdda324ba351ff2be3d4b70b6fb4263b0c5c9c1c399f189fafeaa961882e05008a0c1e6f08355d4bcbf6dc6a5ba0daf7529be50eb
|
7
|
+
data.tar.gz: b2be4012b85567b33265de094b056b37455204763ee85bd13d311b038d84e6a14ecc8eb8b8c618a8a907e1ccd9d654d66d51f2d4452b7c8d9b76817f1230fe4b
|
@@ -16,12 +16,13 @@ module Tamashii
|
|
16
16
|
accepted_clients[name.to_s]
|
17
17
|
end
|
18
18
|
|
19
|
+
# TODO: Fix duplicate name
|
19
20
|
def []=(name, client)
|
20
21
|
return unless client.is_a?(Client)
|
21
22
|
accepted_clients[name.to_s] = client
|
22
23
|
end
|
23
24
|
|
24
|
-
def
|
25
|
+
def send_to(id, packet)
|
25
26
|
Manager.server.pubsub.send_to(id, packet)
|
26
27
|
end
|
27
28
|
end
|
@@ -14,6 +14,11 @@ module Tamashii
|
|
14
14
|
setup_heartbeat_timer
|
15
15
|
end
|
16
16
|
|
17
|
+
def call(env)
|
18
|
+
setup_heartbeat_timer
|
19
|
+
super
|
20
|
+
end
|
21
|
+
|
17
22
|
# NOTE: Move into Tamashii::Server maybe better
|
18
23
|
def setup_heartbeat_timer
|
19
24
|
@heartbeat_timer = @event_loop.timer(Config.heartbeat_interval) do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tamashii-manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 蒼時弦也
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-05-
|
13
|
+
date: 2017-05-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: puma
|