faraday-net_http 1.0.2 → 2.0.0.alpha.pre.1

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: b80c4fb24e6f237468c024b5d2d5ecbab468f80e53ae032228a349f81f5e094d
4
- data.tar.gz: 2cc09bb8eb7b2cd5d8f4dddb97f081f9e967359772f84ab9cc958403d483fc74
3
+ metadata.gz: f906e027c9d891ccc21f9a1b750e1cb917d56315d8661d7a1a4278eb18ff1084
4
+ data.tar.gz: 4cd64aad7008c122cbcaae48bfcb4b61c6387557552c5a5405981cd0b70389be
5
5
  SHA512:
6
- metadata.gz: 73ea02cabd6dbccedecb3c7af36d73ada5e460b7c3ba0c35a0f6d45eca1836c6178f6c1ff10cf8d1976e63a65062e3f32c515492d7ae6596784881cffb2c1ada
7
- data.tar.gz: da75d771c889289e34f32868bab49aef2ad0fef06c8d4a96866a73d25dc06583c9c6928eb2dbf71e8b1ced0bcb3de047540a6c37ac6e439e7d8d0287692a0fca
6
+ metadata.gz: '0793967f3175c622bc15b797124a857f6ddc56eb8284e37dae9fe8bb643061bc160793a1f925e2654b309e87fd8badae5a557bcf2a1260a4fa4c1ed0c9f50367'
7
+ data.tar.gz: 8d44d2ca498d7f0f1cd3903b56f673f8c8d13648871c5b298d0cfca8ab99d191fbb2dbb904803450b48724c4c77a533791e835247f8cca8c880a4b0f903d4a40
@@ -41,7 +41,8 @@ module Faraday
41
41
 
42
42
  def build_connection(env)
43
43
  net_http_connection(env).tap do |http|
44
- configure_ssl(http, env[:ssl]) if env[:url].scheme == 'https' && env[:ssl]
44
+ http.use_ssl = env[:url].scheme == 'https' if http.respond_to?(:use_ssl=)
45
+ configure_ssl(http, env[:ssl])
45
46
  configure_request(http, env[:request])
46
47
  end
47
48
  end
@@ -154,7 +155,7 @@ module Faraday
154
155
  end
155
156
 
156
157
  def configure_ssl(http, ssl)
157
- http.use_ssl = true if http.respond_to?(:use_ssl=)
158
+ return unless ssl
158
159
 
159
160
  http.verify_mode = ssl_verify_mode(ssl)
160
161
  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.2'
5
+ VERSION = '2.0.0.alpha-1'
6
6
  end
7
7
  end
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'adapter/net_http'
4
- require_relative 'net_http/version'
3
+ require 'faraday'
4
+ require 'faraday/adapter/net_http'
5
+ require 'faraday/net_http/version'
5
6
 
6
7
  module Faraday
7
8
  module NetHttp
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.2
4
+ version: 2.0.0.alpha.pre.1
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: 2024-07-24 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :development
19
+ version: 2.0.0.alpha.pre.2
20
+ type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: 2.0.0.alpha.pre.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -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
@@ -180,12 +180,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  version: 2.4.0
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - ">="
183
+ - - ">"
184
184
  - !ruby/object:Gem::Version
185
- version: '0'
185
+ version: 1.3.1
186
186
  requirements: []
187
- rubygems_version: 3.5.16
188
- signing_key:
187
+ rubygems_version: 3.1.6
188
+ signing_key:
189
189
  specification_version: 4
190
190
  summary: Faraday adapter for Net::HTTP
191
191
  test_files: []