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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 596b7f2d6dee90bdbf6bc0c0e0f24afbf9e6e354c14df7bc785bd51575a67398
4
- data.tar.gz: aa0520860ec1904846bca60401616c56af1d81e149145f60146e7e3bd72870d5
3
+ metadata.gz: 4e56a24359754fc58fb6a56cfc7197c4bd96834d8a4918e944385d2642ab900e
4
+ data.tar.gz: 8963a1f491e20b479814a5da6495e5654f0627a80f4520627e5b2ad9357b319a
5
5
  SHA512:
6
- metadata.gz: e2ca324499804e788ade36c33aa42de34047844d0639c0c259c755297469ce20bcf3fd0d3ce049fd5c7e3ac9acb8a9c3619a75e317213bfdb5f9f36d0f0cb0bb
7
- data.tar.gz: 624e883a7c089c7bf22b1021b08d803c734cd00c268e95ad3ce971c7be0622176087f80143d73be5b0706a0f837f32b3cb4fa7074586cbfdc7c6a808515877fb
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
@@ -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:file_id, acknowledge_abuse:true, fields: "files(#{@file_fields})")
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.2
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-25 00:00:00.000000000 Z
12
+ date: 2022-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: googleauth