middleman-google_drive 0.2.6 → 0.2.7

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: f13c1b46ff68296d88f01a18b25913f062b8e38f
4
- data.tar.gz: 345cb6d95d9b28e7f47dbbd959727e2982f9ed8b
3
+ metadata.gz: 9dc8b914f8ecfa175eeebbbf9f523994f377bea2
4
+ data.tar.gz: a7cf3b8776134a09304e05e96d38a76c11435d49
5
5
  SHA512:
6
- metadata.gz: 31663d8dc720cedc1e74906f4b22a3ea0b4a22cc75f75ae4a4e324d214d20fc1f874b961f1a74343e18ac941edbbac8b274f0db99aedb2b01e91bb2e3210d400
7
- data.tar.gz: 5ed8d6ad255bbea57ad5373ee610198b57c3e9e1a836e1ecf7c86b7199a4418898b7cf6611002d13afb9e95402799982220eb66774b4e3824ba37d84e98743af
6
+ metadata.gz: ebf0e3d4784bdd27b29ad834e4fb188d6f25165c88b36eaf31b6bfbc7d085bbb570e5224110ea4b8d8086b0b1fb85ab371938e2cd3438c262ef912566032d4e1
7
+ data.tar.gz: 127a4748dc58952a4edf74862593eaf49b127aae41ac03f399684cd2e22871bb17601ecc96945cb910daefac83e248e8177733706f116b37afc3a3a8c1dcfa75
data/lib/google_drive.rb CHANGED
@@ -206,12 +206,12 @@ Please login via your web browser. We opened the tab for you...
206
206
 
207
207
  # Returns true if we're using a private key to autheticate (like on a server).
208
208
  def server?
209
- ! @key.nil?
209
+ @key_path.nil?
210
210
  end
211
211
 
212
212
  # Returns true if we're using local oauth2 (like on your computer).
213
213
  def local?
214
- @key.nil?
214
+ @private_key.nil?
215
215
  end
216
216
 
217
217
  class GoogleDriveError < StandardError; end
@@ -13,7 +13,6 @@ module Middleman
13
13
  @drive = ::GoogleDrive.new
14
14
 
15
15
  app = klass.inst
16
- app.set :drive, @drive # so you can access the drive api directly
17
16
  if options.load_sheets.is_a? Hash
18
17
  options.load_sheets.each do |name, key|
19
18
  app.data.store(name, load_doc(key.to_s))
@@ -51,7 +50,6 @@ Google said "#{exc.message}." It might be a lie.
51
50
  @drive.clear_auth
52
51
  end
53
52
  end
54
-
55
53
  end
56
54
  end
57
55
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module GoogleDrive
3
- VERSION = '0.2.6'
3
+ VERSION = '0.2.7'
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency 'middleman-core', '~> 3'
23
23
  spec.add_runtime_dependency 'retriable', '~> 1.4'
24
24
  spec.add_runtime_dependency 'google-api-client', '< 0.8'
25
- spec.add_runtime_dependency 'roo', '~> 1.13.2'
25
+ spec.add_runtime_dependency 'spreadsheet'
26
26
  spec.add_development_dependency 'bundler', '~> 1.6'
27
27
  spec.add_development_dependency 'rake'
28
28
  spec.add_development_dependency 'minitest'
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.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mark
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-02-05 00:00:00.000000000 Z
12
+ date: 2015-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core
@@ -54,19 +54,19 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0.8'
56
56
  - !ruby/object:Gem::Dependency
57
- name: roo
57
+ name: spreadsheet
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 1.13.2
62
+ version: '0'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - "~>"
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 1.13.2
69
+ version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: bundler
72
72
  requirement: !ruby/object:Gem::Requirement