middleman-google_drive 0.3.6 → 0.3.7
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/lib/middleman-google_drive/extension.rb +4 -2
- data/lib/middleman-google_drive/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6e32b879616fad6395114d05253258a05443e0d
|
4
|
+
data.tar.gz: 9982c8cb4a69d3738ebab577c7ae949d54871a7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a7af3d97a59131704011cb05b54b1622a62689be0c19d1c08acb05e231bcbf52437290dea3efc62f0ef8238690db5d43a504931fe6b38442e8832556f3d76d
|
7
|
+
data.tar.gz: caa621486afd2db102bb59b6dc52b239430b558761c30b3ab333e4ad8ffcfc487ffffff05dead27f8b7a168afc9c492ecc50f688957b3e4e58186434e808a818
|
@@ -18,7 +18,9 @@ module Middleman
|
|
18
18
|
|
19
19
|
@app = klass.inst
|
20
20
|
|
21
|
-
|
21
|
+
@cache_dir = File.join(@app.root, 'google_drive_cache')
|
22
|
+
|
23
|
+
Dir.mkdir(@cache_dir) unless Dir.exist?(@cache_dir)
|
22
24
|
|
23
25
|
handle_option(options.load_sheets, :xlsx)
|
24
26
|
handle_option(options.load_docs, :txt)
|
@@ -113,7 +115,7 @@ Things to check:
|
|
113
115
|
end
|
114
116
|
|
115
117
|
def data_path(basename)
|
116
|
-
File.join(@
|
118
|
+
File.join(@cache_dir, basename)
|
117
119
|
end
|
118
120
|
|
119
121
|
def store_data(key, data)
|