lob 5.4.4 → 5.4.5

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: b0a60dcd0cd6c3caef1d72f172c78ac2d544532a006c00ede921f397de1c2897
4
- data.tar.gz: ebd88e4908500dba5f7814dd0e74b4a3e114c95395cb3511f2a66868acf3a739
3
+ metadata.gz: 14de59724a258146efda8e6e01416f8c783c5f63e92989dd017ca1ec17c7c43a
4
+ data.tar.gz: 49c06775670f7101fec498ea258ad2c415d086ea16c15cee163d34379ebacbae
5
5
  SHA512:
6
- metadata.gz: 5e8f68abd55e2626148f6ec248e2c9efcc7eeaaf58b6257370f33a91354d9924ebd660498b6704cf39fb6ba51919d120a306d6eef6e6aefb471d5cd19470d76f
7
- data.tar.gz: d49279834a27c4665da66e509bcc9bf6625b3121ad644691a6ed76921917cb93e090b28f595c1c31ee7517d97073a68806b39ee8f404688bd4553303c02720a9
6
+ metadata.gz: ad126ff6eef5e894245b99842ada43132454074dbad8d43093828f3069b173c1ff97940769cb55febe079d6bb48de8152d42ac28ed904e7f93df011252528084
7
+ data.tar.gz: d8f04a69fca64ef67ddfd2ed109f851917ac269f6996ae74009939f8601cd8060eeed56868c40303b9fad56857f5c6df3ff374f19a8a315e6c9ac6bbe39eb60c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [**5.4.5**](https://github.com/lob/lob-ruby/releases/tag/v5.4.5) (2022-01-11)
2
+ - [**203**](https://github.com/lob/lob-ruby/pull/203) Pass through proxy to rest-client if supplied
1
3
  ## [**5.4.4**](https://github.com/lob/lob-ruby/releases/tag/v5.4.4) (2021-12-16)
2
4
  - [**202**](https://github.com/lob/lob-ruby/pull/202) Fix for coveralls API for GH actions and fix for error in resource_base.rb
3
5
  ## [**5.4.3**](https://github.com/lob/lob-ruby/releases/tag/v5.4.3) (2021-12-15)
data/README.md CHANGED
@@ -69,6 +69,9 @@ lob = Lob::Client.new(api_key: "your-api-key")
69
69
 
70
70
  # To initialize a Lob object with an older API version
71
71
  lob = Lob::Client.new(api_key: "your-api-key", api_version: "2014-12-18")
72
+
73
+ # To initialize a Lob object that needs to communicate via a proxy
74
+ lob = Lob::Client.new(api_key: "your-api-key", proxy: "http://proxy.example.com)
72
75
  ```
73
76
 
74
77
  #### Caution: Pass zero-prefixed zip codes as strings
@@ -77,6 +77,9 @@ module Lob
77
77
  method: method,
78
78
  url: url,
79
79
  }
80
+
81
+ client_params[:proxy] = config[:proxy] if config.key?(:proxy)
82
+
80
83
  unless method == :delete || method == :get
81
84
  if body and body[:merge_variables] and body[:merge_variables].class == Hash
82
85
  body[:merge_variables] = body[:merge_variables].to_json
data/lib/lob/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lob
2
- VERSION = "5.4.4"
2
+ VERSION = "5.4.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lob
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.4
4
+ version: 5.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lob
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-16 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client