connect_wise_rest 0.6.1 → 0.7.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: 1ff2c420cc682dbb97943cba2c8eac2bc6e279c731a2aafa0e7b693fd96e24a4
4
- data.tar.gz: 89545e6d72b8e1413a5ff480f18ca38205346e11b964c663f457529274931b2a
3
+ metadata.gz: 73ba93e840b0c45d63484b3d29af22b4af10d6c31aa6cfbc5c09626eec11726b
4
+ data.tar.gz: 8de52b94e67c5569043ebcb44bd8405d95d3e4eede3e48b6ea64b13b4dfcaed2
5
5
  SHA512:
6
- metadata.gz: 7c2c60e7b19da2c314f0babd64bba6664b29b109bbba665e07c7f924fc505dcc6448988999f305dc5d8ba468b9d1ed8e660e39e8f4ae8bab3151910f4f264cfd
7
- data.tar.gz: 58100375825ce84eebff61eb5162e255e43897d38511a35238fb00054a36a4aa0eb89004b81004feea7912b45267b3a6ffca42dea1dd43b430f97c3e02abd31f
6
+ metadata.gz: 338f3856698927f396565c95f445b0831421bd155fa1cc108fc97a9a46a497911d53a15793190023520c00319b7d81eba0fadf52c98c6fada1ea189461ac2888
7
+ data.tar.gz: 0c36dbb02266b50d53fd7173e2a346d618a33b45ac849788fe76fa6fab48036435cf3a0882f5f4d243ae951014cb3f76960764d5d7c5f6b00db96a11cf04a3ff
data/.gitignore CHANGED
File without changes
data/.travis.yml CHANGED
File without changes
data/CODE_OF_CONDUCT.md CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
@@ -47,7 +47,18 @@ module ConnectWiseRest
47
47
  }
48
48
  }
49
49
 
50
- request_options[:debug_output] = options[:logger] if options[:debug] && options[:logger]
50
+ if options[:proxy_host]
51
+ request_options.merge!(
52
+ http_proxyaddr: options[:proxy_host],
53
+ http_proxyport: options[:proxy_port],
54
+ http_proxyuser: options[:proxy_user],
55
+ http_proxypass: options[:proxy_password],
56
+ )
57
+ end
58
+
59
+ if options[:debug] && options[:logger]
60
+ request_options[:debug_output] = options[:logger]
61
+ end
51
62
 
52
63
  request_options
53
64
  end
@@ -13,7 +13,8 @@ module ConnectWiseRest
13
13
  end
14
14
 
15
15
  class Configuration
16
- attr_accessor :company_id, :private_key, :public_key, :url_prefix, :version, :debug, :logger
16
+ attr_accessor :company_id, :private_key, :public_key, :url_prefix, :version, :debug, :logger,
17
+ :proxy_host, :proxy_port, :proxy_user, :proxy_password
17
18
 
18
19
  def initialize
19
20
  @version = '3.0'
@@ -30,7 +31,5 @@ module ConnectWiseRest
30
31
  instance_variables.each { |var| hash[var.to_s.delete('@').to_sym] = instance_variable_get(var) }
31
32
  hash
32
33
  end
33
-
34
34
  end
35
-
36
- end
35
+ end
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module ConnectWiseRest
2
- VERSION = '0.6.1'
2
+ VERSION = '0.7.0'
3
3
  end
File without changes
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.6.1
4
+ version: 0.7.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-02-06 00:00:00.000000000 Z
11
+ date: 2019-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.7.6
97
+ rubygems_version: 2.7.8
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: REST client wrapper for Connect Wise.