Browse code

Aligns naming of .pygments-cache, .gist-cache and .sass-cache

Frederic Hemberger authored on 18/09/2011 at 11:45:25
Showing 4 changed files
... ...
@@ -1,8 +1,8 @@
1 1
 .bundle
2 2
 .DS_Store
3 3
 .sass-cache
4
-_gist_cache
5
-_code_cache
4
+.gist-cache
5
+.pygments-cache
6 6
 _deploy
7 7
 public
8 8
 sass.old
... ...
@@ -156,9 +156,9 @@ task :integrate do
156 156
   FileUtils.mv Dir.glob("#{source_dir}/#{stash_dir}/*.*"), "#{source_dir}/#{posts_dir}/"
157 157
 end
158 158
 
159
-desc "Clean out caches: _code_cache, _gist_cache, .sass-cache"
159
+desc "Clean out caches: .pygments-cache, .gist-cache, .sass-cache"
160 160
 task :clean do
161
-  rm_rf ["_code_cache/**", "_gist_cache/**", ".sass-cache/**", "source/stylesheets/screen.css"]
161
+  rm_rf [".pygments-cache/**", ".gist-cache/**", ".sass-cache/**", "source/stylesheets/screen.css"]
162 162
 end
163 163
 
164 164
 desc "Move sass to sass.old, install sass theme updates, replace sass/custom with sass.old/custom"
... ...
@@ -16,7 +16,7 @@ module Jekyll
16 16
       super
17 17
       @text           = text
18 18
       @cache_disabled = false
19
-      @cache_folder   = File.expand_path "../_gist_cache", File.dirname(__FILE__)
19
+      @cache_folder   = File.expand_path "../.gist-cache", File.dirname(__FILE__)
20 20
       FileUtils.mkdir_p @cache_folder
21 21
     end
22 22
 
... ...
@@ -2,7 +2,7 @@ require 'pygments'
2 2
 require 'fileutils'
3 3
 require 'digest/md5'
4 4
 
5
-PYGMENTS_CACHE_DIR = File.expand_path('../../_code_cache', __FILE__)
5
+PYGMENTS_CACHE_DIR = File.expand_path('../../.pygments-cache', __FILE__)
6 6
 FileUtils.mkdir_p(PYGMENTS_CACHE_DIR)
7 7
 
8 8
 module HighlightCode