google-cloud-storage 1.7.0 → 1.7.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2de136120911e5c72a76a2ffa060403a99d96f90
|
|
4
|
+
data.tar.gz: 6971158f443390b81e15a280a4509bcdee543909
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ecd9ade1eb8173d73c80b58b84ddb2f51529225e7b9ef457ac53f036533346f98a2e15b254682247bfc9ddd73801bd007b38f82b9f61c923e45a70a95ed5fbc
|
|
7
|
+
data.tar.gz: 3f2e892024bbe6a67124051567ea73e1546dcb69a8750bac1282f5fee472b48e6b2ca90226c5cdafeebd5efa6bb5e1b2cf22fed9c9c71372984e936bd2cda628
|
|
@@ -701,7 +701,7 @@ module Google
|
|
|
701
701
|
fail ArgumentError, "must provide path" if path.nil?
|
|
702
702
|
|
|
703
703
|
gapi = service.insert_file name, file, path, options
|
|
704
|
-
File.from_gapi gapi, service
|
|
704
|
+
File.from_gapi gapi, service, user_project: user_project
|
|
705
705
|
end
|
|
706
706
|
alias_method :upload_file, :create_file
|
|
707
707
|
alias_method :new_file, :create_file
|
|
@@ -811,7 +811,7 @@ module Google
|
|
|
811
811
|
end
|
|
812
812
|
gapi = service.compose_file name, sources, destination,
|
|
813
813
|
destination_gapi, options
|
|
814
|
-
File.from_gapi gapi, service
|
|
814
|
+
File.from_gapi gapi, service, user_project: user_project
|
|
815
815
|
end
|
|
816
816
|
alias_method :compose_file, :compose
|
|
817
817
|
alias_method :combine, :compose
|
|
@@ -193,7 +193,8 @@ module Google
|
|
|
193
193
|
# bucket.acl.add_owner "group-#{email}"
|
|
194
194
|
#
|
|
195
195
|
def add_owner entity
|
|
196
|
-
gapi = @service.insert_bucket_acl @bucket, entity, "OWNER"
|
|
196
|
+
gapi = @service.insert_bucket_acl @bucket, entity, "OWNER",
|
|
197
|
+
user_project: user_project
|
|
197
198
|
entity = gapi.entity
|
|
198
199
|
@owners.push entity unless @owners.nil?
|
|
199
200
|
entity
|
|
@@ -278,7 +279,8 @@ module Google
|
|
|
278
279
|
# bucket.acl.add_reader "group-#{email}"
|
|
279
280
|
#
|
|
280
281
|
def add_reader entity
|
|
281
|
-
gapi = @service.insert_bucket_acl @bucket, entity, "READER"
|
|
282
|
+
gapi = @service.insert_bucket_acl @bucket, entity, "READER",
|
|
283
|
+
user_project: user_project
|
|
282
284
|
entity = gapi.entity
|
|
283
285
|
@readers.push entity unless @readers.nil?
|
|
284
286
|
entity
|
|
@@ -607,7 +607,7 @@ module Google
|
|
|
607
607
|
copy_gapi,
|
|
608
608
|
options.merge(token: resp.rewrite_token)
|
|
609
609
|
end
|
|
610
|
-
File.from_gapi resp.resource, service
|
|
610
|
+
File.from_gapi resp.resource, service, user_project: user_project
|
|
611
611
|
end
|
|
612
612
|
|
|
613
613
|
##
|
|
@@ -666,7 +666,7 @@ module Google
|
|
|
666
666
|
options[:token] = gapi.rewrite_token
|
|
667
667
|
gapi = service.rewrite_file bucket, name, bucket, name, nil, options
|
|
668
668
|
end
|
|
669
|
-
File.from_gapi gapi.resource, service
|
|
669
|
+
File.from_gapi gapi.resource, service, user_project: user_project
|
|
670
670
|
end
|
|
671
671
|
|
|
672
672
|
##
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-storage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Moore
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-10-
|
|
12
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: google-cloud-core
|