jekyll-gdrive 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/jekyll-gdrive.gemspec +1 -1
- data/lib/jekyll/commands/gdrive.rb +8 -7
- data/lib/jekyll/gdrive/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d67215312990f079567deca1f287b6737193dcf8
|
|
4
|
+
data.tar.gz: 0d0faaeac5cb5aa37dc4701bddc5e32ee13d28e7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f8dc0bba768a7998792e755d3fe5be5b2984072b70de3f2c3aaddca599846718a90d413b265aa39cbb9335c308b6d9614490ac5b43868120721d649f3be5f94
|
|
7
|
+
data.tar.gz: a29ad5b408db41fe23c571ce34d5036993b276e06b7f4fbfb2a1e450af66f7f3f1d8b7e0bf5a37ead2979a6a64c0d24b64c8d076ad56c0cad5079879c560b56b
|
data/jekyll-gdrive.gemspec
CHANGED
|
@@ -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 >
|
|
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
|
|
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
|
-
|
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.
|
|
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:
|
|
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
|