middleman-google_drive 0.3.10 → 0.3.11
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/README.md +10 -0
- data/lib/middleman-google_drive/extension.rb +1 -1
- data/lib/middleman-google_drive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b512713a14e06f68271b52c6fe1c11e6eca89b9c
|
|
4
|
+
data.tar.gz: 9af40d8650d3fe359616058da7d9bf97639330ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22837eedbd792f072eb3bfb037dbd77d2679a1f7f4eec23ad4bfb9f69d24f616dad5dc7d47cae6a10ba6d4ef0278d226abcf9bc27047d4f0c48f7d40f605d4e3
|
|
7
|
+
data.tar.gz: a7fc0a8df2259af78ee3271879225c97f72defc567229d12d199c313df287aed6724a5b449e29405139d6abece1aec35c7e480f45b1e1b52b6260ef8046d214b
|
data/README.md
CHANGED
|
@@ -102,6 +102,16 @@ The HTML version of a Google doc will be a complete HTML document that includes
|
|
|
102
102
|
`<html>`, `<head>` and `<body>` tags. You'll probably wanna use the sanitize gem
|
|
103
103
|
to clean things up.
|
|
104
104
|
|
|
105
|
+
You can then access your document in your templates thusly:
|
|
106
|
+
|
|
107
|
+
```erb
|
|
108
|
+
<article>
|
|
109
|
+
<%=data.first_article %>
|
|
110
|
+
</article>
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
If you are loading ArchieML, the data will come in the form of a hash. Both text and html come as strings.
|
|
114
|
+
|
|
105
115
|
## Setup
|
|
106
116
|
|
|
107
117
|
The first time you use this extension, you will have to configure the authentication
|
|
@@ -43,12 +43,12 @@ module Middleman
|
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
def load_doc(key, type)
|
|
46
|
+
filename = data_path("#{key}.#{type}")
|
|
46
47
|
doc = @drive.find(key)
|
|
47
48
|
puts <<-MSG
|
|
48
49
|
== Loading data from Google Doc "#{doc['title']}"
|
|
49
50
|
== #{doc['alternateLink']}
|
|
50
51
|
MSG
|
|
51
|
-
filename = data_path("#{key}.#{type}")
|
|
52
52
|
|
|
53
53
|
case type.to_sym
|
|
54
54
|
when :xlsx
|
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.
|
|
4
|
+
version: 0.3.11
|
|
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-
|
|
12
|
+
date: 2015-06-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: middleman-core
|