Skip to content

Releases: renchap/shrine-google_cloud_storage

3.3.0

14 Aug 20:37
04a7b0a
Compare
Choose a tag to compare

Added

  • public option on storage, which enabled the publicRead default ACL, as an easier way to create public objects

Fixes

  • Signed URLs were wrongly generated when expires was not provided
  • Fixed special character encoding in URLs (thanks @camiloforero)

3.2.0

07 Jan 11:03
d434403
Compare
Choose a tag to compare

Added

Changed

  • Minimum Ruby version is 2.6
  • Multi Factor authentication is now required when publishing on Rubygems

3.1.0

22 Apr 16:00
2d8a347
Compare
Choose a tag to compare

Added

  • Allow an ACL to be specicied for an object (#45 by @ianks)

Fixed

  • Ruby 3.0 keyword arguments fixes (#46 by @sho918)

3.0.1

02 Apr 10:34
7e7b9c4
Compare
Choose a tag to compare

Added

  • Allow credentials to be manually specified when creating the Storage (#35 by @ianks)

3.0.0

22 Oct 14:37
8f642db
Compare
Choose a tag to compare

Changed

  • Updated for Shrine 3.0. This is a breaking change. (#37 by @janko)

2.0.1

22 Oct 14:37
ad1cec0
Compare
Choose a tag to compare

Fixed

  • When copying a file from an existing GCS object, the content type was not properly copied. This is a bug in the google-cloud-storage gem, a workaround has been added so it now works currently (issue #36)

2.0.0

12 Feb 22:19
9e8bdc3
Compare
Choose a tag to compare

Breaking changes

  • Minimum Shrine version is now 2.11
  • presign changed to match the new Shrine signature

Added

  • clear! now accepts a block for conditional deletion. If a block is provided, it will only delete the files for which the block evaluates to true (#31 by @hwo411)

Changed

  • presign has been updated to use the new Shrine 2.11 API. This is a breaking change if you use presign, and bumps the shrine dependency to >= 2.11 (#25 by @janko)
  • This gem now uses Shrine.with_file, introduced in Shrine 2.11 (#29 by @janko)

Fixed

  • clear! was potentially not deleting every file (#26 by @janko)

v1.0.1

13 Feb 17:41
Compare
Choose a tag to compare

Changed

Fixed

  • presign now correctly returns the headers needed for the PUT request (#23 by @janko-m)

v1.0.0

29 Dec 17:15
Compare
Choose a tag to compare

Added

  • You can specify a project when creating a storage (#16 by @rosskevin)
  • Authentication is now delegated to google-cloud-ruby, which enables credentials discovery
  • #url now supports presigning (url(expires: …)), matching the S3 storage (#16 by @rosskevin)

Changed

  • switched to google-cloud-storage gem (#16 by @rosskevin)
  • added a test/create_test_environment.sh script to setup a test environment automatically (#16 by @rosskevin)
  • use skip_lookup: true when instanciating a bucket object to avoid an API call. This reduces the number of API calls for most operations, making them faster. It also allows operating on buckets with a restricted Service Account that does not have access to storage.buckets.get but can access the files. (#21)

Removed

  • removed support for multi_delete, as this feature has been deprecated in Shrine