http_utilities 1.3.8 → 1.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/http_utilities.gemspec +1 -1
- data/lib/http_utilities.rb +1 -1
- data/lib/http_utilities/http/client.rb +4 -4
- 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: d3950c37c0d9ee3f4904ee15ea56ae68f0c4c2cf6c3c02d0bd11930b07bc595a
|
4
|
+
data.tar.gz: ddf84f8c12eca16854200b7306c9911b0b35db8a56c624246df57db5ea3d0cb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95fef597f8335070798abb4a19720d3175dff9b2650b779abf3bc24baeb266b2336c2ed237dd25e34fce8af61a0dae74df2daef2efa59d7d8f208a0734d7ace3
|
7
|
+
data.tar.gz: 806593095a5895076cacc313f2e62eb6e9cf3a322b0328e33b4fee0c4d40666de4d2e84a435345c5412bc90f61e8df6733e6830fad21c59df361e91bcacd33f6
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.9
|
data/http_utilities.gemspec
CHANGED
@@ -3,7 +3,7 @@ Gem::Specification.new do |s|
|
|
3
3
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5") if s.respond_to? :required_rubygems_version=
|
4
4
|
|
5
5
|
s.name = "http_utilities"
|
6
|
-
s.version = "1.3.
|
6
|
+
s.version = "1.3.9"
|
7
7
|
|
8
8
|
s.authors = ["Sebastian Johnsson"]
|
9
9
|
s.description = "Wrapper for Faraday with additional functionality"
|
data/lib/http_utilities.rb
CHANGED
@@ -9,11 +9,11 @@ module HttpUtilities
|
|
9
9
|
Faraday::Error
|
10
10
|
]
|
11
11
|
|
12
|
-
def get(url, arguments: {}, options: {}, raise_exceptions: false, retries: 3)
|
12
|
+
def get(url, arguments: {}, options: {}, client_options: {}, raise_exceptions: false, retries: 3)
|
13
13
|
response = nil
|
14
14
|
|
15
15
|
begin
|
16
|
-
request = build_request(options: options)
|
16
|
+
request = build_request(options: options, client_options: client_options)
|
17
17
|
response = request.interface.get(url, arguments)
|
18
18
|
response = HttpUtilities::Http::Response.new(response: response, request: request, options: options)
|
19
19
|
|
@@ -27,11 +27,11 @@ module HttpUtilities
|
|
27
27
|
return response
|
28
28
|
end
|
29
29
|
|
30
|
-
def post(url, data: nil, options: {}, raise_exceptions: false, retries: 3)
|
30
|
+
def post(url, data: nil, options: {}, client_options: {}, raise_exceptions: false, retries: 3)
|
31
31
|
response = nil
|
32
32
|
|
33
33
|
begin
|
34
|
-
request = build_request(options: options)
|
34
|
+
request = build_request(options: options, client_options: client_options)
|
35
35
|
response = request.interface.post(url, data)
|
36
36
|
response = HttpUtilities::Http::Response.new(response: response, request: request, options: options)
|
37
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: http_utilities
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Johnsson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|