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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3584381cb41883816a9f4012c6230486947fa485
4
- data.tar.gz: 4f5aa993b95a2ba2e6e2f226f683211c4f899b78
3
+ metadata.gz: 85726811d627d143e771a45cf4b31f9b4aec68fe
4
+ data.tar.gz: fc3411db1b7653af24c71eecdaa9334770fc2fb2
5
5
  SHA512:
6
- metadata.gz: 7759b494252d0a1a4f4fb910b26661c04487db5736e445e9dc9dbb6a7066a68dac94cbf6e2fb7a5ef414db5e3e8b37640d22de50b0cc8f3b8877eac1c1399680
7
- data.tar.gz: f0a5096bafca9200f409a6e9ebfc92deebd061b562866957dadeb3cb3b3dc35e568d8321e9f6da2a185f77c20d7c0c57b9db81aa41789333a2d4701697a7704a
6
+ metadata.gz: 1b34f40a3c5fc71fa848f2dcaf556e5195026e1199648d101ef598580d0a95167b8240963fd5b16c207572a31487dae53e27c43ff99e217097f0faf67d1254af
7
+ data.tar.gz: 1bd83a61f6d170ebc80a80c2ed89b3c6f67e25866fab55966f752f812e00eba99c6e4be08b5447a820616d50b9a46b6851d7436528bc724382b99db35d24b7f9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo (1.6.6)
4
+ artoo (1.6.7)
5
5
  celluloid (~> 0.15.0)
6
6
  celluloid-io (~> 0.15.0)
7
7
  http (~> 0.5.0)
@@ -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.to_s
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
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  unless const_defined?('VERSION')
3
- VERSION = "1.6.6"
3
+ VERSION = "1.6.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6
4
+ version: 1.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans