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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 468d8effd999ca14d6b8ce812fc6837953f1930ea294d192e05fc9e1d7a4fe6f
4
- data.tar.gz: ab6ac207521409c5be9abacda2ebf2470e7f7198085d55af821742766f0f3b89
3
+ metadata.gz: decfb9fe1f727937094df0974e3629ad5ca1f5f244e10d5a8e23044e189a266a
4
+ data.tar.gz: edaa2d78def545bd34fd3bce759b645da7ee778a84aa3fe51a6165a5fe3a0d3f
5
5
  SHA512:
6
- metadata.gz: 675b69260d08860423c19bc89d447c890fa1fe557d828d71be5ae4bbd2cf7fde16d0332c972dd3013fc0231e4e1f68963a46b80e68f628da524c0dbaeb19c79e
7
- data.tar.gz: f80911bc06f2131dbba5de014716be44359012c682aeca0bce5e373cd78605d27ea0358d0d72afc245e0a66a93cd9233964bad71b4599db8069842e7599c6e12
6
+ metadata.gz: 13a753076e2eba04b84cdbf5b75f939740fea97dd9e39f33d4fe49308fb2bc107d26f5af707c7e77150df432348bf10038a1d5d6d204c8b66a7c064c078f788d
7
+ data.tar.gz: c6f2e4ad1e670c8df318356cec55ad535984acb6c26c7ed425449a58c70acdf592fa4b4a8efa24469ed27b683e425a0ce191ee93d4d3e1a9b4fd20401c751a76
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.1
1
+ 1.3.2
@@ -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.1"
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
-
@@ -5,7 +5,7 @@ require "faraday_middleware"
5
5
  require "mechanize"
6
6
 
7
7
  module HttpUtilities
8
- VERSION = "1.3.1"
8
+ VERSION = "1.3.2"
9
9
 
10
10
  require File.join(File.dirname(__FILE__), 'http_utilities/railtie') if defined?(Rails)
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_utilities
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Johnsson