fog-google 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +15 -0
- data/CHANGELOG.md +15 -0
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/requests/copy_object.rb +2 -1
- data/tasks/changelog.rake +5 -3
- data/test/integration/storage/test_objects.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cc4ba9bf8fde22a71d31839ce62dd6240461eef907a35a391aa09533526255d
|
4
|
+
data.tar.gz: 0b169c4358550f92aaba6069d5c152f4b56f0548e5b9fbd62fc9c0f695d312cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd4332084eb98372966c1be4d7ec259e1d89f2cc0d15022610519865126bbd2d821997a1183e083e87e0be18615d354430d0a2539c62b1473cceb28a1aabfdc9
|
7
|
+
data.tar.gz: 97b0ba463466505603f3903d3c21e8fd7cf43807488e4c0a0f5de55a6fc01850a165113dbf6714057f52e82bbf71cd9e2838d356fed36e73fac0dba53a6536fc
|
data/.travis.yml
CHANGED
@@ -11,8 +11,23 @@ matrix:
|
|
11
11
|
- rvm: jruby-9.2
|
12
12
|
- rvm: jruby-head
|
13
13
|
- rvm: truffleruby-head
|
14
|
+
# ppc64le support code
|
15
|
+
- rvm: 2.4
|
16
|
+
arch: ppc64le
|
17
|
+
- rvm: 2.5
|
18
|
+
arch: ppc64le
|
19
|
+
- rvm: 2.6
|
20
|
+
arch: ppc64le
|
21
|
+
- rvm: 2.7
|
22
|
+
arch: ppc64le
|
23
|
+
- rvm: jruby-9.2
|
24
|
+
arch: ppc64le
|
25
|
+
- rvm: jruby-head
|
26
|
+
arch: ppc64le
|
14
27
|
allow_failures:
|
15
28
|
- rvm: jruby-head
|
16
29
|
- rvm: truffleruby-head
|
30
|
+
- rvm: jruby-head
|
31
|
+
arch: ppc64le
|
17
32
|
notifications:
|
18
33
|
email: false
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
7
7
|
## Next
|
8
8
|
|
9
9
|
|
10
|
+
## 1.12.1
|
11
|
+
|
12
|
+
### User-facing
|
13
|
+
|
14
|
+
#### Fixed
|
15
|
+
|
16
|
+
\#513 - support passing other request options `StorageJSON#copy_object` [yosiat]
|
17
|
+
|
18
|
+
### Development changes
|
19
|
+
|
20
|
+
#### Added
|
21
|
+
|
22
|
+
\#514 - Update .travis.yml to support PPC architecture testing [nageshlop]
|
23
|
+
|
24
|
+
|
10
25
|
## 1.12.0
|
11
26
|
|
12
27
|
### User-facing
|
data/lib/fog/google/version.rb
CHANGED
@@ -14,9 +14,10 @@ module Fog
|
|
14
14
|
def copy_object(source_bucket, source_object,
|
15
15
|
target_bucket, target_object, options = {})
|
16
16
|
request_options = ::Google::Apis::RequestOptions.default.merge(options)
|
17
|
+
|
17
18
|
@storage_json.copy_object(source_bucket, source_object,
|
18
19
|
target_bucket, target_object,
|
19
|
-
request_options)
|
20
|
+
request_options, **options)
|
20
21
|
end
|
21
22
|
end
|
22
23
|
|
data/tasks/changelog.rake
CHANGED
@@ -25,13 +25,15 @@ end
|
|
25
25
|
|
26
26
|
# Extracts all github users contributed since last tag
|
27
27
|
def users_since_last_tag
|
28
|
-
`git --no-pager log $(git describe --tags --abbrev=0)..HEAD --grep="Merge" --pretty=format:"%s" | cut -d' ' -f 6 | cut -d/ -f1 | uniq`
|
28
|
+
`git --no-pager log $(git describe --tags --abbrev=0)..HEAD --grep="Merge" --pretty=format:"%s" | cut -d' ' -f 6 | cut -d/ -f1 | sort | uniq`
|
29
29
|
end
|
30
30
|
|
31
31
|
namespace :changelog do
|
32
32
|
task :generate do
|
33
33
|
insert_after_line("CHANGELOG.md", changes_since_last_tag, /^## Next/)
|
34
|
-
|
35
|
-
printf(
|
34
|
+
contributors = users_since_last_tag.split("\n").map { |name| "@" + name }
|
35
|
+
printf("Huge thanks to all our contributors 🎆\n")
|
36
|
+
printf("Special thanks to: " + contributors.join(" ") + "\n")
|
37
|
+
printf("\nI'll merge this and release the gem once all tests pass.\n")
|
36
38
|
end
|
37
39
|
end
|
@@ -3,6 +3,7 @@ require "integration/storage/storage_shared"
|
|
3
3
|
require "securerandom"
|
4
4
|
require "base64"
|
5
5
|
require "tempfile"
|
6
|
+
require "net/http"
|
6
7
|
|
7
8
|
class TestStorageRequests < StorageShared
|
8
9
|
def test_put_object_string
|
@@ -93,10 +94,25 @@ class TestStorageRequests < StorageShared
|
|
93
94
|
|
94
95
|
@client.copy_object(some_bucket_name, some_object_name,
|
95
96
|
some_bucket_name, target_object_name)
|
97
|
+
|
96
98
|
object = @client.get_object(some_bucket_name, target_object_name)
|
99
|
+
|
97
100
|
assert_equal(temp_file_content, object[:body])
|
98
101
|
end
|
99
102
|
|
103
|
+
def test_copy_object_predefined_acl
|
104
|
+
target_object_name = new_object_name
|
105
|
+
|
106
|
+
res = @client.copy_object(some_bucket_name, some_object_name,
|
107
|
+
some_bucket_name, target_object_name, destination_predefined_acl: "publicRead")
|
108
|
+
|
109
|
+
result = @client.get_object(some_bucket_name, target_object_name)
|
110
|
+
|
111
|
+
response = Net::HTTP.get_response(URI(result[:self_link]))
|
112
|
+
|
113
|
+
assert_kind_of(Net::HTTPOK, response)
|
114
|
+
end
|
115
|
+
|
100
116
|
def test_list_objects
|
101
117
|
expected_object = some_object_name
|
102
118
|
|
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.12.
|
4
|
+
version: 1.12.1
|
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: 2020-12-
|
12
|
+
date: 2020-12-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fog-core
|