octopress-hooks 2.4.0 → 2.4.1

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: 897a94043175acc88720a482f9d7a66c8d04949a
4
- data.tar.gz: a6a4aac535cb14c7eeabbdc6f27c6a4c00e09b3c
3
+ metadata.gz: dd69c98bc8337275d5b72a08567470fd2ca44ec2
4
+ data.tar.gz: 5feead0c6d8d1e7be2fbef7e05146bf9e66936e6
5
5
  SHA512:
6
- metadata.gz: b100527547ec43794f052775b04a66fae671ad642f152f57e2f4562ba8ed79cf9c3b7382a799fa4bf10757a25a2f096cb80ae6de3991852320f98adffd572bdd
7
- data.tar.gz: ed07cf819b9901754e151bba0edfd2bada8be13a5311c6491b05c4cbb218b8b49e37b3f203a57c6954576003e3b0b485676ff1e097b892901f3f0c16602213aa
6
+ metadata.gz: 46edce7df9ba106fd554da4da903ce0e876f3badb6eee0477775dfa17fda127c0c2d8499d36920ea9e3665dc76569be9dc9ad7341d86d1a2a8ff30d105711cdf
7
+ data.tar.gz: 768660aec8ebb54a39df0d0ad9fd60ed2c088c9ea0652e922e39be2d37905690fc5215603a06ad8b1f02b47883a8e8f0b7c6eba1b40f6ff0ba6c127461ef0f1d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.4.1 - 2015-01-30
4
+ - Fix: Collection rendering issues for no-output collection items.
5
+
3
6
  ### 2.4.0 - 2015-01-30
4
7
  - New: Pages, Posts, and Documents now have a `merge_payload` method which lets you modify the payload for each page before render.
5
8
 
@@ -270,15 +270,19 @@ module Jekyll
270
270
 
271
271
  class Renderer
272
272
  alias_method :old_render_liquid, :render_liquid
273
+ alias_method :old_run, :run
273
274
  attr_accessor :output
274
275
 
275
- def render_liquid(content, payload, info, path = nil)
276
+ def run
276
277
  document.pre_render if document.respond_to?(:pre_render) && document.hooks
278
+ old_run
279
+ end
277
280
 
281
+ def render_liquid(content, payload, info, path = nil)
278
282
  if document.respond_to?(:merge_payload) && document.hooks
279
- old_render_liquid(document.content, document.merge_payload(payload.dup), info)
283
+ old_render_liquid(content, document.merge_payload(payload.dup), info)
280
284
  else
281
- old_render_liquid(document.content, payload, info)
285
+ old_render_liquid(content, payload, info)
282
286
  end
283
287
  end
284
288
  end
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Hooks
3
- VERSION = "2.4.0"
3
+ VERSION = "2.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis