octopress-ink 1.0.0.rc.33 → 1.0.0.rc.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49935f281c619ea34057f2b4eea60512a8d8062a
4
- data.tar.gz: e780dfe3bcecb73fb38b9fc4ca7aa44f946ea26c
3
+ metadata.gz: 507b7918d8e83fb3b1a1e3adf4920c28b5c34319
4
+ data.tar.gz: 7b23080814371a42bbd77fdb8ef4de075b5b910a
5
5
  SHA512:
6
- metadata.gz: 4cc25011f558aaeffb54cb55144d527be812fcc5478e6c3c797f13fbc930d45b978e919fd23f077222d874a0fc0deb2c6396c34dd9bd9dc300e25964384243f3
7
- data.tar.gz: b76a45423d4d786ec4fb7aeaa959b06f5de383c7d69fc231542b803d8259f8af6a075a083570455e9e7e4d4488539b9be45e03767c35fe47979a3541f534464d
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 = Pathname.new files[0]
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
- path.read
67
+ File.read(path)
68
68
  end
69
69
 
70
70
  def add
@@ -23,7 +23,7 @@ module Octopress
23
23
  end
24
24
 
25
25
  def ext
26
- path.extname
26
+ File.extname(path)
27
27
  end
28
28
 
29
29
  def load_paths
@@ -30,11 +30,13 @@ module Octopress
30
30
  end
31
31
 
32
32
  def clean
33
- remove = Find.find(INK_CACHE_DIR).to_a.reject do |file|
34
- @cache_files.include?(file) || File.directory?(file)
35
- end
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
- FileUtils.rm remove
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.file.end_with?('.min.js')
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)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Ink
3
- VERSION = "1.0.0.rc.33"
3
+ VERSION = "1.0.0.rc.34"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-ink
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc.33
4
+ version: 1.0.0.rc.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis