middleman-google_drive 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_drive.rb +2 -2
- data/lib/middleman-google_drive/version.rb +1 -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: b1444f49e8dd2e69181f1f42e01a783bd9226337
|
4
|
+
data.tar.gz: 5b43bfe69f682548aec934b385c2c5b1d1e4ff1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5de759a9721c14e20fec1fc4350ad79fac369d1c74cf783eb6c5875f7b607895f2723cadf4ccc25b2614db79813f815f3f98e497350cb2aba9a40f9a0b73ec4c
|
7
|
+
data.tar.gz: e71caa750dc0b8b3df218fbed18f4784258a427e29711bb390be000d20c6a26639ea4629639e5a2c776e7bee0fd4e01d40f37d0b30ab92b7115abe91f0a5716f
|
data/lib/google_drive.rb
CHANGED
@@ -205,12 +205,12 @@ Please login via your web browser. We opened the tab for you...
|
|
205
205
|
|
206
206
|
# Returns true if we're using a private key to autheticate (like on a server).
|
207
207
|
def server?
|
208
|
-
|
208
|
+
!local?
|
209
209
|
end
|
210
210
|
|
211
211
|
# Returns true if we're using local oauth2 (like on your computer).
|
212
212
|
def local?
|
213
|
-
@
|
213
|
+
@key.nil?
|
214
214
|
end
|
215
215
|
|
216
216
|
class GoogleDriveError < StandardError; end
|