middleman-google_drive 0.3.6 → 0.3.7

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: 94b12d2610b0d417caba3a839f54a5615dacf67f
4
- data.tar.gz: 3019fca34183fc0040ecf3b7b852c29ecfa7a641
3
+ metadata.gz: e6e32b879616fad6395114d05253258a05443e0d
4
+ data.tar.gz: 9982c8cb4a69d3738ebab577c7ae949d54871a7a
5
5
  SHA512:
6
- metadata.gz: 0195fe3da1c9b9b2b7e5ab85b7d5129176a9aea0149aef13ab9b0c034cd49ca554e1938a799c5d5249f861217d3a9ca5ea3fdde8e97a1df369a159df7057bae2
7
- data.tar.gz: f44e37fc95891b96b6d6950ba113acb948817ea7e746107a0d4d2ee82ae964053fa9d142d50ab74527e24aa6e47cfecb5d512d5de0ee9bdbab0bacf1301fafbd
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
- Dir.mkdir(File.join(@app.root, 'google_drive_cache'))
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(@app.root, 'google_drive_cache', basename)
118
+ File.join(@cache_dir, basename)
117
119
  end
118
120
 
119
121
  def store_data(key, data)
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module GoogleDrive
3
- VERSION = '0.3.6'
3
+ VERSION = '0.3.7'
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.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mark