tamashii-manager 0.2.1 → 0.2.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63369a8bf4cc671bf3714013b73f6bfdab72ab31
|
4
|
+
data.tar.gz: 3fa3390cba46454785be013b96405830a0484493
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ffa1749eab9fbf2b1f43d8038658b23be3161db0d8bc3d3cc81335d91a44b52f3f9f92dfca6d924665d785763683c2344cd322c3f7342cfc1940cf1a030f527
|
7
|
+
data.tar.gz: cd714954880cf7eec9ded1932eca5ba0f96e118ec3c3eaf89af14a418d07eda79b6bc4a0b81d41fd0dd70c5f4f428715879eed3ccda8bca204dad7a36a2bcd49
|
@@ -9,7 +9,7 @@ module Tamashii
|
|
9
9
|
other.class_eval do
|
10
10
|
class << self
|
11
11
|
def accepted_clients
|
12
|
-
@accepted_clients ||=
|
12
|
+
@accepted_clients ||= Concurrent::Hash.new
|
13
13
|
end
|
14
14
|
|
15
15
|
def [](name)
|
@@ -22,6 +22,10 @@ module Tamashii
|
|
22
22
|
accepted_clients[name.to_s] = client
|
23
23
|
end
|
24
24
|
|
25
|
+
def remove_client(name)
|
26
|
+
accepted_clients.delete(name)
|
27
|
+
end
|
28
|
+
|
25
29
|
def send_to(id, packet)
|
26
30
|
Manager.server.pubsub.send_to(id, packet)
|
27
31
|
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.
|
4
|
+
version: 0.2.2
|
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-
|
13
|
+
date: 2017-07-27 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: puma
|