googledrive-easy 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/googledrive-easy.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 980d20ae39d421ac858a8ccceabd2d6d7ba95ea9e8e0181ffbf96d068d217b99
4
- data.tar.gz: 1593952ec9b4d4a4746a95039816eee6cd6cbda6c86757fbeea28688caf84423
3
+ metadata.gz: 51e1f97fea32cd6c6a79139ee346ea800e72118a838bd251bd880a5021fb25cf
4
+ data.tar.gz: 682a6aa41494fc95c9505af855ff03091cea00bd91ba359bac73d6598a8d53ac
5
5
  SHA512:
6
- metadata.gz: 0d2b9e15ea96f2a7eecd9c510463ce4dc5628515aec068c06cc6360260bbb030fe636bfc11f8202f5bf69a9abf48c71d7d705235675c4b5d720f101c0a9b501d
7
- data.tar.gz: 682e5cf1e0e3ca41518ea3ef55c1b47351519bf1132999418950ea2689c71b8fdf8947b0f0b691456d8fef17e26c332de0a17749f5e4bacb7d6fd7b4fffc5717
6
+ metadata.gz: eedd2bc6b9d08d3f3a65c20ca49392363f985d4477e561f11bce8792ba621b58e02ff20efeb510446d0ea7f19a9469ca9876b6408c3eca1949615504057ddfed
7
+ data.tar.gz: cefb219271d283b419e38264e584f85c4f298a3c318531765203deba6afce49c06c072e61c40da941832e0e9bbfe3b7d1ae39c5b8bef260f74ca0c3e1c1768c9
@@ -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 '#{part}*')"
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 = '#{part}')"
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 (name contains '#{part}')" if part.size > 0
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bullock