diff options
author | Alexander Pakulov <apakulov@stripe.com> | 2019-07-06 13:05:43 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-07-31 07:47:01 +0800 |
commit | 74419711ad548c7f38c247ab1d8d1fbb9087b8ba (patch) | |
tree | cef0b92e3e8cfd939934aab9c597793875f063ac | |
parent | aa9015dd8430522318714eee0de562ade845ce7c (diff) | |
download | ruby-74419711ad548c7f38c247ab1d8d1fbb9087b8ba.tar.gz |
[rubygems/rubygems] Use default value for expiration in the method signature
https://github.com/rubygems/rubygems/commit/1372e50c17
-rw-r--r-- | lib/rubygems/s3_uri_signer.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rubygems/s3_uri_signer.rb b/lib/rubygems/s3_uri_signer.rb index 71741b2a66..cde10d4a79 100644 --- a/lib/rubygems/s3_uri_signer.rb +++ b/lib/rubygems/s3_uri_signer.rb @@ -39,9 +39,7 @@ class Gem::S3URISigner ## # Signs S3 URI using query-params according to the reference: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html - def sign(expiration = nil) - expiration ||= 86400 - + def sign(expiration = 86400) s3_config = fetch_s3_config current_time = Time.now.utc |