octopress-hooks 2.6.1 → 2.6.2

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: 0a7bd02f7bcccb3cadc3c9201af1ccfa0bf540a7
4
- data.tar.gz: 81da544cca143909e058d36b79bcc80e37814ff4
3
+ metadata.gz: c8066e33857d745844c4a87f440a35aa6f06da30
4
+ data.tar.gz: 9cd7845894de6acbee11c7bee52a23590efb64b1
5
5
  SHA512:
6
- metadata.gz: 4f11eb5c86477699ec30dff484b23996f6bcf4dc2aeb0c3bd72a263997bed0add7bfd9129edb8867ce16bf49a2e2d54ef60c5f3aaf59f9ddced210c1debe6ded
7
- data.tar.gz: d5983e183de539031a3ae4241d696e030f01db315bda3ef377f7289547c0340ed3e0dc350b82b6689f22e6de090e2de177928bb9c402fd509e6f8b645a10cde6
6
+ metadata.gz: 7235cc43d05f07c8ee5f67ffc51797a37dae7fe8de8234a4a11344eab0343dafa0a7806caa581b0355b61cb804c27d2ddaa5491318621319f12cb8feadf15805
7
+ data.tar.gz: a09eb51b90b1b4771a80bf0f0c84e358d27347a68c3ac6d23296b168d3c67217c84631307d90541cc97d37656acf59de1b2ef3bb58aaab8128e19112d0d10f19
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.6.2 - 2016-09-15
4
+ - Bug: Properly pass the path to the Liquid render function.
5
+
3
6
  ### 2.6.1 - 2015-05-11
4
7
  - Minor: Loosened Gemspec dependency version to allow Jekyll 3.0
5
8
 
@@ -7,7 +10,7 @@
7
10
  - New: Site `reset` hook helps you reset variables before successive builds.
8
11
 
9
12
  ### 2.5.0 - 2015-02-16
10
- - New: `deep_merge_payload` hook allows Posts, Pages, and Documents to have control over the way the payload is merged. (Expert level)
13
+ - New: `deep_merge_payload` hook allows Posts, Pages, and Documents to have control over the way the payload is merged. (Expert level)
11
14
 
12
15
  ### 2.4.1 - 2015-01-30
13
16
  - Fix: Collection rendering issues for no-output collection items.
@@ -1,7 +1,7 @@
1
1
  require 'octopress-hooks/version'
2
2
  require 'jekyll'
3
3
 
4
- module Octopress
4
+ module Octopress
5
5
  module Hooks
6
6
 
7
7
  class Site < Jekyll::Plugin
@@ -26,7 +26,7 @@ module Octopress
26
26
 
27
27
  # Called before Jekyll renders posts and pages
28
28
  # Returns nothing
29
- #
29
+ #
30
30
  def pre_render(site)
31
31
  end
32
32
 
@@ -44,11 +44,11 @@ module Octopress
44
44
  end
45
45
 
46
46
  end
47
-
47
+
48
48
  class Page < Jekyll::Plugin
49
49
 
50
50
  # Called after Page is initialized
51
- # allows you to modify a # page object before it is
51
+ # allows you to modify a # page object before it is
52
52
  # added to the Jekyll pages array
53
53
  #
54
54
  def post_init(page)
@@ -62,7 +62,7 @@ module Octopress
62
62
  end
63
63
 
64
64
  # Called right after pre_render hook. Allows you to
65
- # act on the page's payload data.
65
+ # act on the page's payload data.
66
66
  #
67
67
  # Return: hash to be deep_merged into payload
68
68
  #
@@ -162,7 +162,7 @@ module Jekyll
162
162
  alias_method :old_write, :write
163
163
  alias_method :old_read, :read
164
164
 
165
- # Load hooks before read to ensure that Post and Page hooks
165
+ # Load hooks before read to ensure that Post and Page hooks
166
166
  # can be triggered during initialization
167
167
  #
168
168
  def reset
@@ -218,7 +218,7 @@ module Jekyll
218
218
  # Returns nothing
219
219
  def write
220
220
  old_write
221
-
221
+
222
222
  site_hooks.each do |hook|
223
223
  hook.post_write(self)
224
224
  end
@@ -308,9 +308,9 @@ module Jekyll
308
308
 
309
309
  def render_liquid(content, payload, info, path = nil)
310
310
  if document.respond_to?(:merge_payload) && document.hooks
311
- old_render_liquid(content, document.merge_payload(payload.dup), info)
311
+ old_render_liquid(content, document.merge_payload(payload.dup), info, path)
312
312
  else
313
- old_render_liquid(content, payload, info)
313
+ old_render_liquid(content, payload, info, path)
314
314
  end
315
315
  end
316
316
  end
@@ -374,7 +374,7 @@ module Jekyll
374
374
  hook.post_init(self)
375
375
  end
376
376
  end
377
-
377
+
378
378
  def merge_payload(payload)
379
379
  hooks.each do |hook|
380
380
  p = hook.merge_payload(payload, self)
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Hooks
3
- VERSION = "2.6.1"
3
+ VERSION = "2.6.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-hooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-11 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: pry-byebug
56
+ name: octopress-debugger
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  requirements: []
100
100
  rubyforge_project:
101
- rubygems_version: 2.4.6
101
+ rubygems_version: 2.5.1
102
102
  signing_key:
103
103
  specification_version: 4
104
104
  summary: Allows access to Jekyll's site, posts and pages at different points in the