shrine-google_cloud_storage 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23c1f63dede9dfeb07206378d3f05febbe2daeebe13dac4eefe44acabd56f969
4
- data.tar.gz: f96cfa7a0c31b7f563844e6538bc793733b4bfacdbe30210369d57d3bcb17997
3
+ metadata.gz: fa8300b784f31a4d398fc656917be9717fb7c05668de36ab15584bad9f85ff25
4
+ data.tar.gz: 967a2776f9f7246be332f21835478863b254ae9d55247ab14dafb61f715a378b
5
5
  SHA512:
6
- metadata.gz: 5d15f754a22f4eea98aeffac564a91033fd1a40fb53cd4540043e15facaa067f62f10fe7492e5c8adc2123c19a2b0964d06d6ec86e6242565a0ecc2484e4a063
7
- data.tar.gz: 30d8de03eaa32029cadd2a54804c0470eec79504066fdc7ce92cc1578a064147abdba29062b2c43697715f407350b6fcf51a9d0c7f4d40952dacf15ac23d9064
6
+ metadata.gz: f53205e5d15a03e3508ff5bf235017050b0281af87095f4643e7ab072cc909195391cd97144d577814274e78d4c547ff6d9e6f9afe8818d55087f71736105dd5
7
+ data.tar.gz: 81df0875f5f7ce14df49ebfb717aceecaa09c79134fe50c37b6b5fd7b1810c91c03a53221bb0484336bed9b4027d1bc9071c50ed104b007cf6dadceceffffa78
@@ -31,6 +31,11 @@ class Shrine
31
31
  object_name(id), # dest_path - the path to copy the file to in the given bucket
32
32
  acl: @default_acl
33
33
  ) do |f|
34
+ # Workaround a bug in File#copy where the content-type is not copied if you provide a block
35
+ # See https://github.com/renchap/shrine-google_cloud_storage/issues/36
36
+ # See https://github.com/googleapis/google-cloud-ruby/issues/4254
37
+ f.content_type = existing_file.content_type
38
+
34
39
  # update the additional options
35
40
  @object_options.merge(options).each_pair do |key, value|
36
41
  f.send("#{key}=", value)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "shrine-google_cloud_storage"
3
- gem.version = "2.0.0"
3
+ gem.version = "2.0.1"
4
4
 
5
5
  gem.required_ruby_version = ">= 2.1"
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shrine-google_cloud_storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renaud Chaput
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-12 00:00:00.000000000 Z
11
+ date: 2019-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shrine
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubygems_version: 3.0.1
126
+ rubygems_version: 3.0.3
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Provides Google Cloud Storage storage for Shrine.