Move net-http under the vendor directory

This commit is contained in:
Hiroshi SHIBATA 2024-01-29 15:49:23 +09:00
parent 6933aee9eb
commit 04dbdc81d1
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2
14 changed files with 21 additions and 21 deletions

View File

@ -1,3 +1,3 @@
# frozen_string_literal: true # frozen_string_literal: true
require_relative "../net-http/lib/net/http" require_relative "../vendor/net-http/lib/net/http"

View File

@ -20,9 +20,9 @@
# See Gem::Net::HTTP for an overview and examples. # See Gem::Net::HTTP for an overview and examples.
# #
require_relative '../../../vendor/net-protocol/lib/net/protocol' require_relative '../../../net-protocol/lib/net/protocol'
require_relative '../../../vendor/uri/lib/uri' require_relative '../../../uri/lib/uri'
require_relative '../../../vendor/resolv/lib/resolv' require_relative '../../../resolv/lib/resolv'
autoload :OpenSSL, 'openssl' autoload :OpenSSL, 'openssl'
module Gem::Net #:nodoc: module Gem::Net #:nodoc:

View File

@ -8,7 +8,7 @@
# #
# An request object may be created with either a Gem::URI or a string hostname: # An request object may be created with either a Gem::URI or a string hostname:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('https://jsonplaceholder.typicode.com/') # uri = Gem::URI('https://jsonplaceholder.typicode.com/')
# req = Gem::Net::HTTP::Get.new(uri) # => #<Gem::Net::HTTP::Get GET> # req = Gem::Net::HTTP::Get.new(uri) # => #<Gem::Net::HTTP::Get GET>
# req = Gem::Net::HTTP::Get.new(uri.hostname) # => #<Gem::Net::HTTP::Get GET> # req = Gem::Net::HTTP::Get.new(uri.hostname) # => #<Gem::Net::HTTP::Get GET>

View File

