google_drive 2.1.3 → 2.1.4

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: ed440ea8d85066b1d35977ca23b3943188d43a25
4
- data.tar.gz: dd27072e2bb69a904853408ee8ba16992f8e2bbf
3
+ metadata.gz: 807139404d4070a59897fb4755c40fc98c5b9e59
4
+ data.tar.gz: 4e652277d2666215e67a9b9297e1b8c7f62c3414
5
5
  SHA512:
6
- metadata.gz: 6bae4c40c7daabb792de2dff56eda0cee92fe8c33fea95f6c2cceee3150edf8392dae98fdd19e31e92999e7cf50ade47470a56dd8d0da4292f043740e4e01f93
7
- data.tar.gz: c76b82d87fc66f6716b70cfd1f0644991906cf68b8fa191f8e4f1c5ed61525c3c2b8d087647152dda24d7e2061db4e9cc2b5d7ba43500f07c13fe9570c48d8ce
6
+ metadata.gz: 7bd42734faa63fcbe3faa522283366334d334fa4984758661fd1aee3a243efec6bb09876454712bf8dd82b999f2ddbfa10756e92bbd2807cec24e0f8c79ec813
7
+ data.tar.gz: a1363650edbb2e6526d44fcd596234012e55b07590c071cff50353c308e50ff2a9c4d5e01abf3ea530b9166ee63a46ae9bf7c2ad7b088de385e55a1fdb3ad314
data/README.md CHANGED
@@ -109,7 +109,7 @@ ws.reload
109
109
 
110
110
  ## Learn more
111
111
 
112
- * [API documentation](http://www.rubydoc.info/gems/google_drive/2.1.2)
112
+ * [API documentation](http://www.rubydoc.info/gems/google_drive)
113
113
  * [Authorization](https://github.com/gimite/google-drive-ruby/blob/master/doc/authorization.md)
114
114
  * [Github](http://github.com/gimite/google-drive-ruby)
115
115
 
@@ -36,7 +36,7 @@ module GoogleDrive
36
36
 
37
37
  # Reloads file metadata such as title and acl.
38
38
  def reload_metadata
39
- @api_file = @session.drive.get_file(id, fields: '*')
39
+ @api_file = @session.drive.get_file(id, fields: '*', supports_team_drives: true)
40
40
  @acl = Acl.new(@session, self) if @acl
41
41
  end
42
42
 
@@ -87,7 +87,9 @@ module GoogleDrive
87
87
  #
88
88
  # To export the file in other formats, use export_as_file.
89
89
  def download_to_file(path, params = {})
90
- @session.drive.get_file(id, {download_dest: path}.merge(params))
90
+ @session.drive.get_file(
91
+ id,
92
+ {download_dest: path, supports_team_drives: true}.merge(params))
91
93
  end
92
94
 
93
95
  # Downloads the file and returns as a String.
@@ -103,7 +105,9 @@ module GoogleDrive
103
105
  #
104
106
  # To export the file in other formats, use export_to_io.
105
107
  def download_to_io(io, params = {})
106
- @session.drive.get_file(id, {download_dest: io}.merge(params))
108
+ @session.drive.get_file(
109
+ id,
110
+ {download_dest: io, supports_team_drives: true}.merge(params))
107
111
  end
108
112
 
109
113
  # Export the file to +path+ in content type +format+.
@@ -186,7 +186,7 @@ module GoogleDrive
186
186
  params = convert_params(params)
187
187
  execute_paged!(
188
188
  method: self.drive.method(:list_files),
189
- parameters: {fields: '*'}.merge(params),
189
+ parameters: {fields: '*', supports_team_drives: true}.merge(params),
190
190
  items_method_name: :files,
191
191
  converter: proc { |af| wrap_api_file(af) },
192
192
  &block)
@@ -213,7 +213,7 @@ module GoogleDrive
213
213
  # Returns an instance of GoogleDrive::File or its subclass (GoogleDrive::Spreadsheet,
214
214
  # GoogleDrive::Collection).
215
215
  def file_by_id(id)
216
- api_file = self.drive.get_file(id, fields: '*')
216
+ api_file = self.drive.get_file(id, fields: '*', supports_team_drives: true)
217
217
  wrap_api_file(api_file)
218
218
  end
219
219
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Ichikawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-06 00:00:00.000000000 Z
11
+ date: 2017-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 0.11.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.0.0
42
+ version: 0.12.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 0.11.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 1.0.0
52
+ version: 0.12.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: googleauth
55
55
  requirement: !ruby/object:Gem::Requirement