nutella_lib 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/nutella_lib/app_net.rb +4 -2
- data/lib/nutella_lib/net.rb +4 -2
- data/nutella_lib.gemspec +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a41007fb50c6294bef70e4d0678ab60cfad5627c
|
4
|
+
data.tar.gz: e803a2a2796812cf77b61c5234b0560c53050e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 332710b0952bc698e54dc1caf8da3ef0cb582e40f3b40a456f699dc9c58b6d49d87ccf9641b5bd2dc3e01917f197967b6c0ec3953141c53415054358b8e760a4
|
7
|
+
data.tar.gz: b7de7881930f00ce83674ebd14055a73180eb40038380e46219db07f4639985d15818016da4af063d3450b96ae3ccc3affb840c373f0613fbfce0d32fe7ae13d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.9
|
data/lib/nutella_lib/app_net.rb
CHANGED
@@ -182,8 +182,8 @@ module Nutella
|
|
182
182
|
Nutella::Net.subscriptions.push padded_channel
|
183
183
|
Nutella::Net.callbacks.push mqtt_cb
|
184
184
|
Nutella.mqtt.subscribe( padded_channel, mqtt_cb )
|
185
|
-
# Notify
|
186
|
-
Nutella::Net.publish_to('subscriptions', {'channel' => padded_channel}, Nutella.app_id, nil)
|
185
|
+
# Notify subscription
|
186
|
+
Nutella::Net.publish_to('subscriptions', {'type' => 'subscribe', 'channel' => padded_channel}, Nutella.app_id, nil)
|
187
187
|
end
|
188
188
|
|
189
189
|
|
@@ -254,6 +254,8 @@ module Nutella
|
|
254
254
|
end
|
255
255
|
# Subscribe to the channel
|
256
256
|
Nutella.mqtt.subscribe( padded_channel, mqtt_cb )
|
257
|
+
# Notify subscription
|
258
|
+
Nutella::Net.publish_to('handle_requests', {'type' => 'subscribe', 'channel' => padded_channel}, Nutella.app_id, nil)
|
257
259
|
end
|
258
260
|
|
259
261
|
|
data/lib/nutella_lib/net.rb
CHANGED
@@ -222,8 +222,8 @@ module Nutella
|
|
222
222
|
@subscriptions.push padded_channel
|
223
223
|
@callbacks.push mqtt_cb
|
224
224
|
Nutella.mqtt.subscribe( padded_channel, mqtt_cb )
|
225
|
-
# Notify
|
226
|
-
publish_to('subscriptions', {'channel' => padded_channel}, app_id, run_id)
|
225
|
+
# Notify subscription
|
226
|
+
publish_to('subscriptions', {'type' => 'subscribe', 'channel' => padded_channel}, app_id, run_id)
|
227
227
|
end
|
228
228
|
|
229
229
|
|
@@ -364,6 +364,8 @@ module Nutella
|
|
364
364
|
end
|
365
365
|
# Subscribe to the channel
|
366
366
|
Nutella.mqtt.subscribe(padded_channel, mqtt_cb)
|
367
|
+
# Notify subscription
|
368
|
+
publish_to('subscriptions', {'type' => 'handle_requests', 'channel' => padded_channel}, app_id, run_id)
|
367
369
|
end
|
368
370
|
end
|
369
371
|
end
|
data/nutella_lib.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: nutella_lib 0.4.
|
5
|
+
# stub: nutella_lib 0.4.9 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "nutella_lib"
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.9"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Alessandro Gnoli"]
|
14
|
-
s.date = "2015-04-
|
14
|
+
s.date = "2015-04-07"
|
15
15
|
s.description = "Implements the nutella protocol and exposes it natively to ruby developers"
|
16
16
|
s.email = "tebemis@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nutella_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Gnoli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mqtt
|