@ -5,7 +5,7 @@
# \Class for representing # \Class for representing
# {HTTP method GET}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#GET_method]: # {HTTP method GET}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#GET_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Get.new(uri) # => #<Gem::Net::HTTP::Get GET> # req = Gem::Net::HTTP::Get.new(uri) # => #<Gem::Net::HTTP::Get GET>
@ -37,7 +37,7 @@ end
# \Class for representing # \Class for representing
# {HTTP method HEAD}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#HEAD_method]: # {HTTP method HEAD}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#HEAD_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Head.new(uri) # => #<Gem::Net::HTTP::Head HEAD> # req = Gem::Net::HTTP::Head.new(uri) # => #<Gem::Net::HTTP::Head HEAD>
@ -68,7 +68,7 @@ end
# \Class for representing # \Class for representing
# {HTTP method POST}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#POST_method]: # {HTTP method POST}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#POST_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# uri.path = '/posts' # uri.path = '/posts'
@ -103,7 +103,7 @@ end
# \Class for representing # \Class for representing
# {HTTP method PUT}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#PUT_method]: # {HTTP method PUT}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#PUT_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# uri.path = '/posts' # uri.path = '/posts'
@ -133,7 +133,7 @@ end
# \Class for representing # \Class for representing
# {HTTP method DELETE}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#DELETE_method]: # {HTTP method DELETE}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#DELETE_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# uri.path = '/posts/1' # uri.path = '/posts/1'
@ -165,7 +165,7 @@ end
# \Class for representing # \Class for representing
# {HTTP method OPTIONS}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#OPTIONS_method]: # {HTTP method OPTIONS}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#OPTIONS_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Options.new(uri) # => #<Gem::Net::HTTP::Options OPTIONS> # req = Gem::Net::HTTP::Options.new(uri) # => #<Gem::Net::HTTP::Options OPTIONS>
@ -196,7 +196,7 @@ end
# \Class for representing # \Class for representing
# {HTTP method TRACE}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#TRACE_method]: # {HTTP method TRACE}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#TRACE_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Trace.new(uri) # => #<Gem::Net::HTTP::Trace TRACE> # req = Gem::Net::HTTP::Trace.new(uri) # => #<Gem::Net::HTTP::Trace TRACE>
@ -227,7 +227,7 @@ end
# \Class for representing # \Class for representing
# {HTTP method PATCH}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#PATCH_method]: # {HTTP method PATCH}[https://en.wikipedia.org/w/index.php?title=Hypertext_Transfer_Protocol#PATCH_method]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# uri.path = '/posts' # uri.path = '/posts'
@ -265,7 +265,7 @@ end
# \Class for representing # \Class for representing
# {WebDAV method PROPFIND}[http://www.webdav.org/specs/rfc4918.html#METHOD_PROPFIND]: # {WebDAV method PROPFIND}[http://www.webdav.org/specs/rfc4918.html#METHOD_PROPFIND]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Propfind.new(uri) # => #<Gem::Net::HTTP::Propfind PROPFIND> # req = Gem::Net::HTTP::Propfind.new(uri) # => #<Gem::Net::HTTP::Propfind PROPFIND>
@ -288,7 +288,7 @@ end
# \Class for representing # \Class for representing
# {WebDAV method PROPPATCH}[http://www.webdav.org/specs/rfc4918.html#METHOD_PROPPATCH]: # {WebDAV method PROPPATCH}[http://www.webdav.org/specs/rfc4918.html#METHOD_PROPPATCH]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Proppatch.new(uri) # => #<Gem::Net::HTTP::Proppatch PROPPATCH> # req = Gem::Net::HTTP::Proppatch.new(uri) # => #<Gem::Net::HTTP::Proppatch PROPPATCH>
@ -311,7 +311,7 @@ end
# \Class for representing # \Class for representing
# {WebDAV method MKCOL}[http://www.webdav.org/specs/rfc4918.html#METHOD_MKCOL]: # {WebDAV method MKCOL}[http://www.webdav.org/specs/rfc4918.html#METHOD_MKCOL]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Mkcol.new(uri) # => #<Gem::Net::HTTP::Mkcol MKCOL> # req = Gem::Net::HTTP::Mkcol.new(uri) # => #<Gem::Net::HTTP::Mkcol MKCOL>
@ -334,7 +334,7 @@ end
# \Class for representing # \Class for representing
# {WebDAV method COPY}[http://www.webdav.org/specs/rfc4918.html#METHOD_COPY]: # {WebDAV method COPY}[http://www.webdav.org/specs/rfc4918.html#METHOD_COPY]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Copy.new(uri) # => #<Gem::Net::HTTP::Copy COPY> # req = Gem::Net::HTTP::Copy.new(uri) # => #<Gem::Net::HTTP::Copy COPY>
@ -357,7 +357,7 @@ end
# \Class for representing # \Class for representing
# {WebDAV method MOVE}[http://www.webdav.org/specs/rfc4918.html#METHOD_MOVE]: # {WebDAV method MOVE}[http://www.webdav.org/specs/rfc4918.html#METHOD_MOVE]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Move.new(uri) # => #<Gem::Net::HTTP::Move MOVE> # req = Gem::Net::HTTP::Move.new(uri) # => #<Gem::Net::HTTP::Move MOVE>
@ -380,7 +380,7 @@ end
# \Class for representing # \Class for representing
# {WebDAV method LOCK}[http://www.webdav.org/specs/rfc4918.html#METHOD_LOCK]: # {WebDAV method LOCK}[http://www.webdav.org/specs/rfc4918.html#METHOD_LOCK]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Lock.new(uri) # => #<Gem::Net::HTTP::Lock LOCK> # req = Gem::Net::HTTP::Lock.new(uri) # => #<Gem::Net::HTTP::Lock LOCK>
@ -403,7 +403,7 @@ end
# \Class for representing # \Class for representing
# {WebDAV method UNLOCK}[http://www.webdav.org/specs/rfc4918.html#METHOD_UNLOCK]: # {WebDAV method UNLOCK}[http://www.webdav.org/specs/rfc4918.html#METHOD_UNLOCK]:
# #
# require 'rubygems/net-http/lib/net/http' # require 'rubygems/vendor/net-http/lib/net/http'
# uri = Gem::URI('http://example.com') # uri = Gem::URI('http://example.com')
# hostname = uri.hostname # => "example.com" # hostname = uri.hostname # => "example.com"
# req = Gem::Net::HTTP::Unlock.new(uri) # => #<Gem::Net::HTTP::Unlock UNLOCK> # req = Gem::Net::HTTP::Unlock.new(uri) # => #<Gem::Net::HTTP::Unlock UNLOCK>

View File

@ -4,7 +4,7 @@
= net/https -- SSL/TLS enhancement for Gem::Net::HTTP. = net/https -- SSL/TLS enhancement for Gem::Net::HTTP.
This file has been merged with net/http. There is no longer any need to This file has been merged with net/http. There is no longer any need to
require 'rubygems/net-http/lib/net/https' to use HTTPS. require 'rubygems/vendor/net-http/lib/net/https' to use HTTPS.
See Gem::Net::HTTP for details on how to make HTTPS connections. See Gem::Net::HTTP for details on how to make HTTPS connections.