Bump vendored net-http to 0.6.0
This commit is contained in:
parent
cd460d5d8d
commit
57f222c182
9
lib/rubygems/vendor/net-http/lib/net/http.rb
vendored
9
lib/rubygems/vendor/net-http/lib/net/http.rb
vendored
@ -730,7 +730,7 @@ module Gem::Net #:nodoc:
|
||||
class HTTP < Protocol
|
||||
|
||||
# :stopdoc:
|
||||
VERSION = "0.5.0"
|
||||
VERSION = "0.6.0"
|
||||
HTTPVersion = '1.1'
|
||||
begin
|
||||
require 'zlib'
|
||||
@ -2559,6 +2559,11 @@ module Gem::Net #:nodoc:
|
||||
alias_method :D, :debug
|
||||
end
|
||||
|
||||
# for backward compatibility until Ruby 3.5
|
||||
# https://bugs.ruby-lang.org/issues/20900
|
||||
# https://github.com/bblimke/webmock/pull/1081
|
||||
HTTPSession = HTTP
|
||||
deprecate_constant :HTTPSession
|
||||
end
|
||||
|
||||
require_relative 'http/exceptions'
|
||||
@ -2573,5 +2578,3 @@ require_relative 'http/response'
|
||||
require_relative 'http/responses'
|
||||
|
||||
require_relative 'http/proxy_delta'
|
||||
|
||||
require_relative 'http/backward'
|
||||
|
@ -1,40 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
# for backward compatibility
|
||||
|
||||
# :enddoc:
|
||||
|
||||
class Gem::Net::HTTP
|
||||
ProxyMod = ProxyDelta
|
||||
deprecate_constant :ProxyMod
|
||||
end
|
||||
|
||||
module Gem::Net::NetPrivate
|
||||
HTTPRequest = ::Gem::Net::HTTPRequest
|
||||
deprecate_constant :HTTPRequest
|
||||
end
|
||||
|
||||
module Gem::Net
|
||||
HTTPSession = HTTP
|
||||
|
||||
HTTPInformationCode = HTTPInformation
|
||||
HTTPSuccessCode = HTTPSuccess
|
||||
HTTPRedirectionCode = HTTPRedirection
|
||||
HTTPRetriableCode = HTTPRedirection
|
||||
HTTPClientErrorCode = HTTPClientError
|
||||
HTTPFatalErrorCode = HTTPClientError
|
||||
HTTPServerErrorCode = HTTPServerError
|
||||
HTTPResponseReceiver = HTTPResponse
|
||||
|
||||
HTTPResponceReceiver = HTTPResponse # Typo since 2001
|
||||
|
||||
deprecate_constant :HTTPSession,
|
||||
:HTTPInformationCode,
|
||||
:HTTPSuccessCode,
|
||||
:HTTPRedirectionCode,
|
||||
:HTTPRetriableCode,
|
||||
:HTTPClientErrorCode,
|
||||
:HTTPFatalErrorCode,
|
||||
:HTTPServerErrorCode,
|
||||
:HTTPResponseReceiver,
|
||||
:HTTPResponceReceiver
|
||||
end
|
@ -4,7 +4,7 @@ source "https://rubygems.org"
|
||||
|
||||
gem "fileutils", "1.7.3"
|
||||
gem "molinillo", github: "cocoapods/molinillo"
|
||||
gem "net-http", "0.5.0"
|
||||
gem "net-http", "0.6.0"
|
||||
gem "net-http-persistent", "4.0.4"
|
||||
gem "net-protocol", "0.2.2"
|
||||
gem "optparse", "0.6.0"
|
||||
|
Loading…
x
Reference in New Issue
Block a user