google_drive 2.0.0 → 2.0.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: c6953205de39d68d7052796a2e727a9373ca3051
4
- data.tar.gz: 6c1ef6b82a4a565a89422bc383963b05d611f0c0
3
+ metadata.gz: 2752fea3fdb95778f8fc63299c853b2c59733db7
4
+ data.tar.gz: dabdc2d01823ea09bbb7a5c711b606ee99b9b55a
5
5
  SHA512:
6
- metadata.gz: 88b057f25437a247166b64f04105b1593a43ae609a8749c1cb87c03644c3d0425103411ba5612858886cc029368a0b2474f2aacea36435a6fd30291192fd9d01
7
- data.tar.gz: 9b61fb42dbf08b7f0601c61a43d67c6e422aaa5195280e42bd8f0f06372469d98eb06d3d679baab796730bc2061351d8feb8ad75b5f5669ff120109076eca2e2
6
+ metadata.gz: 6c14714081c816a87140ba645aad48076519cf7817f4d9ce606c5c09c0de682dc26db70a6b46e234b0789295a880e82bbb6af8d063b45cd34557897855a5d49b
7
+ data.tar.gz: 6a46e4256b8fe4f36e6bbaf1561c567ab2138ebf701121b73441c238f471dccddcfb708b125a4edd6e9ba6db510e75805ba0a1e49bfb8963830901c46e9e7f84
@@ -20,12 +20,16 @@ module GoogleDrive
20
20
  def initialize(authorization)
21
21
  @drive = Google::Apis::DriveV3::DriveService.new
22
22
  @drive.authorization = authorization
23
+ # Make the timeout virtually infinite because some of the operations (e.g., uploading a large file)
24
+ # can take very long.
25
+ @drive.request_options.timeout_sec = 100_000_000
26
+ @drive.request_options.open_timeout_sec = 100_000_000
23
27
  end
24
28
 
25
29
  attr_reader(:drive)
26
30
 
27
31
  def request_raw(method, url, data, extra_header, _auth)
28
- options = Google::Apis::RequestOptions.default.merge(header: extra_header)
32
+ options = @drive.request_options.merge(header: extra_header)
29
33
  body = @drive.http(method, url, body: data, options: options)
30
34
  Response.new('200', body)
31
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroshi Ichikawa