lightwaverf 0.6.2 → 0.6.3
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.
- data/lib/lightwaverf.rb +9 -1
- metadata +2 -2
data/lib/lightwaverf.rb
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
# Add info about states to timer log
|
|
7
7
|
# Build / update cron job automatically
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
require 'yaml'
|
|
11
10
|
require 'socket'
|
|
12
11
|
require 'net/http'
|
|
@@ -179,6 +178,15 @@ class LightWaveRF
|
|
|
179
178
|
self.put_config
|
|
180
179
|
end
|
|
181
180
|
@config = YAML.load_file self.get_config_file
|
|
181
|
+
# fix where device names became arrays somehow
|
|
182
|
+
if @config['room']
|
|
183
|
+
@config['room'].map! do | room |
|
|
184
|
+
room['device'].map! do | device |
|
|
185
|
+
device = device.kind_of?( Array ) ? device[0] : device
|
|
186
|
+
end
|
|
187
|
+
room
|
|
188
|
+
end
|
|
189
|
+
end
|
|
182
190
|
end
|
|
183
191
|
@config
|
|
184
192
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lightwaverf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2013-08-
|
|
14
|
+
date: 2013-08-24 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: htmlentities
|