diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-07-13 12:01:07 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-31 21:07:19 +0900 |
commit | a89665b7b1abb5bb6005fd638dc920848cc50f72 (patch) | |
tree | f6c84f1bfb1148d203cd63c72c458de3a8f5e961 /lib/rubygems/s3_uri_signer.rb | |
parent | a6bfc951aa9c48e2a4608a9ae84e2e3b4fd9b390 (diff) | |
download | ruby-a89665b7b1abb5bb6005fd638dc920848cc50f72.tar.gz |
Enforce no empty lines around class body in rubygems
To normalize the code style with `bundler`.
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 |