tamashii 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5528eae49cee966009f8840079b125b2c58adae
|
4
|
+
data.tar.gz: 86ab766be4d51d630d34a828bbd81ce1c67afb65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3deb8659746182ef1dad7fb16d3ca6c0297fe518228be4528473d72af2e3d24e5c252c4fad94732b8959f45f39a016ab96f5905bcd9c50218310a507f7831b26
|
7
|
+
data.tar.gz: d38fb81b52fc1c2100b19581acc03b98b631331329b2c8479598ab6044dc42f9611d8da7fb088fb3a436986cb4f83bb6d26337d669f3cf7b8029c5c46376ada5
|
@@ -32,14 +32,14 @@ module Tamashii
|
|
32
32
|
@configs[key.to_sym] = value
|
33
33
|
end
|
34
34
|
|
35
|
-
def respond_to_missing?(name)
|
35
|
+
def respond_to_missing?(name, _all = false)
|
36
36
|
self.class.exist?(name)
|
37
37
|
end
|
38
38
|
|
39
39
|
def method_missing(name, *args, &block)
|
40
40
|
return super unless self.class.exist?(name)
|
41
|
-
return config(name.to_sym) unless name.to_s.end_with?('=')
|
42
|
-
config(name.to_s[0..-2].to_sym, args.first
|
41
|
+
return config(name.to_sym, nil, &block) unless name.to_s.end_with?('=')
|
42
|
+
config(name.to_s[0..-2].to_sym, args.first)
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -18,18 +18,15 @@ module Tamashii
|
|
18
18
|
@socket.rack_response
|
19
19
|
end
|
20
20
|
|
21
|
-
def on_open
|
22
|
-
end
|
21
|
+
def on_open; end
|
23
22
|
|
24
23
|
def on_message(data)
|
25
24
|
@server.pubsub.broadcast(data)
|
26
25
|
end
|
27
26
|
|
28
|
-
def on_error
|
29
|
-
end
|
27
|
+
def on_error; end
|
30
28
|
|
31
|
-
def on_close
|
32
|
-
end
|
29
|
+
def on_close; end
|
33
30
|
end
|
34
31
|
end
|
35
32
|
end
|
data/lib/tamashii/version.rb
CHANGED