fog-google 1.3.2 → 1.3.3

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
  SHA1:
3
- metadata.gz: 0ae0e411797b763fe618dc2a8c158402aed604a7
4
- data.tar.gz: a21e035486bcbe6da4af618860cc8615d6c0dae4
3
+ metadata.gz: b60274f37b6c27b7f7ca99c2e6da44c688e42de0
4
+ data.tar.gz: 334ebad30e1cc9c16148b5733c851ebef0bf4687
5
5
  SHA512:
6
- metadata.gz: fb6af48903189df6ef655d479453d0b9a4bf114ba060d5127e8183e79a09f57786ca3d56817298719bd0c8434f88684c34e6450a9c68e576d6ced8473a66dde9
7
- data.tar.gz: 71a91aba9e568dbc5f931f0619a0d432c147c97239bd017867d56d6b33a3330f665f8363b3272ce1439dc1ba303bea4a3bc1dafffbc040a085494c6a74958d80
6
+ metadata.gz: 26ccb1f592a38548a673c8424985f77b9fcdbaf8968d0bb7b76c02cb932afac3153686c24f084f7c84716654152ca4e71812183d791c406918d9b75212b7377b
7
+ data.tar.gz: 7a0ad20aa3c081a831596e7c546f58011523aa68a81dc56ff100c65a794f3abb0d5d003c49c4f2f3b0ca73a43f91b7e44892b271188a2593ab6d089c360c4378
data/CONTRIBUTORS.md CHANGED
@@ -73,6 +73,7 @@ With also previous help from unnamed Google employees and [Fog contributors](htt
73
73
  * Romain Haenni <admin@zlabs.ch>
74
74
  * Romain Vrignaud <rvrignaud@gmail.com>
75
75
  * Sean Malloy <spinelli85@gmail.com>
76
+ * Shinya Maeda <shinya@gitlab.com>
76
77
  * Stephen von Takach <steve@advancedcontrol.com.au>
77
78
  * Tim Downey <tdowney@pivotal.io>
78
79
  * Timur Alperovich <timur.alperovich@gmail.com>
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.3.2".freeze
3
+ VERSION = "1.3.3".freeze
4
4
  end
5
5
  end
@@ -46,13 +46,11 @@ module Fog
46
46
  kms_key_name: nil,
47
47
  predefined_acl: nil,
48
48
  **options)
49
- unless options[:content_type]
50
- if data.is_a?(String)
51
- data = StringIO.new(data)
52
- options[:content_type] = "text/plain"
53
- elsif data.is_a?(::File)
54
- options[:content_type] = Fog::Storage.parse_data(data)[:headers]["Content-Type"]
55
- end
49
+ if data.is_a?(String)
50
+ data = StringIO.new(data)
51
+ options[:content_type] ||= "text/plain"
52
+ elsif data.is_a?(::File)
53
+ options[:content_type] ||= Fog::Storage.parse_data(data)[:headers]["Content-Type"]
56
54
  end
57
55
 
58
56
  # Paperclip::AbstractAdapter
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-google
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Welch
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-03-12 00:00:00.000000000 Z
12
+ date: 2018-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-core
@@ -721,7 +721,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
721
721
  version: '0'
722
722
  requirements: []
723
723
  rubyforge_project:
724
- rubygems_version: 2.6.12
724
+ rubygems_version: 2.6.13
725
725
  signing_key:
726
726
  specification_version: 4
727
727
  summary: Module for the 'fog' gem to support Google.