Skip to content

Commit

Permalink
Bump vendored net-http to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Dec 13, 2024
1 parent cd460d5 commit 57f222c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 44 deletions.
9 changes: 6 additions & 3 deletions lib/rubygems/vendor/net-http/lib/net/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ class HTTPHeaderSyntaxError < StandardError; end
class HTTP < Protocol

# :stopdoc:
VERSION = "0.5.0"
VERSION = "0.6.0"
HTTPVersion = '1.1'
begin
require 'zlib'
Expand Down Expand Up @@ -2559,6 +2559,11 @@ def debug(msg)
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'
Expand All @@ -2573,5 +2578,3 @@ def debug(msg)
require_relative 'http/responses'

require_relative 'http/proxy_delta'

require_relative 'http/backward'
40 changes: 0 additions & 40 deletions lib/rubygems/vendor/net-http/lib/net/http/backward.rb

This file was deleted.

2 changes: 1 addition & 1 deletion tool/bundler/vendor_gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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"
Expand Down

0 comments on commit 57f222c

Please sign in to comment.