lob 5.4.2 → 5.4.3
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/.gitignore +1 -0
- data/CHANGELOG.md +2 -0
- data/lib/lob/resources/resource_base.rb +15 -9
- data/lib/lob/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d19b8b1eb88e0bc6131dae90d56a11e91957234bebdf9f94dfe63bfcb7547925
|
|
4
|
+
data.tar.gz: '05677558cc8a02072ff404c99b231ddc3ede4e7b0aa4f1113e726254b5cbb952'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d02f0fdd4cff4e426ee3e80f08bbf55b154b7c830932e4e6e8cad774f46b30a8341db06404dde082861515f0f665898ff8b276a7d902847ff325ac7edca41d0
|
|
7
|
+
data.tar.gz: 99ea7fc83cc66a646a7b58d6a752ca7f537a8a710500fe81befa64431b1ef5183d3efe6de207818f445c2ee201f0a3cd6b51fc948c2666ba6224522858ad3440
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
## [**5.4.3**](https://github.com/lob/lob-ruby/releases/tag/v5.4.3) (2021-12-15)
|
|
2
|
+
- [**199**](https://github.com/lob/lob-ruby/pull/199) Refactor ResourceBase to make the options sent to rest-client more configurable
|
|
1
3
|
## [**5.4.1**](https://github.com/lob/lob-ruby/releases/tag/v5.4.1) (2021-09-28)
|
|
2
4
|
- [**193**](https://github.com/lob/lob-ruby/pull/193) Minor patches
|
|
3
5
|
## [**5.4.0**](https://github.com/lob/lob-ruby/releases/tag/v5.4.0) (2021-09-21)
|
|
@@ -71,17 +71,23 @@ module Lob
|
|
|
71
71
|
if query != {}
|
|
72
72
|
url = "#{url}?#{build_nested_query(query)}"
|
|
73
73
|
end
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
74
|
+
|
|
75
|
+
client_params = {
|
|
76
|
+
headers: headers,
|
|
77
|
+
method: method,
|
|
78
|
+
url: url,
|
|
79
|
+
}
|
|
80
|
+
unless method == :delete || method == :get
|
|
81
|
+
if body&[:merge_variables]&.class == Hash
|
|
82
|
+
body[:merge_variables] = body[:merge_variables].to_json
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
+
client_params[:body] = body
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
begin
|
|
89
|
+
response = RestClient::Request.execute(client_params)
|
|
90
|
+
|
|
85
91
|
body = JSON.parse(response)
|
|
86
92
|
|
|
87
93
|
body.define_singleton_method(:_response) do
|
data/lib/lob/version.rb
CHANGED
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
|
+
version: 5.4.3
|
|
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-
|
|
11
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|
|
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
233
233
|
- !ruby/object:Gem::Version
|
|
234
234
|
version: '0'
|
|
235
235
|
requirements: []
|
|
236
|
-
rubygems_version: 3.
|
|
236
|
+
rubygems_version: 3.0.3
|
|
237
237
|
signing_key:
|
|
238
238
|
specification_version: 4
|
|
239
239
|
summary: Ruby wrapper for Lob.com API with ActiveRecord-style syntax
|