emmy-machine 0.1.5 → 0.1.6
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 +4 -4
- data/lib/emmy_machine/class_methods.rb +4 -1
- data/lib/emmy_machine/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c935e927a2b72deb8190de5514804dd5eb66ab5c
|
4
|
+
data.tar.gz: 4102fb64a3909e5d280a1a19f7cceb34b263ad47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f534f05d2aa42acb020c94266e521cb8b767f2ae096595fba03740d3da9a511179f1484e1547a91cc421b7377e35099f6ceddcb54d48360898b5dbf6991ed08
|
7
|
+
data.tar.gz: 7491d8e178c96091c466fc8d960665df2e695eda9f3bac1132469c2aa43458912f56ce36ceb71ece4ff0dde32928b6add37716c99e46406a173eb56dfd09d503
|
@@ -102,7 +102,10 @@ module EmmyMachine
|
|
102
102
|
# EmmyMachine.watch(socket, ClientConnection, notify_readable: false, notify_writable: true) - notify write only
|
103
103
|
def watch(socket, handler, *a, notify_readable: true, notify_writable: false, &b)
|
104
104
|
b ||= a.shift if a.first.is_a?(Proc) || a.first.is_a?(Method)
|
105
|
-
EventMachine::attach_io(socket, true, handler, *a, &b)
|
105
|
+
EventMachine::attach_io(socket, true, handler, *a, &b).tap do |conn|
|
106
|
+
conn.notify_readable = true if notify_readable
|
107
|
+
conn.notify_writable = true if notify_writable
|
108
|
+
end
|
106
109
|
end
|
107
110
|
|
108
111
|
def next_tick
|
data/lib/emmy_machine/version.rb
CHANGED