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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1845b945c95d2fc54760cb43c6ea77f61dc6f430
4
- data.tar.gz: 80ad96521c2db97b728b6d13e80e73fb2f8bd48f
3
+ metadata.gz: a4415c898ae72423c07d0b171d2a456f50fe55a4
4
+ data.tar.gz: 7f5c99bdea785555d3ef710b4bc270e6bebbb08e
5
5
  SHA512:
6
- metadata.gz: 2432051b8d1d3c60ca3028cd9394dfeace0ba1d23f27e21ee0d0c7e1660eadb081ccb1bc8456decc91256efb5bd6f1c7c7f9a7541caa3ef9a76bbd4192795316
7
- data.tar.gz: 8fd95205562b8a8d4976009cfaa45fdffa48ac5ec3a249a20b87c7c2b70955a42b77e4d07ba4c94956a4ef13bdff908e1933a80ad57eae8db10699b6f34252a9
6
+ metadata.gz: 7ac8b877dcfe57f74481dc5ecfb551cde10d2d0eba353ccb35f749fc5ef205d5e0de6a0c599b824001b94218f27d693dd04de20f364360bd8343385e9e391228
7
+ data.tar.gz: ec11834eb99a8168c740c85b2fe8320d01f845ef7245fc9fa50619d0819b51707ad453942ee7c79ec733c05db8610b305ee2bb36abb609d2d2c27f9ea8c6d2c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.3.2 - 2015-01-07
4
+ - Now hooks are registered after Jekyll Site resets.
5
+
3
6
  ### 2.3.1 - 2015-01-05
4
7
  - Removed development logging (how embarrassing)
5
8
 
@@ -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 read
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
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Hooks
3
- VERSION = "2.3.1"
3
+ VERSION = "2.3.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.3.1
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-06 00:00:00.000000000 Z
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll