jekyll-gdrive 0.3.0 → 0.4.0

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: 208531d9b84e92237cd3af0bc03826e17e6b088f
4
- data.tar.gz: ecd4d899db376f71c7a6ff418504ef1728d2c9c8
3
+ metadata.gz: d67215312990f079567deca1f287b6737193dcf8
4
+ data.tar.gz: 0d0faaeac5cb5aa37dc4701bddc5e32ee13d28e7
5
5
  SHA512:
6
- metadata.gz: 2070cc9782ace522aac70935e49402128c035c66e05551efaa97a0d0b1ce86044e652f15e8a5bc063c3288557cbf4ddf8b0ce6340640c17987f9ad6cf9d5fc54
7
- data.tar.gz: 329a2314635d1de54c54d8e0166f08fa83eda7d1ab15d6e809ccb648da0dd253d1a54ab48688fa837e9d7b2fb81fb8845d561e591758004fb0ba3215e52a9e1e
6
+ metadata.gz: 6f8dc0bba768a7998792e755d3fe5be5b2984072b70de3f2c3aaddca599846718a90d413b265aa39cbb9335c308b6d9614490ac5b43868120721d649f3be5f94
7
+ data.tar.gz: a29ad5b408db41fe23c571ce34d5036993b276e06b7f4fbfb2a1e450af66f7f3f1d8b7e0bf5a37ead2979a6a64c0d24b64c8d076ad56c0cad5079879c560b56b
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_development_dependency "rake", "~> 10.0"
23
23
 
24
- spec.add_runtime_dependency "google_drive"
24
+ spec.add_runtime_dependency "google_drive", "~> 1.0"
25
25
  spec.add_runtime_dependency "highline"
26
26
  end
@@ -20,7 +20,9 @@ module Jekyll
20
20
  puts "Create a new project with Google's Developer Platform:"
21
21
  puts "https://console.developers.google.com/project"
22
22
  puts
23
- puts "Go to the project, select APIs & Auth > Credentials from left menu"
23
+ puts "Go to the project, select APIs & Auth > APIs from left menu"
24
+ puts "Pick the 'Drive API' and make sure it's enabled."
25
+ puts "Then select APIs & Auth > Credentials from left menu"
24
26
  puts "Create new OAuth Client ID"
25
27
  puts "Pick 'Installed Application' and fill out information"
26
28
 
@@ -28,30 +30,29 @@ module Jekyll
28
30
  auth = client.authorization
29
31
  auth.client_id = ask "Enter your Google Drive API Client ID: "
30
32
  auth.client_secret = ask "Enter your Google Drive API Client Secret: "
31
- auth.scope =
33
+ auth.scope =
32
34
  "https://www.googleapis.com/auth/drive " +
33
35
  "https://docs.google.com/feeds/ " +
34
36
  "https://docs.googleusercontent.com/ " +
35
37
  "https://spreadsheets.google.com/feeds/"
36
-
38
+
37
39
  auth.redirect_uri = "urn:ietf:wg:oauth:2.0:oob"
38
40
 
39
41
  unless system("open '#{auth.authorization_uri}'")
40
42
  puts "Open this page in your browser:"
41
43
  puts auth.authorization_uri
42
- puts
44
+ puts
43
45
  end
44
- auth.code = ask "Enter he authorization code shown in the page: "
46
+ auth.code = ask "Enter the authorization code shown in the page: "
45
47
  auth.fetch_access_token!
46
48
 
47
49
  puts "OAuth credentials generated"
48
50
  puts "To access Google Drive data from your Jekyll site"
49
51
  puts "Set a GDRIVE environment variable"
50
- puts
52
+ puts
51
53
  puts "export GDRIVE=#{auth.client_id}:#{auth.client_secret}:#{auth.refresh_token}"
52
54
  end
53
55
  end
54
56
  end
55
57
  end
56
58
  end
57
-
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module Gdrive
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-gdrive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Biilmann Christensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-13 00:00:00.000000000 Z
11
+ date: 2015-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -42,16 +42,16 @@ dependencies:
42
42
  name: google_drive
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '1.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: highline
57
57
  requirement: !ruby/object:Gem::Requirement