From 85e825b94e6259c3bd9ddf7db8f758e26afb698c Mon Sep 17 00:00:00 2001 From: ksss Date: Sun, 20 Feb 2022 07:33:26 +0900 Subject: [PATCH 1/2] Fix example code in Aws::S3::PresignedPost --- gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb b/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb index 8d1d940268b..ad4f2be8736 100644 --- a/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb +++ b/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb @@ -98,7 +98,7 @@ module S3 # or call the associated method. # # ```ruby - # post = Aws::S3::PresignedPost.new(creds, region, bucket). + # post = Aws::S3::PresignedPost.new(creds, region, bucket) # post.content_type('text/plain') # ``` # From 9448a545ef30e4612d6ff946814962abc4df3f9a Mon Sep 17 00:00:00 2001 From: ksss Date: Sun, 20 Feb 2022 07:35:50 +0900 Subject: [PATCH 2/2] Fix documentation on Aws::S3::PresignedPost `expires` should be Time instead of String --- gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb b/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb index ad4f2be8736..1a3d3f0eec7 100644 --- a/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb +++ b/gems/aws-sdk-s3/lib/aws-sdk-s3/presigned_post.rb @@ -211,7 +211,7 @@ class PresignedPost # See {PresignedPost#content_encoding}. # @option options [String] :content_encoding_starts_with # See {PresignedPost#content_encoding_starts_with}. - # @option options [String] :expires See {PresignedPost#expires}. + # @option options [Time] :expires See {PresignedPost#expires}. # @option options [String] :expires_starts_with # See {PresignedPost#expires_starts_with}. # @option options [Range] :content_length_range