octopress-code-highlighter 4.2.5 → 4.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-code-highlighter/cache.rb +8 -6
- data/lib/octopress-code-highlighter/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: 7d80c0b1142b48124e592caf0e0d29e9092f7c1b
|
4
|
+
data.tar.gz: 6310dd3e13f6b4b57841f81f07a4a6caaa0c6c1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01c1f19a3dfe5def68090ec605c6e1f17940d20f4852b04e42034dbd173c9a5dc8f51d699961fc88949ee5631b18c5e55344181440bd6cdf19287fe0bea0af7
|
7
|
+
data.tar.gz: 1fd1ebf51ef55073d05667506d24f66a10d2396e10b0ceba2673691563ab412c3c579eb43372bb26d8b6ed0c064fc2eb2775e87bb3dfc479593cc201e3c742f7
|
data/CHANGELOG.md
CHANGED
@@ -38,15 +38,17 @@ module Octopress
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def clean
|
41
|
-
|
41
|
+
if File.exist?(CODE_CACHE_DIR)
|
42
|
+
remove = []
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
|
44
|
+
Find.find(CODE_CACHE_DIR).each do |file|
|
45
|
+
remove << file unless @cached_files.include?(file) || File.directory?(file)
|
46
|
+
end
|
46
47
|
|
47
|
-
|
48
|
+
@cached_files = []
|
48
49
|
|
49
|
-
|
50
|
+
FileUtils.rm remove
|
51
|
+
end
|
50
52
|
end
|
51
53
|
end
|
52
54
|
end
|