diff options
Diffstat (limited to 'lib/rubygems/s3_uri_signer.rb')
-rw-r--r-- | lib/rubygems/s3_uri_signer.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rubygems/s3_uri_signer.rb b/lib/rubygems/s3_uri_signer.rb index 534b8676a0..1ea9ff06a4 100644 --- a/lib/rubygems/s3_uri_signer.rb +++ b/lib/rubygems/s3_uri_signer.rb @@ -6,9 +6,7 @@ require 'openssl' # S3URISigner implements AWS SigV4 for S3 Source to avoid a dependency on the aws-sdk-* gems # More on AWS SigV4: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html class Gem::S3URISigner - class ConfigurationError < Gem::Exception - def initialize(message) super message end @@ -16,11 +14,9 @@ class Gem::S3URISigner def to_s # :nodoc: "#{super}" end - end class InstanceProfileError < Gem::Exception - def initialize(message) super message end @@ -28,7 +24,6 @@ class Gem::S3URISigner def to_s # :nodoc: "#{super}" end - end attr_accessor :uri @@ -179,5 +174,4 @@ class Gem::S3URISigner BASE64_URI_TRANSLATE = { "+" => "%2B", "/" => "%2F", "=" => "%3D", "\n" => "" }.freeze EC2_IAM_INFO = "http://169.254.169.254/latest/meta-data/iam/info".freeze EC2_IAM_SECURITY_CREDENTIALS = "http://169.254.169.254/latest/meta-data/iam/security-credentials/".freeze - end |