nutella_framework 0.4.4 → 0.4.5

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: 985ac203f45bd24c45a2dab80cadc5d35676c34d
4
- data.tar.gz: 59a84923426a3c5220b3b40d23e11992ea25ebf6
3
+ metadata.gz: 2053561c843c23949fc06095459bcaaaf3fce57a
4
+ data.tar.gz: ad866dc126f6fc835b159593a559c1105ce46295
5
5
  SHA512:
6
- metadata.gz: 4fca36e102b895e0dec892735adfef105656ca15de2a96fe75e0619dfad0024eb51ee12752f71441e76ad27c4496cdb477a52bab1506640a24de67cc84166fb8
7
- data.tar.gz: d5df41d38bdb0027e810d04d98046de35aaf01aff200e6dea060742237ed1c3ebc6a1db11ee16d5b767804ee1621cea925e82b75a40a8c4780ff564bdea3e3ba
6
+ metadata.gz: 1d8826cf38ca62a196916de32d279a2e2ce35ebf5c45f430b435c371fc023bd096cdf5c25d1924c107de52d3cfc8a564c4d701367808230b9b46e8d30f00beba
7
+ data.tar.gz: 2b1389cd4fb4df14a450de083d9fe8cbc18bb049239e799a6561382cda70768d15ec2926fe042d78021f8cfe8424b153f6b19901160226dc926fc199b2d5191d
data/Gemfile CHANGED
@@ -7,7 +7,7 @@ gem 'sinatra', '~>1.4.5', '>=1.4.5'
7
7
  gem 'thin', '~>1.6.3', '>=1.6.3'
8
8
  gem 'nokogiri', '~>1.6.3', '>=1.6.3'
9
9
  gem 'slop', '~>4.0.0', '>=4.0.0'
10
- gem 'nutella_lib','~>0.4.5', '>=0.4.5'
10
+ gem 'nutella_lib','~>0.4.6', '>=0.4.6'
11
11
 
12
12
 
13
13
  group :development do
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.4
1
+ 0.4.5
@@ -8,11 +8,8 @@
8
8
  </head>
9
9
  <body>
10
10
  <h1>Example framework interface</h1>
11
- <p>This is an example of a framework interface. Use this template to write your own framework interface.</p>
12
- <p>And just to make sure we are not just loading the index.html file, here is a picture of dandelions</p>
13
- <img src="dandelion-flowers-card.jpg" width="500">
14
-
15
- WE NEED TO COMPLETE THIS TEMPLATE BUT IN ORDER FOR THAT TO HAPPEN, I NEED JAVASCRIPT APIs!!!
11
+ <p>This is an example of a framework interface. Use this template to write your own framework interface.
12
+ WE NEED TO COMPLETE THIS TEMPLATE BUT IN ORDER FOR THAT TO HAPPEN, I NEED JAVASCRIPT APIs!!!</p>
16
13
 
17
14
  </body>
18
15
  </html>
@@ -2,11 +2,11 @@
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_framework 0.4.4 ruby lib
5
+ # stub: nutella_framework 0.4.5 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "nutella_framework"
9
- s.version = "0.4.4"
9
+ s.version = "0.4.5"
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"]
@@ -32,7 +32,6 @@ Gem::Specification.new do |s|
32
32
  "data/startup",
33
33
  "example_framework_components/example_framework_bot/example_framework_bot.rb",
34
34
  "example_framework_components/example_framework_bot/startup",
35
- "framework_components/example_framework_web_interface/dandelion-flowers-card.jpg",
36
35
  "framework_components/example_framework_web_interface/index.html",
37
36
  "framework_components/logging_bot/logging_bot.rb",
38
37
  "framework_components/logging_bot/startup",
@@ -100,7 +99,7 @@ Gem::Specification.new do |s|
100
99
  s.add_runtime_dependency(%q<thin>, [">= 1.6.3", "~> 1.6.3"])
101
100
  s.add_runtime_dependency(%q<nokogiri>, [">= 1.6.3", "~> 1.6.3"])
102
101
  s.add_runtime_dependency(%q<slop>, [">= 4.0.0", "~> 4.0.0"])
103
- s.add_runtime_dependency(%q<nutella_lib>, [">= 0.4.5", "~> 0.4.5"])
102
+ s.add_runtime_dependency(%q<nutella_lib>, [">= 0.4.6", "~> 0.4.6"])
104
103
  s.add_development_dependency(%q<shoulda>, [">= 3", "~> 3"])
105
104
  s.add_development_dependency(%q<yard>, [">= 0.8.7", "~> 0.8"])
