octopress-ink 1.0.0.rc.33 → 1.0.0.rc.34
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 507b7918d8e83fb3b1a1e3adf4920c28b5c34319
|
4
|
+
data.tar.gz: 7b23080814371a42bbd77fdb8ef4de075b5b910a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0109231592b6314e714b2a11b941db77e923495d004ef7251ee30b10aee029c9b1fc1e56720b5191eff0ab5e7c250f64f4cdb113318644f177e7c37f6dcddbf7
|
7
|
+
data.tar.gz: 4783a5ce27fee75dce86c6da535928a1db72282148b496e055f9b130d7d8c76d9c77b70432dc7853059925ff5c8aed4ef03bd29bc5ce18a43e690189fdc1c6f4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 1.0.0 RC34 - 2015-01-28
|
4
|
+
|
5
|
+
- Fix: Don't attempt to remove cached assets if they don't exist.
|
6
|
+
|
3
7
|
### 1.0.0 RC33 - 2015-01-28
|
4
8
|
|
5
9
|
- Fix: Doesn't assume site plugin path is in site source directory. Thanks [@drallgood](https://github.com/octopress/feeds/issues/10)!
|
@@ -55,7 +55,7 @@ module Octopress
|
|
55
55
|
if files.empty?
|
56
56
|
raise IOError.new "Could not find #{File.basename(file)} at #{file}"
|
57
57
|
end
|
58
|
-
@found_file =
|
58
|
+
@found_file = files[0]
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
@@ -64,7 +64,7 @@ module Octopress
|
|
64
64
|
end
|
65
65
|
|
66
66
|
def read
|
67
|
-
|
67
|
+
File.read(path)
|
68
68
|
end
|
69
69
|
|
70
70
|
def add
|
data/lib/octopress-ink/cache.rb
CHANGED
@@ -30,11 +30,13 @@ module Octopress
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def clean
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
if File.directory?(INK_CACHE_DIR)
|
34
|
+
remove = Find.find(INK_CACHE_DIR).to_a.reject do |file|
|
35
|
+
@cache_files.include?(file) || File.directory?(file)
|
36
|
+
end
|
36
37
|
|
37
|
-
|
38
|
+
FileUtils.rm(remove)
|
39
|
+
end
|
38
40
|
end
|
39
41
|
end
|
40
42
|
end
|
@@ -171,7 +171,7 @@ module Octopress
|
|
171
171
|
end
|
172
172
|
|
173
173
|
def self.compress_js?(file)
|
174
|
-
Ink.configuration['asset_pipeline']['compress_js'] && !file.
|
174
|
+
Ink.configuration['asset_pipeline']['compress_js'] && !file.path.end_with?('.min.js')
|
175
175
|
end
|
176
176
|
|
177
177
|
def self.write_files(source, dest)
|