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 +4 -4
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/framework_components/example_framework_web_interface/index.html +2 -5
- data/nutella_framework.gemspec +5 -6
- data/nutella_lib/framework_core.rb +2 -0
- data/nutella_lib/framework_net.rb +4 -0
- metadata +5 -6
- data/framework_components/example_framework_web_interface/dandelion-flowers-card.jpg +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2053561c843c23949fc06095459bcaaaf3fce57a
|
4
|
+
data.tar.gz: ad866dc126f6fc835b159593a559c1105ce46295
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d8826cf38ca62a196916de32d279a2e2ce35ebf5c45f430b435c371fc023bd096cdf5c25d1924c107de52d3cfc8a564c4d701367808230b9b46e8d30f00beba
|
7
|
+
data.tar.gz: 2b1389cd4fb4df14a450de083d9fe8cbc18bb049239e799a6561382cda70768d15ec2926fe042d78021f8cfe8424b153f6b19901160226dc926fc199b2d5191d
|
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.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
|
12
|
-
|
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>
|
data/nutella_framework.gemspec
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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.
|
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"])
|
@@ -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
|
+
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.
|
159
|
+
version: 0.4.6
|
160
160
|
- - "~>"
|
161
161
|
- !ruby/object:Gem::Version
|
162
|
-
version: 0.4.
|
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.
|
169
|
+
version: 0.4.6
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: 0.4.
|
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
|