artoo 1.6.6 → 1.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/artoo/api/device_event_client.rb +3 -1
- data/lib/artoo/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: 85726811d627d143e771a45cf4b31f9b4aec68fe
|
4
|
+
data.tar.gz: fc3411db1b7653af24c71eecdaa9334770fc2fb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b34f40a3c5fc71fa848f2dcaf556e5195026e1199648d101ef598580d0a95167b8240963fd5b16c207572a31487dae53e27c43ff99e217097f0faf67d1254af
|
7
|
+
data.tar.gz: 1bd83a61f6d170ebc80a80c2ed89b3c6f67e25866fab55966f752f812e00eba99c6e4be08b5447a820616d50b9a46b6851d7436528bc724382b99db35d24b7f9
|
data/Gemfile.lock
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
1
3
|
module Artoo
|
2
4
|
module Api
|
3
5
|
# The Artoo::Api::DeviceEventClient class is how a websocket client can subscribe
|
@@ -25,7 +27,7 @@ module Artoo
|
|
25
27
|
# @param [Object] data
|
26
28
|
def notify_event(topic, *data)
|
27
29
|
# TODO: send which topic sent the notification
|
28
|
-
@socket << data.last.
|
30
|
+
@socket << data.last.to_json
|
29
31
|
rescue Reel::SocketError, Errno::EPIPE
|
30
32
|
info "Device event notification #{topic} websocket disconnected"
|
31
33
|
terminate
|
data/lib/artoo/version.rb
CHANGED