recurly 3.4.0 → 3.4.1
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/.bumpversion.cfg +1 -1
- data/CHANGELOG.md +12 -1
- data/lib/recurly/client.rb +1 -1
- data/lib/recurly/http.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a7773f48a4f735c65edee8232a5f87182b0d624ef25814275835c2f4c0061c64
|
|
4
|
+
data.tar.gz: c45ccebad3e7bd510e245b3c5e23a233eebf3e65bd7c715113a6e51e65f1cdf6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56b7d44c97ff4b758c4abe4fe5135f532c27a618dfd6b0365e04c7b589ee238c72e9dc6958c8c2ff7a11919fc67fc2e64c58a34073fe6b632cde70e9cdf86f4a
|
|
7
|
+
data.tar.gz: d4363dfdec86652a7b9f21207334cde68575034167bd91e49342f71175d44314fae090b02038d46a6d613104474010d0ee02806ad770f4084f565831ec136b97
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [3.4.0](https://github.com/recurly/recurly-client-ruby/tree/3.4.0) (2020-03-23)
|
|
4
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.3.1...3.4.0)
|
|
5
|
+
|
|
6
|
+
**Implemented enhancements:**
|
|
7
|
+
|
|
8
|
+
- Replace Faraday gem with Net::HTTP, add connection pooling & keep-alive, update CA roots [\#568](https://github.com/recurly/recurly-client-ruby/pull/568) ([isaachall](https://github.com/isaachall))
|
|
9
|
+
|
|
10
|
+
**Merged pull requests:**
|
|
11
|
+
|
|
12
|
+
- Release 3.4.0 [\#569](https://github.com/recurly/recurly-client-ruby/pull/569) ([bhelx](https://github.com/bhelx))
|
|
13
|
+
|
|
3
14
|
## [3.3.1](https://github.com/recurly/recurly-client-ruby/tree/3.3.1) (2020-03-20)
|
|
4
15
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.3.0...3.3.1)
|
|
5
16
|
|
|
@@ -103,13 +114,13 @@
|
|
|
103
114
|
- Add CONTRIBUTING.md [\#486](https://github.com/recurly/recurly-client-ruby/pull/486) ([bhelx](https://github.com/bhelx))
|
|
104
115
|
- Bump 3.0.0.beta.6 [\#485](https://github.com/recurly/recurly-client-ruby/pull/485) ([bhelx](https://github.com/bhelx))
|
|
105
116
|
- Latest v2018-08-09 Changes [\#484](https://github.com/recurly/recurly-client-ruby/pull/484) ([bhelx](https://github.com/bhelx))
|
|
106
|
-
- 3.0.0.beta.5 [\#483](https://github.com/recurly/recurly-client-ruby/pull/483) ([bhelx](https://github.com/bhelx))
|
|
107
117
|
|
|
108
118
|
## [3.0.0.beta.5](https://github.com/recurly/recurly-client-ruby/tree/3.0.0.beta.5) (2019-06-28)
|
|
109
119
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.0.0.beta.4...3.0.0.beta.5)
|
|
110
120
|
|
|
111
121
|
**Merged pull requests:**
|
|
112
122
|
|
|
123
|
+
- 3.0.0.beta.5 [\#483](https://github.com/recurly/recurly-client-ruby/pull/483) ([bhelx](https://github.com/bhelx))
|
|
113
124
|
- Latest v2018-08-09 Changes [\#482](https://github.com/recurly/recurly-client-ruby/pull/482) ([bhelx](https://github.com/bhelx))
|
|
114
125
|
- no longer need dep scripts [\#476](https://github.com/recurly/recurly-client-ruby/pull/476) ([bhelx](https://github.com/bhelx))
|
|
115
126
|
- Add format script and check in specs [\#474](https://github.com/recurly/recurly-client-ruby/pull/474) ([bhelx](https://github.com/bhelx))
|
data/lib/recurly/client.rb
CHANGED
|
@@ -182,7 +182,7 @@ module Recurly
|
|
|
182
182
|
response = HTTP::Response.new(http_response, request)
|
|
183
183
|
raise_api_error!(http_response, response) unless http_response.kind_of?(Net::HTTPSuccess)
|
|
184
184
|
resource = if response.body
|
|
185
|
-
if http_response.content_type
|
|
185
|
+
if http_response.content_type&.include?(JSON_CONTENT_TYPE)
|
|
186
186
|
JSONParser.parse(self, response.body)
|
|
187
187
|
elsif BINARY_TYPES.include?(http_response.content_type)
|
|
188
188
|
FileParser.parse(response.body)
|
data/lib/recurly/http.rb
CHANGED
|
@@ -7,7 +7,7 @@ module Recurly
|
|
|
7
7
|
:content_type
|
|
8
8
|
|
|
9
9
|
def initialize(resp, request)
|
|
10
|
-
@request = request
|
|
10
|
+
@request = Request.new(request.method, request.path, request.body)
|
|
11
11
|
@status = resp.code.to_i
|
|
12
12
|
@request_id = resp["x-request-id"]
|
|
13
13
|
@rate_limit = resp["x-ratelimit-limit"].to_i
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recurly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.4.
|
|
4
|
+
version: 3.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Recurly
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|