106
105
  s.add_development_dependency(%q<rdoc>, [">= 4.0", "~> 4.0"])
@@ -115,7 +114,7 @@ Gem::Specification.new do |s|
115
114
  s.add_dependency(%q<thin>, [">= 1.6.3", "~> 1.6.3"])
116
115
  s.add_dependency(%q<nokogiri>, [">= 1.6.3", "~> 1.6.3"])
117
116
  s.add_dependency(%q<slop>, [">= 4.0.0", "~> 4.0.0"])
118
- s.add_dependency(%q<nutella_lib>, [">= 0.4.5", "~> 0.4.5"])
117
+ s.add_dependency(%q<nutella_lib>, [">= 0.4.6", "~> 0.4.6"])
119
118
  s.add_dependency(%q<shoulda>, [">= 3", "~> 3"])
120
119
  s.add_dependency(%q<yard>, [">= 0.8.7", "~> 0.8"])
121
120
  s.add_dependency(%q<rdoc>, [">= 4.0", "~> 4.0"])
@@ -131,7 +130,7 @@ Gem::Specification.new do |s|
131
130
  s.add_dependency(%q<thin>, [">= 1.6.3", "~> 1.6.3"])
132
131
  s.add_dependency(%q<nokogiri>, [">= 1.6.3", "~> 1.6.3"])
133
132
  s.add_dependency(%q<slop>, [">= 4.0.0", "~> 4.0.0"])
134
- s.add_dependency(%q<nutella_lib>, [">= 0.4.5", "~> 0.4.5"])
133
+ s.add_dependency(%q<nutella_lib>, [">= 0.4.6", "~> 0.4.6"])
135
134
  s.add_dependency(%q<shoulda>, [">= 3", "~> 3"])
136
135
  s.add_dependency(%q<yard>, [">= 0.8.7", "~> 0.8"])
137
136
  s.add_dependency(%q<rdoc>, [">= 4.0", "~> 4.0"])
@@ -28,6 +28,8 @@ module Nutella
28
28
  Nutella.resource_id = nil
29
29
  Nutella.mongo_host = broker_hostname
30
30
  Nutella.mqtt = SimpleMQTTClient.new broker_hostname
31
+ # Start pinging
32
+ Nutella.net.start_pinging
31
33
  end
32
34
 
33
35
  # Accessors for sub-modules
@@ -189,6 +189,8 @@ module Nutella
189
189
  Nutella::Net.subscriptions.push padded_channel
190
190
  Nutella::Net.callbacks.push mqtt_cb
191
191
  Nutella.mqtt.subscribe( padded_channel, mqtt_cb )
192
+ # Notify subscriptions bot
193
+ Nutella::Net.publish_to('subscriptions', {'channel' => padded_channel}, nil, nil)
192
194
  end
193
195
 
194
196
 
@@ -387,6 +389,8 @@ module Nutella
387
389
  Nutella::Net.subscriptions.push padded_channel
388
390
  Nutella::Net.callbacks.push mqtt_cb
389
391
  Nutella.mqtt.subscribe( padded_channel, mqtt_cb )
392
+ # Notify subscriptions bot
393
+ Nutella::Net.publish_to('subscriptions', {'channel' => padded_channel}, nil, nil)
390
394
  end
391
395
 
392
396
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutella_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Gnoli
@@ -156,20 +156,20 @@ dependencies:
156
156
  requirements:
157
157
  - - ">="
158
158
  - !ruby/object:Gem::Version
159
- version: 0.4.5
159
+ version: 0.4.6
160
160
  - - "~>"
161
161
  - !ruby/object:Gem::Version
162
- version: 0.4.5
162
+ version: 0.4.6
163
163
  type: :runtime
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
167
  - - ">="
168
168
  - !ruby/object:Gem::Version
169
- version: 0.4.5
169
+ version: 0.4.6
170
170
  - - "~>"
171
171
  - !ruby/object:Gem::Version
172
- version: 0.4.5
172
+ version: 0.4.6
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: shoulda
175
175
  requirement: !ruby/object:Gem::Requirement
@@ -311,7 +311,6 @@ files:
311
311
  - data/startup
312
312
  - example_framework_components/example_framework_bot/example_framework_bot.rb
313
313
  - example_framework_components/example_framework_bot/startup
314
- - framework_components/example_framework_web_interface/dandelion-flowers-card.jpg
315
314
  - framework_components/example_framework_web_interface/index.html
316
315
  - framework_components/logging_bot/logging_bot.rb
317
316
  - framework_components/logging_bot/startup