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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3f8720f9cc4a7e78d381e5d5daf8f09ba26337a10d774d79f5999ada7f0c6f3
4
- data.tar.gz: 51720f6e8feceded8672331f3cd353869c9c82f1e5e1cab91a9c94ccc428f35f
3
+ metadata.gz: 6220f14a790ce1548a85cd97a5f870cd0e6e05c0c14c3a815c97499b4dc5a88b
4
+ data.tar.gz: 2d1e16d307a3fd1859e35cde544833db19279fccc03968f4c929fa7f2d704e01
5
5
  SHA512:
6
- metadata.gz: dfe2012281611438c8fd924a8777e6262d9259842fe49920c9dacde9d544e9278bc22b27bd8bc01bb6462cf7bd1eee3c3d862bd5bba6763d0570407160a53b41
7
- data.tar.gz: ff934bd6e815e670530926337c83e764ab9f27631f2a4df3b07222c1bf65f05516a51aaf603ab6b0bfa52849f06ea0b1f37c20d353bb138712652ac4c68c6549
6
+ metadata.gz: 4ac762090b5b39591e73181a804ac9932fae90e3f26213e6ba08bd4a3916b4e5a7e4a5ec786ee4b1536fddfc2ad873e98ba69941aea855ddb33e2b17a3c0f6bf
7
+ data.tar.gz: 4ef26be532375b6714c4d426755888b5371f2d08727f0c89690a189d5fcca83ba369f13ca6b87b4226c150b3517463d2ca2fd4222d35d56e22917913465e6df6
@@ -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
@@ -3,7 +3,7 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in api_client_base.gemspec
4
4
  gemspec
5
5
 
6
- ruby "2.6.3"
6
+ ruby "2.6.5"
7
7
 
8
8
  gem "pry-byebug", "~> 3.9"
9
9
  gem "typhoeus"
@@ -1,22 +1,9 @@
1
1
  module APIClientBase
2
2
  class BuildTyphoeusOptions
3
3
 
4
- def self.call(
5
- method: nil,
6
- headers: nil,
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
@@ -1,3 +1,3 @@
1
1
  module APIClientBase
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
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.7.0
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-04-15 00:00:00.000000000 Z
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: []