connect_wise_rest 0.5.0 → 0.6.0

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
  SHA256:
3
- metadata.gz: 2f0f3fdbdbb40bd8b9f825cb46e4f85d10f5b9270868ff6018b7dd67b858c069
4
- data.tar.gz: 805b98ddfdd17433f63442695149c6469d2d60070e59eba04c0a1e3242057d65
3
+ metadata.gz: 0b699145e461f64788fab73819e9b91dcc1a467ff41d25583dc1541b7bf34dc0
4
+ data.tar.gz: cd6ad4fe2d9c9f615acc0da058e305c5d4f7cac31a9a40192b8ae2cdee0d4f5d
5
5
  SHA512:
6
- metadata.gz: d85b164ff6e0910205f1118784efb2bf8773ac2c4425e8422e6c6be84dc4760a9a3116173cb8dcedbc6885f17c42b31899d779b3ac2c1318cfd5258c1f157046
7
- data.tar.gz: f128174486933efba430c623e52d2d7967073118dc2ff34bdaf813501561b9032fb8a031c7e0f819a8bccc20ff75de74753db0ae4fa25740342dda83c1a262d2
6
+ metadata.gz: 2b145b8c19e9ce4df655ed2303a8fe6861e854a358c31d67d5c110019ac9db941880f8fdb2fdde236d0e5fa8275b504021099f82f79093ab1affdcaaaa044b71
7
+ data.tar.gz: 78f251be2001f7f9d70dcbd36ada83a4e6a4ae1f10e4540c77ca94318d233ca73c8a30650ee55414a5256bffaf36b3f4304fd5f83fd4f8f8338a5992460282be
@@ -6,8 +6,9 @@ module ConnectWiseRest
6
6
 
7
7
  DEFAULT_OPTIONS = ConnectWiseRest.configuration.to_hash.merge(
8
8
  {
9
- timeout: 300,
10
- query: { 'page' => 1, 'pageSize' => 75 }
9
+ headers: {},
10
+ query: { 'page' => 1, 'pageSize' => 75 },
11
+ timeout: 300
11
12
  }
12
13
  )
13
14
 
@@ -37,7 +38,7 @@ module ConnectWiseRest
37
38
 
38
39
  def request_options
39
40
  request_options = {
40
- headers: { 'Accept' => 'application/json' },
41
+ headers: { 'Accept' => 'application/json' }.merge(options[:headers]),
41
42
  query: self.options[:query],
42
43
  timeout: options[:timeout],
43
44
  basic_auth: {
@@ -1,3 +1,3 @@
1
1
  module ConnectWiseRest
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect_wise_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Pheasey