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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3383a03f7bf2501883d705393e127fd7cf59f913
4
- data.tar.gz: dd234173f71a7e460c381dd0c3929e290bdfb88d
3
+ metadata.gz: 67eec370a164ecc8c560b0506acdb1d1320bd32a
4
+ data.tar.gz: f0e04e5d1413b1581317e34254c41b423610ac9c
5
5
  SHA512:
6
- metadata.gz: 43a75144611fb67d4dd06fccc829e3fa4bd3211cbd970d409b659340dba85afb69a3cf99a26d92de31094e97e2fe072928953fddbdd8a16d1c4ad9e47eec0b81
7
- data.tar.gz: dbb9048e169ef304bc468a1262ed8c7ecdc48dc08f52b8907d349d2454b05a6c3662db7b9c7a9bfe65547008a56fe5299b76538aedbb2af2218730f60767078d
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
- return JSON.parse(response.content)
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
@@ -1,3 +1,3 @@
1
1
  module ConnectWiseWebReports
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect_wise_web_reports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey