fog-google 1.14.0 → 1.15.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6eea488c39dbca402a8a3a648ab1ebfbca31762c7b3f9d6828c3e2866b9e500
|
|
4
|
+
data.tar.gz: ce03073c85ae8b82eb60c60f38e4ae400defd42964bf4eeb74e12dfc3f550732
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d53bdc28be406f9144ef15790f71dbece9444c44d06786ccf6a6aa35c7214bf5e5af28e26a45dbe7feef184c242c07cb90cc20dfadf869b79af6f9c330893a1
|
|
7
|
+
data.tar.gz: 65a11e596a256e5d784ff63e0080615a5cfefc6d35628b77f131166ff00bc949858c96bed221ebef1860debe996bd7adf55cf0ffe2c3d4f065cd6f64d7bbf61c
|
data/CHANGELOG.md
CHANGED
data/lib/fog/google/version.rb
CHANGED
|
@@ -86,9 +86,14 @@ class StorageShared < FogIntegrationTest
|
|
|
86
86
|
"hello world"
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
def
|
|
89
|
+
def binary_file_content
|
|
90
|
+
"PK\x03\x04\x14\x00\x00\x00\b\x00\x18\x89\x8AM\xE7!\xB7\x1C\x1C\x15j\x00\xB4\xB9".force_encoding(Encoding::ASCII_8BIT)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def some_temp_file(content = temp_file_content)
|
|
90
94
|
@some_temp_file ||= Tempfile.new("fog-google-storage").tap do |t|
|
|
91
|
-
t.
|
|
95
|
+
t.binmode
|
|
96
|
+
t.write(content)
|
|
92
97
|
t.close
|
|
93
98
|
end
|
|
94
99
|
File.open(@some_temp_file.path, "r")
|
|
@@ -34,13 +34,15 @@ class TestStorageRequests < StorageShared
|
|
|
34
34
|
|
|
35
35
|
def test_put_object_paperclip
|
|
36
36
|
object_name = new_object_name
|
|
37
|
-
paperclip_file = OpenStruct.new(:path => some_temp_file,
|
|
37
|
+
paperclip_file = OpenStruct.new(:path => some_temp_file(binary_file_content),
|
|
38
38
|
:content_type => "image/png")
|
|
39
39
|
@client.put_object(some_bucket_name, object_name, paperclip_file, :content_type => "image/png")
|
|
40
40
|
|
|
41
41
|
object = @client.get_object(some_bucket_name, object_name)
|
|
42
42
|
|
|
43
43
|
assert_equal(object_name, object[:name])
|
|
44
|
+
assert_equal(Encoding::ASCII_8BIT, object[:body].encoding)
|
|
45
|
+
assert_equal(binary_file_content, object[:body])
|
|
44
46
|
assert_equal("image/png", object[:content_type])
|
|
45
47
|
end
|
|
46
48
|
|
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.
|
|
4
|
+
version: 1.15.0
|
|
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: 2021-06-
|
|
12
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fog-core
|
|
@@ -782,7 +782,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
782
782
|
- !ruby/object:Gem::Version
|
|
783
783
|
version: '0'
|
|
784
784
|
requirements: []
|
|
785
|
-
rubygems_version: 3.
|
|
785
|
+
rubygems_version: 3.2.15
|
|
786
786
|
signing_key:
|
|
787
787
|
specification_version: 4
|
|
788
788
|
summary: Module for the 'fog' gem to support Google.
|