fog-google 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTORS.md +1 -0
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/requests/put_object.rb +5 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b60274f37b6c27b7f7ca99c2e6da44c688e42de0
|
4
|
+
data.tar.gz: 334ebad30e1cc9c16148b5733c851ebef0bf4687
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
data/lib/fog/google/version.rb
CHANGED
@@ -46,13 +46,11 @@ module Fog
|
|
46
46
|
kms_key_name: nil,
|
47
47
|
predefined_acl: nil,
|
48
48
|
**options)
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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.
|
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
|
+
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.
|
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.
|