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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c270c9613c9786889867c2f5e2181a96552f8f84
4
- data.tar.gz: e03c80eaecd186d9fd239e491ff6eebf6f2bf3ec
3
+ metadata.gz: b1444f49e8dd2e69181f1f42e01a783bd9226337
4
+ data.tar.gz: 5b43bfe69f682548aec934b385c2c5b1d1e4ff1c
5
5
  SHA512:
6
- metadata.gz: 076797830737c62c200b0b6fa10c724611b6ad7a64c5b6ecdd5e4f50c909f7b0036324b8ffdeb5d7f76f94d95f4959449276c557d9cdbd93046b8660f4d7e1d6
7
- data.tar.gz: c1cbf78b8fdc84afc68ed748ce57d880a82cbfb89bec5156188210160f462807d49bb7f14de87c8f4610aecb0bfe3977f20a738da180c43877fe84d812a5e4ab
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
- @key_path.nil?
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
- @private_key.nil?
213
+ @key.nil?
214
214
  end
215
215
 
216
216
  class GoogleDriveError < StandardError; end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module GoogleDrive
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-google_drive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mark