lib/google/cloud/storage/file.rb in google-cloud-storage-1.15.0 vs lib/google/cloud/storage/file.rb in google-cloud-storage-1.16.0
- old
+ new
@@ -1718,16 +1718,20 @@
dest_bucket = dest_bucket.name if dest_bucket.respond_to? :name
dest_path = dest_path.name if dest_path.respond_to? :name
[dest_bucket, dest_path]
end
+ # rubocop:disable Style/MultipleComparison
+
def verify_file! file, verify = :md5
verify_md5 = verify == :md5 || verify == :all
verify_crc32c = verify == :crc32c || verify == :all
Verifier.verify_md5! self, file if verify_md5 && md5
Verifier.verify_crc32c! self, file if verify_crc32c && crc32c
file
end
+
+ # rubocop:enable Style/MultipleComparison
# @return [IO] Returns an IO object representing the file data. This
# will either be a `::File` object referencing the local file
# system or a StringIO instance.
def gzip_decompress local_file