1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Moving rubygems/request dependencies into ec2_metadata

https://github.com/rubygems/rubygems/commit/6a1856517f
This commit is contained in:
Alexander Pakulov 2019-07-04 17:16:25 -07:00 committed by Hiroshi SHIBATA
parent 4a8c2dd419
commit aa9015dd84
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -1,8 +1,6 @@
require 'base64'
require 'digest'
require 'openssl'
require 'rubygems/request'
require 'rubygems/request/connection_pools'
##
# S3URISigner implements AWS SigV4 for S3 Source to avoid a dependency on the aws-sdk-* gems
@ -139,6 +137,8 @@ class Gem::S3URISigner
def ec2_metadata
require 'net/http'
require 'rubygems/request'
require 'rubygems/request/connection_pools'
metadata_uri = URI(EC2_METADATA_CREDENTIALS)