faraday-net_http 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6e5d7596613c3f2bcfde1d254ab83f9a01e23b8180d852bb08c4311a183f92f
4
- data.tar.gz: e4fa72a0f4b435d2d4d7a8594c235593c5d4797bbb33e27c47fd9c58d3e3b095
3
+ metadata.gz: b80c4fb24e6f237468c024b5d2d5ecbab468f80e53ae032228a349f81f5e094d
4
+ data.tar.gz: 2cc09bb8eb7b2cd5d8f4dddb97f081f9e967359772f84ab9cc958403d483fc74
5
5
  SHA512:
6
- metadata.gz: 0de17541184794c11df1c0cd37c220a1b36dbfcfc7fdfec88dcd860f354dd7916b146c8a0b18e3bc4ae770bd4ca78e3d5ff1ef623d30c2e2e2af68c118c3d496
7
- data.tar.gz: 7403a56c1f396f290f76302d1ea665c371fab0c298bd4324ff779dc55567b10953bbf9a9c5872fbe51a15b3f7cd9fc9095447bf20d2f1b9068ef4ec5baefcf6e
6
+ metadata.gz: 73ea02cabd6dbccedecb3c7af36d73ada5e460b7c3ba0c35a0f6d45eca1836c6178f6c1ff10cf8d1976e63a65062e3f32c515492d7ae6596784881cffb2c1ada
7
+ data.tar.gz: da75d771c889289e34f32868bab49aef2ad0fef06c8d4a96866a73d25dc06583c9c6928eb2dbf71e8b1ced0bcb3de047540a6c37ac6e439e7d8d0287692a0fca
@@ -41,8 +41,7 @@ module Faraday
41
41
 
42
42
  def build_connection(env)
43
43
  net_http_connection(env).tap do |http|
44
- http.use_ssl = env[:url].scheme == 'https' if http.respond_to?(:use_ssl=)
45
- configure_ssl(http, env[:ssl])
44
+ configure_ssl(http, env[:ssl]) if env[:url].scheme == 'https' && env[:ssl]
46
45
  configure_request(http, env[:request])
47
46
  end
48
47
  end
@@ -155,7 +154,7 @@ module Faraday
155
154
  end
156
155
 
157
156
  def configure_ssl(http, ssl)
158
- return unless ssl
157
+ http.use_ssl = true if http.respond_to?(:use_ssl=)
159
158
 
160
159
  http.verify_mode = ssl_verify_mode(ssl)
161
160
  http.cert_store = ssl_cert_store(ssl)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Faraday
4
4
  module NetHttp
5
- VERSION = '1.0.0'
5
+ VERSION = '1.0.2'
6
6
  end
7
7
  end
@@ -1,8 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'faraday'
4
- require 'faraday/adapter'
5
-
6
3
  require_relative 'adapter/net_http'
7
4
  require_relative 'net_http/version'
8
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday-net_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan van der Pas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-29 00:00:00.000000000 Z
11
+ date: 2024-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -169,7 +169,7 @@ metadata:
169
169
  homepage_uri: https://github.com/lostisland/faraday-net_http
170
170
  source_code_uri: https://github.com/lostisland/faraday-net_http
171
171
  changelog_uri: https://github.com/lostisland/faraday-net_http
172
- post_install_message:
172
+ post_install_message:
173
173
  rdoc_options: []
174
174
  require_paths:
175
175
  - lib
@@ -184,8 +184,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0'
186
186
  requirements: []
187
- rubygems_version: 3.1.4
188
- signing_key:
187
+ rubygems_version: 3.5.16
188
+ signing_key:
189
189
  specification_version: 4
190
190
  summary: Faraday adapter for Net::HTTP
191
191
  test_files: []