octopress-hooks 2.2.0 → 2.2.1
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 +1 -9
- 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: d2d2e99d52e6404f85bd95a4a78f31b5c80905fe
|
4
|
+
data.tar.gz: 5278f145c66e15dfe5c0a473772e9bb222c63798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cc014e4c906096f369aaceb0173824aa4479285275e281a65df4e4c209a4bd354b11a833f2bcaa8b108129bf99b044d3a31e243725f8a1f12aff8f92fa90163
|
7
|
+
data.tar.gz: 45e272c880e17d8e48e9b5fb9f1a013f21fbc741e6a8c49683c3304d03a4c0365c6eaa77e0c7c8037c96f4b55a6afb5119bc04f352de88846037a7334eb506fe
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-hooks.rb
CHANGED
@@ -211,15 +211,6 @@ module Jekyll
|
|
211
211
|
alias_method :old_do_layout, :do_layout
|
212
212
|
alias_method :old_write, :write
|
213
213
|
|
214
|
-
# Transform the contents based on the content type. Then calls the
|
215
|
-
# #post_render method if it exists
|
216
|
-
#
|
217
|
-
# Returns nothing.
|
218
|
-
def transform
|
219
|
-
old_transform
|
220
|
-
post_render if respond_to?(:post_render) && self.hooks
|
221
|
-
end
|
222
|
-
|
223
214
|
# Calls the pre_render method if it exists and then adds any necessary
|
224
215
|
# layouts to this convertible document.
|
225
216
|
#
|
@@ -230,6 +221,7 @@ module Jekyll
|
|
230
221
|
def do_layout(payload, layouts)
|
231
222
|
pre_render if respond_to?(:pre_render) && self.hooks
|
232
223
|
old_do_layout(payload, layouts)
|
224
|
+
post_render if respond_to?(:post_render) && self.hooks
|
233
225
|
end
|
234
226
|
|
235
227
|
# Write the generated post file to the destination directory. It
|
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.2.
|
4
|
+
version: 2.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|