google-cloud-storage 1.7.0 → 1.7.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
  SHA1:
3
- metadata.gz: 234c7b1b0ea7f2033e0428c202ca6fc5a9390f68
4
- data.tar.gz: 54912b87f802825f3d4a6a88126a20d826e382d3
3
+ metadata.gz: 2de136120911e5c72a76a2ffa060403a99d96f90
4
+ data.tar.gz: 6971158f443390b81e15a280a4509bcdee543909
5
5
  SHA512:
6
- metadata.gz: 4c813e0e7bae98753ad441d4a015ace5cab50d053821cbbcc0a64ab2fd4705f7f83707f122c225e8251816df667855098992485720c37b4ceff8dff2c55d768b
7
- data.tar.gz: 0fde8c69671d845976c975aa67d6520d1421ff8e25ae8140625350e83bd9dd649eabd6fd31dc83aed6f0f0f6b32d3bb1456d493f67f3ea08f0e17705686dcf14
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
  ##
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.7.0"
19
+ VERSION = "1.7.1"
20
20
  end
21
21
  end
22
22
  end
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.0
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-18 00:00:00.000000000 Z
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