imperituroard 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/imperituroard/projects/iot.rb +5 -1
- data/lib/imperituroard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c8f6bbfe4c5e01a964045775d36b13741596323
|
4
|
+
data.tar.gz: 310767c96c24eaba6b79bd68ea5deea2040f6df3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a11a03525f557e5c371b66826dc040c3eeaaf991697bf292c565b5f9f2431b568764765a4b1add9bbdbcdd3a5187f035c0f3790b13703d99dbd552d701b764a4
|
7
|
+
data.tar.gz: 83ab21b87e290534e833043230524fbef8b1fa1def3112c80b6e3046b21dd1ce180651f99d31626780ff89803f7f52434e24451b174e49470898cbfa5d253971
|
@@ -131,10 +131,14 @@ class IotFunctions_2
|
|
131
131
|
|
132
132
|
#########
|
133
133
|
|
134
|
+
if aaa.key?("type") && !aaa.key?("device_type")
|
135
|
+
aaa["device_type"] = aaa["type"]
|
136
|
+
elsif aaa.key?("device_type") && !aaa.key?("type")
|
137
|
+
aaa["type"] = aaa["device_type"]
|
138
|
+
end
|
134
139
|
|
135
140
|
if credentials[:code] == 200
|
136
141
|
|
137
|
-
|
138
142
|
begin
|
139
143
|
dev_name = aaa["imei"].to_s
|
140
144
|
|