http_utilities 1.3.1 → 1.3.2
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/VERSION +1 -1
- data/http_utilities.gemspec +1 -1
- data/lib/http_utilities/http/client.rb +3 -3
- data/lib/http_utilities.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: decfb9fe1f727937094df0974e3629ad5ca1f5f244e10d5a8e23044e189a266a
|
|
4
|
+
data.tar.gz: edaa2d78def545bd34fd3bce759b645da7ee778a84aa3fe51a6165a5fe3a0d3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13a753076e2eba04b84cdbf5b75f939740fea97dd9e39f33d4fe49308fb2bc107d26f5af707c7e77150df432348bf10038a1d5d6d204c8b66a7c064c078f788d
|
|
7
|
+
data.tar.gz: c6f2e4ad1e670c8df318356cec55ad535984acb6c26c7ed425449a58c70acdf592fa4b4a8efa24469ed27b683e425a0ce191ee93d4d3e1a9b4fd20401c751a76
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.3.
|
|
1
|
+
1.3.2
|
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.2"
|
|
7
7
|
|
|
8
8
|
s.authors = ["Sebastian Johnsson"]
|
|
9
9
|
s.description = "Wrapper for Faraday with additional functionality"
|
|
@@ -56,7 +56,8 @@ module HttpUtilities
|
|
|
56
56
|
request.set_proxy_options(options)
|
|
57
57
|
|
|
58
58
|
proxy_options = request.generate_proxy_options
|
|
59
|
-
|
|
59
|
+
client_options = client_options.merge(proxy: proxy_options) unless proxy_options.empty?
|
|
60
|
+
|
|
60
61
|
connection = Faraday.new(client_options) do |builder|
|
|
61
62
|
builder.headers[:user_agent] = request.user_agent
|
|
62
63
|
|
|
@@ -73,7 +74,7 @@ module HttpUtilities
|
|
|
73
74
|
builder.send(:response, response_adapter)
|
|
74
75
|
end if response_adapters && response_adapters.any?
|
|
75
76
|
|
|
76
|
-
builder.proxy proxy_options unless proxy_options.empty?
|
|
77
|
+
#builder.proxy proxy_options unless proxy_options.empty?
|
|
77
78
|
|
|
78
79
|
builder.adapter adapter
|
|
79
80
|
end
|
|
@@ -86,4 +87,3 @@ module HttpUtilities
|
|
|
86
87
|
end
|
|
87
88
|
end
|
|
88
89
|
end
|
|
89
|
-
|
data/lib/http_utilities.rb
CHANGED