lib/google/cloud/storage/bucket.rb in google-cloud-storage-1.10.0 vs lib/google/cloud/storage/bucket.rb in google-cloud-storage-1.11.0

- old
+ new

@@ -559,12 +559,12 @@ end alias find_file file ## # Creates a new {File} object by providing a path to a local file (or - # any IO or IO-ish object) to upload, along with the path at which to - # store it in the bucket. + # any File-like object such as StringIO) to upload, along with the path + # at which to store it in the bucket. # # #### Customer-supplied encryption keys # # By default, Google Cloud Storage manages server-side encryption keys # on your behalf. However, a [customer-supplied encryption key](https://cloud.google.com/storage/docs/encryption#customer-supplied) @@ -575,12 +575,12 @@ # metadata is not encrypted, with the exception of the CRC32C checksum # and MD5 hash. The names of files and buckets are also not encrypted, # and you can read or update the metadata of an encrypted file without # providing the encryption key. # - # @param [String, IO] file Path of the file on the filesystem to - # upload. Can be an IO object, or IO-ish object like StringIO. (If the - # IO object does not have path, a `path` argument must be also be + # @param [String, ::File] file Path of the file on the filesystem to + # upload. Can be an File object, or File-like object such as StringIO. + # (If the object does not have path, a `path` argument must be also be # provided.) # @param [String] path Path to store the file in Google Cloud Storage. # @param [String] acl A predefined set of access controls to apply to # this file. #