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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b73434b81719979d45631fb55ee06dbc9c681dfb
4
- data.tar.gz: 1271d4bbe0123c2bc284ba716958df9cf3e75f23
3
+ metadata.gz: 7513e1d4a1084d008197e4b78e9629ac357149c3
4
+ data.tar.gz: 8acf820bf7f066b2d7ccd70ae837fbe87e7c98cc
5
5
  SHA512:
6
- metadata.gz: da6357c531d820f6f1147c7a8fcf972edaaaedba892db2a75b6553fb96eb09654e063666e4cc8ecaf6334ec5f7a27079ad29273643967bebd28a5c7d1ebe4f9c
7
- data.tar.gz: ef266d3eaad776acbb73c66a6f1d3a5c99cc7bace32ec7d2e9b53541a7c13d1af17a26381e63752dd4ded688df3f542e32699c167878e779d57d6ce01a52d37b
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 sent_to(id, packet)
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
@@ -1,5 +1,5 @@
1
1
  module Tamashii
2
2
  module Manager
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
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.0
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-26 00:00:00.000000000 Z
13
+ date: 2017-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: puma