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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcfcfd2991df611613ab7fba05af720191804cb5
4
- data.tar.gz: 882cdf44b122b9f2276607adda5373553da938a1
3
+ metadata.gz: 7d80c0b1142b48124e592caf0e0d29e9092f7c1b
4
+ data.tar.gz: 6310dd3e13f6b4b57841f81f07a4a6caaa0c6c1f
5
5
  SHA512:
6
- metadata.gz: f4d464fcc9c7d49093ef55b822acead2ea214e562cf6c152aa61d073edb5fc1b157297f0fe5c041e48a09fad2668419825506c84b28dfbbe0e5659f612645b91
7
- data.tar.gz: bb04339b4e9df5137e6b4d4158f7e2722643e7dc1ef1f57a507b215420ba1096b3b2afb044ea0e88ea528b3ad2d95bb154e7799913c26c6124b18eb02ceeb131
6
+ metadata.gz: a01c1f19a3dfe5def68090ec605c6e1f17940d20f4852b04e42034dbd173c9a5dc8f51d699961fc88949ee5631b18c5e55344181440bd6cdf19287fe0bea0af7
7
+ data.tar.gz: 1fd1ebf51ef55073d05667506d24f66a10d2396e10b0ceba2673691563ab412c3c579eb43372bb26d8b6ed0c064fc2eb2775e87bb3dfc479593cc201e3c742f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.6 - 2015-05-29
4
+ - Fix: Find enumerators on non-existent directories threw errors.
5
+
3
6
  ## 4.2.5 - 2015-05-29
4
7
  - Fix: Code cache doesn't attempt cleanup if there is no cache.
5
8
 
@@ -38,15 +38,17 @@ module Octopress
38
38
  end
39
39
 
40
40
  def clean
41
- remove = []
41
+ if File.exist?(CODE_CACHE_DIR)
42
+ remove = []
42
43
 
43
- Find.find(CODE_CACHE_DIR).each do |file|
44
- remove << file unless @cached_files.include?(file) || File.directory?(file)
45
- end
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
- @cached_files = []
48
+ @cached_files = []
48
49
 
49
- FileUtils.rm remove
50
+ FileUtils.rm remove
51
+ end
50
52
  end
51
53
  end
52
54
  end
@@ -1,6 +1,6 @@
1
1
  module Octopress
2
2
  module CodeHighlighter
3
- VERSION = "4.2.5"
3
+ VERSION = "4.2.6"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-code-highlighter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.5
4
+ version: 4.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis