@@ -189,12 +189,13 @@ if File.exist?("tool/automatiek.rake")
189189
190190 # We currently include the following changes over the official version:
191191 # * Avoid requiring the optional `net-http-pipeline` dependency, so that its version can be selected by end users.
192+ # * Require vendored net/http version RubyGems if available, otherwise the stdlib version.
192193 desc "Vendor a specific version of net-http-persistent to bundler"
193194 Automatiek ::RakeTask . new ( "net-http-persistent" ) do |lib |
194195 lib . version = "v4.0.2"
195196 lib . download = { github : "https://github.com/drbrain/net-http-persistent" }
196197 lib . namespace = "Net::HTTP::Persistent"
197- lib . prefix = "Bundler::Persistent "
198+ lib . prefix = "Gem "
198199 lib . vendor_lib = "bundler/lib/bundler/vendor/net-http-persistent"
199200 lib . license_path = "README.rdoc"
200201
@@ -205,6 +206,15 @@ if File.exist?("tool/automatiek.rake")
205206 sublib . prefix = "Bundler"
206207 sublib . vendor_lib = "bundler/lib/bundler/vendor/connection_pool"
207208 sublib . license_path = "LICENSE"
209+
210+ sublib . dependency ( "timeout" ) do |subsublib |
211+ subsublib . version = "v0.4.1"
212+ subsublib . download = { github : "https://github.com/ruby/timeout" }
213+ subsublib . namespace = "Timeout"
214+ subsublib . prefix = "Gem"
215+ subsublib . vendor_lib = "lib/rubygems/timeout"
216+ subsublib . license_path = "License.txt"
217+ end
208218 end
209219
210220 lib . dependency ( "uri" ) do |sublib |
@@ -215,6 +225,60 @@ if File.exist?("tool/automatiek.rake")
215225 sublib . vendor_lib = "bundler/lib/bundler/vendor/uri"
216226 sublib . license_path = "LICENSE.txt"
217227 end
228+
229+ lib . dependency ( "net-http" ) do |sublib |
230+ sublib . version = "v0.4.0"
231+ sublib . download = { github : "https://github.com/ruby/net-http" }
232+ sublib . namespace = "Net"
233+ sublib . prefix = "Gem"
234+ sublib . vendor_lib = "lib/rubygems/net-http"
235+ sublib . license_path = "LICENSE.txt"
236+
237+ sublib . dependency ( "net-protocol" ) do |subsublib |
238+ subsublib . version = "v0.2.2"
239+ subsublib . download = { github : "https://github.com/ruby/net-protocol" }
240+ subsublib . namespace = "Net"
241+ subsublib . prefix = "Gem"
242+ subsublib . vendor_lib = "lib/rubygems/net-protocol"
243+ subsublib . license_path = "License.txt"
244+
245+ subsublib . dependency ( "timeout" ) do |ssslib |
246+ ssslib . version = "v0.4.1"
247+ ssslib . download = { github : "https://github.com/ruby/timeout" }
248+ ssslib . namespace = "Timeout"
249+ ssslib . prefix = "Gem"
250+ ssslib . vendor_lib = "lib/rubygems/timeout"
251+ ssslib . license_path = "License.txt"
252+ end
253+ end
254+
255+ sublib . dependency ( "timeout" ) do |subsublib |
256+ subsublib . version = "v0.4.1"
257+ subsublib . download = { github : "https://github.com/ruby/timeout" }
258+ subsublib . namespace = "Timeout"
259+ subsublib . prefix = "Gem"
260+ subsublib . vendor_lib = "lib/rubygems/timeout"
261+ subsublib . license_path = "License.txt"
262+ end
263+
264+ sublib . dependency ( "resolv" ) do |subsublib |
265+ subsublib . version = "v0.2.2"
266+ subsublib . download = { github : "https://github.com/ruby/resolv" }
267+ subsublib . namespace = "Resolv"
268+ subsublib . prefix = "Gem"
269+ subsublib . vendor_lib = "lib/rubygems/resolv"
270+ subsublib . license_path = "License.txt"
271+
272+ subsublib . dependency ( "timeout" ) do |ssslib |
273+ ssslib . version = "v0.4.1"
274+ ssslib . download = { github : "https://github.com/ruby/timeout" }
275+ ssslib . namespace = "Timeout"
276+ ssslib . prefix = "Gem"
277+ ssslib . vendor_lib = "lib/rubygems/timeout"
278+ ssslib . license_path = "License.txt"
279+ end
280+ end
281+ end
218282 end
219283end
220284
0 commit comments