jekyll-assets 0.5.0 → 0.5.1

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.
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.5.1 (2013-05-13)
2
+
3
+ * Re-use underlying asset file to avoid "recompilation" of fresh assets.
4
+
5
+
1
6
  ### 0.5.0 (2013-05-10)
2
7
 
3
8
  * Fix mocks to pass tests on jekyll 1.x
@@ -9,7 +9,7 @@ module Jekyll
9
9
 
10
10
 
11
11
  def initialize site, asset
12
- @site, @logical_path = site, asset.logical_path
12
+ @site, @asset, @logical_path = site, asset, asset.logical_path
13
13
  end
14
14
 
15
15
 
@@ -28,7 +28,8 @@ module Jekyll
28
28
 
29
29
 
30
30
  def asset
31
- @site.assets[logical_path]
31
+ @asset = @site.assets[logical_path] if @asset.stale? @site.assets
32
+ @asset
32
33
  end
33
34
 
34
35
 
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  module AssetsPlugin
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-10 00:00:00.000000000 Z
12
+ date: 2013-05-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -242,7 +242,7 @@ rubyforge_project:
242
242
  rubygems_version: 1.8.23
243
243
  signing_key:
244
244
  specification_version: 3
245
- summary: jekyll-assets-0.5.0
245
+ summary: jekyll-assets-0.5.1
246
246
  test_files:
247
247
  - spec/fixtures/.gitignore
248
248
  - spec/fixtures/_assets/app.css.erb