connect_wise_rest 0.7.0 → 0.8.0
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/connect_wise_rest/client.rb +6 -3
- data/lib/connect_wise_rest/configuration.rb +1 -1
- data/lib/connect_wise_rest/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88e26d06da533b8651d9731b98525c7b9816182dbf48005856a52bfbe76468a2
|
|
4
|
+
data.tar.gz: b179c3ee8c0b6644926117bf777794cf3577c4002b5937a7a7ef08c95cb588be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bf1af434ab8f028b922cc455971f9844c73f709e31618450041981e40240135d4fa6544c0aab4518371439ed76e6253f68c969ea889610a31d9a34ce6307f80
|
|
7
|
+
data.tar.gz: 34bc538b89a5d4ddd8c3050e6203badc37cd3f279ef59a0d86181626df12bc5c9738c8951f7115f3560aa1c782d74fefc6e153d78e5ad5f85a633e46cdaa16a4
|
data/CHANGELOG.md
ADDED
|
@@ -8,7 +8,8 @@ module ConnectWiseRest
|
|
|
8
8
|
{
|
|
9
9
|
headers: {},
|
|
10
10
|
query: { 'page' => 1, 'pageSize' => 75 },
|
|
11
|
-
timeout: 300
|
|
11
|
+
timeout: 300,
|
|
12
|
+
request_options: {}
|
|
12
13
|
}
|
|
13
14
|
)
|
|
14
15
|
|
|
@@ -37,7 +38,9 @@ module ConnectWiseRest
|
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
def request_options
|
|
40
|
-
request_options = {
|
|
41
|
+
request_options = options[:request_options] || {}
|
|
42
|
+
|
|
43
|
+
request_options.merge!(
|
|
41
44
|
headers: { 'Accept' => 'application/json' }.merge(options[:headers]),
|
|
42
45
|
query: self.options[:query],
|
|
43
46
|
timeout: options[:timeout],
|
|
@@ -45,7 +48,7 @@ module ConnectWiseRest
|
|
|
45
48
|
username: "#{options[:company_id]}+#{options[:public_key]}",
|
|
46
49
|
password: options[:private_key]
|
|
47
50
|
}
|
|
48
|
-
|
|
51
|
+
)
|
|
49
52
|
|
|
50
53
|
if options[:proxy_host]
|
|
51
54
|
request_options.merge!(
|
|
@@ -14,7 +14,7 @@ module ConnectWiseRest
|
|
|
14
14
|
|
|
15
15
|
class Configuration
|
|
16
16
|
attr_accessor :company_id, :private_key, :public_key, :url_prefix, :version, :debug, :logger,
|
|
17
|
-
:proxy_host, :proxy_port, :proxy_user, :proxy_password
|
|
17
|
+
:proxy_host, :proxy_port, :proxy_user, :proxy_password, :request_options
|
|
18
18
|
|
|
19
19
|
def initialize
|
|
20
20
|
@version = '3.0'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: connect_wise_rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kevin Pheasey
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-07-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -61,6 +61,7 @@ extra_rdoc_files: []
|
|
|
61
61
|
files:
|
|
62
62
|
- ".gitignore"
|
|
63
63
|
- ".travis.yml"
|
|
64
|
+
- CHANGELOG.md
|
|
64
65
|
- CODE_OF_CONDUCT.md
|
|
65
66
|
- Gemfile
|
|
66
67
|
- README.md
|