simbiotes 0.1.3 → 0.1.4
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 +4 -4
- data/README.md +1 -1
- data/lib/simbiotes/insert.rb +4 -4
- data/lib/simbiotes/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7b2e8553469ac0490c1bbfb0b3b5c89f690c50e1
|
|
4
|
+
data.tar.gz: dfdcfc87f23c8fe8e3d9ddea97e77b179dd135e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9b50c72ead14a5cdec7127f7af61d4762ad60a5f25e73e232ea5c2e15f2b7154013dcfed92ecbed577cafac934696acb63f2f4e1db52a326a8bde16286daf89
|
|
7
|
+
data.tar.gz: dd2e731e42dc69ac27efd6cb8fdd1064304242205239648e03083acd2300c426287571f6663f64a920d267df79d312f60938206007ddd6ec47bff925c3bc7e22
|
data/README.md
CHANGED
|
@@ -215,7 +215,7 @@ This command installs a default controller and views for your Thermostat. Once
|
|
|
215
215
|
> rails server
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
Then in your web browser of choice, navigate to http://localhost:3000/
|
|
218
|
+
Then in your web browser of choice, navigate to http://localhost:3000/thermostats. This page will show you a list of your Thermostat instances, as well as the current values of the different interfaces for your device. You can use the edit links for each device instance to change these values.
|
|
219
219
|
|
|
220
220
|
### Adding Push Web Updates
|
|
221
221
|
|
data/lib/simbiotes/insert.rb
CHANGED
|
@@ -33,10 +33,10 @@ module Simbiotes
|
|
|
33
33
|
def find_record
|
|
34
34
|
begin
|
|
35
35
|
klass = @class.classify.constantize
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
puts e
|
|
36
|
+
master_klass = (klass.parent.to_s + "::" + klass.parent.to_s).classify.constantize
|
|
37
|
+
master_record = master_klass.find_by(simbiotes_instance: @id)
|
|
38
|
+
@record = master_record.send(@class.demodulize.downcase)
|
|
39
|
+
#puts e
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
data/lib/simbiotes/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simbiotes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MicroArx Corporation
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06-
|
|
11
|
+
date: 2017-06-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
221
221
|
version: '0'
|
|
222
222
|
requirements: []
|
|
223
223
|
rubyforge_project:
|
|
224
|
-
rubygems_version: 2.
|
|
224
|
+
rubygems_version: 2.6.10
|
|
225
225
|
signing_key:
|
|
226
226
|
specification_version: 4
|
|
227
227
|
summary: The easy way to integrate the IoT in your web app.
|