nutella_lib 0.4.8 → 0.4.9

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: 95a7283e45d2948f7e87fa48cb4f93071ce947a6
4
- data.tar.gz: 19b500a49c530b69a5ab64ac2b9003e8414b0b31
3
+ metadata.gz: a41007fb50c6294bef70e4d0678ab60cfad5627c
4
+ data.tar.gz: e803a2a2796812cf77b61c5234b0560c53050e10
5
5
  SHA512:
6
- metadata.gz: 5495a11d76235c73d0a64846bea17115a5cedfa8e0fd7a439b2453b4a684f414f98c2cb1fb9b265a5b6b5567485682fbc0bab3edbd03b6c9505f7ba3e44a852e
7
- data.tar.gz: e983d64a9bfbf8cbe6fea9f148d67159e0801bc5ae0d6aa0345f48b9c2d883cae774c34c0b4480ffc40942ff3dfc55252f2a3475d4cdc639407ad4a51187a6b0
6
+ metadata.gz: 332710b0952bc698e54dc1caf8da3ef0cb582e40f3b40a456f699dc9c58b6d49d87ccf9641b5bd2dc3e01917f197967b6c0ec3953141c53415054358b8e760a4
7
+ data.tar.gz: b7de7881930f00ce83674ebd14055a73180eb40038380e46219db07f4639985d15818016da4af063d3450b96ae3ccc3affb840c373f0613fbfce0d32fe7ae13d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.8
1
+ 0.4.9
@@ -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 subscriptions bot
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
 
@@ -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 subscriptions bot
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.8 ruby lib
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.8"
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-06"
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.8
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-06 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mqtt