octopress-hooks 2.3.1 → 2.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/octopress-hooks.rb +5 -2
- data/lib/octopress-hooks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4415c898ae72423c07d0b171d2a456f50fe55a4
|
4
|
+
data.tar.gz: 7f5c99bdea785555d3ef710b4bc270e6bebbb08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ac8b877dcfe57f74481dc5ecfb551cde10d2d0eba353ccb35f749fc5ef205d5e0de6a0c599b824001b94218f27d693dd04de20f364360bd8343385e9e391228
|
7
|
+
data.tar.gz: ec11834eb99a8168c740c85b2fe8320d01f845ef7245fc9fa50619d0819b51707ad453942ee7c79ec733c05db8610b305ee2bb36abb609d2d2c27f9ea8c6d2c9
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-hooks.rb
CHANGED
@@ -117,7 +117,7 @@ module Jekyll
|
|
117
117
|
self.all_hooks = instantiate_subclasses(Octopress::Hooks::All) || []
|
118
118
|
end
|
119
119
|
|
120
|
-
|
120
|
+
alias_method :old_reset, :reset
|
121
121
|
alias_method :old_site_payload, :site_payload
|
122
122
|
alias_method :old_render, :render
|
123
123
|
alias_method :old_write, :write
|
@@ -126,9 +126,12 @@ module Jekyll
|
|
126
126
|
# Load hooks before read to ensure that Post and Page hooks
|
127
127
|
# can be triggered during initialization
|
128
128
|
#
|
129
|
-
def
|
129
|
+
def reset
|
130
|
+
old_reset
|
130
131
|
load_hooks
|
132
|
+
end
|
131
133
|
|
134
|
+
def read
|
132
135
|
site_hooks.each do |hook|
|
133
136
|
hook.pre_read(self)
|
134
137
|
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.3.
|
4
|
+
version: 2.3.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-01-
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|