googledrive-easy 0.1.7 → 0.1.9
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.rb +4 -4
- 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: f1b5bc347e8f62797c7b22adc6827ac7473019bb3bfc556bfded320130efba5f
|
4
|
+
data.tar.gz: 88cbc58285d0b5cc7bc1b347a89aaac3338d21a969638a5df9ed1470482b9c4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6894dbad5d665ac673269aa35522c63e832330db1ec882519a3c6fe0783db9898b4a909158ea5cb5dfc9578fc34f889f640fe105bce9dabb28eb464b12e46e4d
|
7
|
+
data.tar.gz: 06f19f3a115e731e70de653bc5e5e261c55ddf7f4c252c10fa9466546c0b77752fda03dee15bbfc34147d4105471e3d07b227d45f1d4d3a137e0a0c45a41a720
|
data/lib/googledrive-easy.rb
CHANGED
@@ -181,7 +181,7 @@ class GoogleDrive
|
|
181
181
|
def dump_keys
|
182
182
|
{
|
183
183
|
"client_id" => @client_id,
|
184
|
-
"client_secret" => @
|
184
|
+
"client_secret" => @client_secret,
|
185
185
|
"access_token" => @access_token,
|
186
186
|
"refresh_token" => @refresh_token,
|
187
187
|
}
|
@@ -403,13 +403,13 @@ class GoogleDrive
|
|
403
403
|
if idx == 0 and name =~ /\*/ and part.size > 0
|
404
404
|
# If the above are true, this is the first piece, and it was followed by a *, so we should pass it in the
|
405
405
|
# format for prefix matching
|
406
|
-
query += " and (name contains
|
406
|
+
query += " and (name contains \"#{part}\")"
|
407
407
|
elsif idx == 0 and !(name =~ /\*/ )
|
408
408
|
# If the above is true, this is a literal equivalence search, no wildcards should be used.
|
409
|
-
query += " and (name =
|
409
|
+
query += " and (name = \"#{part}\")"
|
410
410
|
else
|
411
411
|
# If we're here, either we had a wildcard prefix, or we're on a later part of the search term. Do a contains.
|
412
|
-
query += " and (
|
412
|
+
query += " and (fullText contains \"#{part}\")" if part.size > 0
|
413
413
|
end
|
414
414
|
end
|
415
415
|
end
|
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.9
|
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-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: googleauth
|