google_drive 2.0.0 → 2.0.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 +4 -4
- data/lib/google_drive/api_client_fetcher.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2752fea3fdb95778f8fc63299c853b2c59733db7
|
4
|
+
data.tar.gz: dabdc2d01823ea09bbb7a5c711b606ee99b9b55a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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
|