connect_wise_web_reports 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/connect_wise_web_reports.rb +5 -1
- data/lib/connect_wise_web_reports/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: 67eec370a164ecc8c560b0506acdb1d1320bd32a
|
4
|
+
data.tar.gz: f0e04e5d1413b1581317e34254c41b423610ac9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c62891b63bbaf575f34cd8247411ddb9aae0209282baf17d3c53588054a793e1018b8d62a3e682b82e999bd187bfccae4303207268bb0178f0a6fcfbb7f532c4
|
7
|
+
data.tar.gz: f6100e573c77a70a89c5c104671881ee5c9767cdd8d2e5d860fbbc91b929647f3b9aed95f691671d439463411c72fdf1348719c04f7e2797042f1852cb782657
|
@@ -51,7 +51,11 @@ module ConnectWiseWebReports
|
|
51
51
|
url = "https://#{options[:host]}/login/companyinfo/#{options[:company_id]}"
|
52
52
|
response = agent(options).get(url)
|
53
53
|
|
54
|
-
|
54
|
+
if response.content == 'null'
|
55
|
+
return {}
|
56
|
+
else
|
57
|
+
return JSON.parse(response.content)
|
58
|
+
end
|
55
59
|
end
|
56
60
|
|
57
61
|
end
|