googledrive-easy 0.1.2 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/googledrive-easy-test.rb +10 -0
- data/lib/googledrive-easy.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e56a24359754fc58fb6a56cfc7197c4bd96834d8a4918e944385d2642ab900e
|
4
|
+
data.tar.gz: 8963a1f491e20b479814a5da6495e5654f0627a80f4520627e5b2ad9357b319a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b57117941614a74a66ad3f787d20e92356931e20d266bac57eb51bd07d29814af36014306bdf4c70e6076399c338ef15bc7d41d5317ea96b541e9cbc9b9a1e9a
|
7
|
+
data.tar.gz: f058b48cbce3e482b682676150ff6f51c76a0dd35339b0bce16dc51abfdc45b14a11578938eb0458c36b3f7d74fcc1a8e5790b7604482d93af8be3af38eafbc9
|
@@ -220,4 +220,14 @@ class GoogleDriveEasyTest < Test::Unit::TestCase
|
|
220
220
|
assert_instance_of(Array, res, "Returns list")
|
221
221
|
end
|
222
222
|
|
223
|
+
def test_get_file_info
|
224
|
+
omit("Test Environment not correctly configured for live tests") unless @test_env_vars_defined
|
225
|
+
@drive.set_api_keys(client_id: @client_id, client_secret: @client_secret, refresh_token: @refresh_token)
|
226
|
+
@drive.create_service(mode:'manual')
|
227
|
+
res = @drive.get_file_info("10l2ahCetnm1_147rRcuaObTwrntqQuRz")
|
228
|
+
assert_instance_of(Hash, res, 'Should return a Hash')
|
229
|
+
assert_equal("rxg", res[:name], "Name should be 'rxg'")
|
230
|
+
# assert_instance_of(Google::Apis::DriveV3::File, res, 'Should be instance of Google::Apis::DriveV3::File')
|
231
|
+
end
|
232
|
+
|
223
233
|
end
|
data/lib/googledrive-easy.rb
CHANGED
@@ -448,7 +448,7 @@ class GoogleDrive
|
|
448
448
|
end
|
449
449
|
|
450
450
|
# TODO: Maybe convert this to block format and handle errors like in other places
|
451
|
-
file = @drive_service.get_file(file_id
|
451
|
+
file = @drive_service.get_file(file_id, fields: "#{@file_fields}")
|
452
452
|
return process_file(file)
|
453
453
|
end
|
454
454
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: googledrive-easy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Bullock
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-10-
|
12
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: googleauth
|