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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1c1391e08462b5fb89fdd154a48c0377d51e297c796bd93410ccd408e4588f0
4
- data.tar.gz: 3be445fcb9bf73d16c8d244dfd48353628250314f9a06c02dafd68401d89c7eb
3
+ metadata.gz: 9cc4ba9bf8fde22a71d31839ce62dd6240461eef907a35a391aa09533526255d
4
+ data.tar.gz: 0b169c4358550f92aaba6069d5c152f4b56f0548e5b9fbd62fc9c0f695d312cb
5
5
  SHA512:
6
- metadata.gz: 279cba589d3876f6f01a868f9997578a966e106e276a8ef979559ce8ff79adcad6248731faa79fe31f132880997207638242899798bebafd843a590c71d554f8
7
- data.tar.gz: ae4fc9fdeeb86471d020fef16a7b7b4f5b15b8c56438138e85e6494efd8a3c5d91ff183857e84aa84824fc937264bf6852b9fe3d581b4a3d4fee6f4cc3ab59ea
6
+ metadata.gz: cd4332084eb98372966c1be4d7ec259e1d89f2cc0d15022610519865126bbd2d821997a1183e083e87e0be18615d354430d0a2539c62b1473cceb28a1aabfdc9
7
+ data.tar.gz: 97b0ba463466505603f3903d3c21e8fd7cf43807488e4c0a0f5de55a6fc01850a165113dbf6714057f52e82bbf71cd9e2838d356fed36e73fac0dba53a6536fc
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Google
3
- VERSION = "1.12.0".freeze
3
+ VERSION = "1.12.1".freeze
4
4
  end
5
5
  end
@@ -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
 
@@ -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
- printf("Users contributed since last release:\n")
35
- printf(users_since_last_tag)
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.0
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-02 00:00:00.000000000 Z
12
+ date: 2020-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog-core