connect_wise_web_reports 0.5.0 → 0.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fba094c3921d23c2f6e5f9cd4179d42f135e19d0
4
- data.tar.gz: 6309d2836c13bbc40778e5743a7647ad486f0ab0
3
+ metadata.gz: e33c29484229dbeb21e0f291b6e7f1916391c798
4
+ data.tar.gz: 01077e877dd853f76dc0bfa4ef8013c4e3a9999d
5
5
  SHA512:
6
- metadata.gz: 999039c30e92479ce1783067dfdd68541250487efeea5c56f1f569379e96de008a58418e0714c4fb1cfbf0845d4d6ae4fcf0abde27b3524de4496521d59647f2
7
- data.tar.gz: aabb6ce71f94186eed91d981ccd2e6f5fbe85118889debdc0c30767d68d46134cc2903cc79d16c5cff163ce49e2573f2535c49d40e5482e138be2d5c6ca4d8d5
6
+ metadata.gz: 5d491d61f7a1b4e242e7a3beb7a234998a2e5e852352b384f181885375d6b4b1a47c05b79d3dba7bdef2852b2917b663227d55cba0e76d4595d5c3937ce6c7d4
7
+ data.tar.gz: acb34cfd91a59694a3ffab728662cc51043775d0fc24a68f2361cbbfb88105c661f2384acfba434f4866ccc7237fc80c8e015aac8668ccfddaeed01e2f818fbf
@@ -14,25 +14,27 @@ module ConnectWiseWebReports
14
14
  params = "r=#{name}"
15
15
 
16
16
  # API credentials
17
- params += "&c=#{options[:company_id].to_s}"
18
- params += "&u=#{options[:integrator_id].to_s}"
19
- params += "&p=#{options[:integrator_password].to_s}"
17
+ params += "&c=#{CGI.escape options[:company_id].to_s}"
18
+ params += "&u=#{CGI.escape options[:integrator_id].to_s}"
19
+ params += "&p=#{CGI.escape options[:integrator_password].to_s}"
20
20
 
21
21
  #order
22
- params += "&o=#{options[:order_by].to_s}" unless options[:order_by].nil?
22
+ params += "&o=#{CGI.escape options[:order_by].to_s}" unless options[:order_by].nil?
23
23
 
24
24
  # pagination
25
- params += "&l=#{options[:limit].to_s}" unless options[:limit].nil?
26
- params += "&s=#{options[:skip].to_s}" unless options[:skip].nil?
25
+ params += "&l=#{CGI.escape options[:limit].to_s}" unless options[:limit].nil?
26
+ params += "&s=#{CGI.escape options[:skip].to_s}" unless options[:skip].nil?
27
27
 
28
28
  # timeout
29
- params += "&t=#{options[:timeout].to_s}" unless options[:timeout].nil?
29
+ params += "&t=#{CGI.escape options[:timeout].to_s}" unless options[:timeout].nil?
30
30
 
31
31
  # fields
32
- params += "&f=#{options[:fields].join('&f=')}" unless options[:fields].nil? || options[:fields].empty?
32
+ unless options[:fields].nil? || options[:fields].empty?
33
+ params += "&f=#{options[:fields].map { |f| CGI.escape f }.join('&f=')}"
34
+ end
33
35
 
34
36
  # conditions
35
- params += "&q=#{CGI.escape(options[:conditions])}" unless options[:conditions].blank?
37
+ params += "&q=#{CGI.escape options[:conditions]}" unless options[:conditions].blank?
36
38
 
37
39
  url = "https://#{options[:host]}/#{options[:version]}/webreport/?#{params}"
38
40
 
@@ -1,3 +1,3 @@
1
1
  module ConnectWiseWebReports
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey