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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 210d0a32f405752ec435f03512409b3da3497c4e
4
- data.tar.gz: 2b39ff3f1f5b3dca71a78cef6bb2cea5a9a30207
3
+ metadata.gz: b512713a14e06f68271b52c6fe1c11e6eca89b9c
4
+ data.tar.gz: 9af40d8650d3fe359616058da7d9bf97639330ea
5
5
  SHA512:
6
- metadata.gz: 06732016e778d11a4be353609b7bbcfa0e78e3be9c1308e428d86ad3e156d8ff7aac62f0bbaf78482ba9d89c5aa415855a0f5f707c7d17d7cdb77cbab1eb5540
7
- data.tar.gz: 1487b0e756a0aa36bdbf91fe252061dd94e7945c3dbd30403501d508a47ad9f20450acf2a8e9a415f15a8ffcea9d82df4432b08e11bf7e6cfcdf2ac41d92c842
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
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module GoogleDrive
3
- VERSION = '0.3.10'
3
+ VERSION = '0.3.11'
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.10
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-04-14 00:00:00.000000000 Z
12
+ date: 2015-06-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core