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

[rubygems/rubygems] Use default value for expiration in the method signature

https://github.com/rubygems/rubygems/commit/1372e50c17
This commit is contained in:
Alexander Pakulov 2019-07-06 13:05:43 -07:00 committed by Hiroshi SHIBATA
parent aa9015dd84
commit 74419711ad
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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