api_client_base 1.7.0 → 1.8.0
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/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/lib/api_client_base/services/build_typhoeus_options.rb +3 -16
- data/lib/api_client_base/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6220f14a790ce1548a85cd97a5f870cd0e6e05c0c14c3a815c97499b4dc5a88b
|
4
|
+
data.tar.gz: 2d1e16d307a3fd1859e35cde544833db19279fccc03968f4c929fa7f2d704e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ac762090b5b39591e73181a804ac9932fae90e3f26213e6ba08bd4a3916b4e5a7e4a5ec786ee4b1536fddfc2ad873e98ba69941aea855ddb33e2b17a3c0f6bf
|
7
|
+
data.tar.gz: 4ef26be532375b6714c4d426755888b5371f2d08727f0c89690a189d5fcca83ba369f13ca6b87b4226c150b3517463d2ca2fd4222d35d56e22917913465e6df6
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
6
6
|
|
7
|
+
## [Unreleased]
|
8
|
+
### Added
|
9
|
+
- Allow all Typhoeus options to be passed to BuildTyphoeusOptions. This is useful when overriding the method `typhoeus_options` in requests
|
10
|
+
|
7
11
|
## [1.7.0] - 2020-04-15
|
8
12
|
### Added
|
9
13
|
- Add `Response#body` which is `raw_response`'s `body`
|
data/Gemfile
CHANGED
@@ -1,22 +1,9 @@
|
|
1
1
|
module APIClientBase
|
2
2
|
class BuildTyphoeusOptions
|
3
3
|
|
4
|
-
def self.call(
|
5
|
-
|
6
|
-
|
7
|
-
body: nil,
|
8
|
-
params: nil,
|
9
|
-
proxy: nil
|
10
|
-
)
|
11
|
-
opts = {
|
12
|
-
method: method,
|
13
|
-
headers: headers,
|
14
|
-
body: body,
|
15
|
-
params: params,
|
16
|
-
}
|
17
|
-
|
18
|
-
if proxy.present?
|
19
|
-
opts[:proxy] = proxy
|
4
|
+
def self.call(opts={})
|
5
|
+
if opts[:proxy].blank?
|
6
|
+
opts = opts.except(:proxy)
|
20
7
|
end
|
21
8
|
|
22
9
|
opts
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api_client_base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ramon Tayag
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -185,7 +185,7 @@ licenses:
|
|
185
185
|
- MIT
|
186
186
|
metadata:
|
187
187
|
allowed_push_host: https://rubygems.org
|
188
|
-
post_install_message:
|
188
|
+
post_install_message:
|
189
189
|
rdoc_options: []
|
190
190
|
require_paths:
|
191
191
|
- lib
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
requirements: []
|
203
203
|
rubygems_version: 3.0.8
|
204
|
-
signing_key:
|
204
|
+
signing_key:
|
205
205
|
specification_version: 4
|
206
206
|
summary: Abstractions to help author API wrappers in Ruby.
|
207
207
|
test_files: []
|