octopress-hooks 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{test/.clash.yml → .clash.yml} +0 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/octopress-hooks.rb +11 -3
- data/lib/octopress-hooks/version.rb +1 -1
- data/octopress-hooks.gemspec +1 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48f429f3df0aee048fec3070213eaca62558645e
|
4
|
+
data.tar.gz: 80d7b6e3e940168972469f1b48560a8af3a17712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61899fc929494c83d4a21a12c459b907ec0b3cf3296be73d5971a3f7836ba684efed6d98d67ff152f281786c322178b91437715c4885e0dc31e8e697971dc727
|
7
|
+
data.tar.gz: 77aef582b8d52cec311a8c2814322eda74f50c7ac9bce41ff2b598e9442348ac7f5bcbe662d845c2035835c019593156c9f38ff27dc34025df01466faaa707e9
|
File without changes
|
data/.travis.yml
CHANGED
@@ -2,5 +2,7 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 2.0.0
|
4
4
|
- 1.9.3
|
5
|
-
script:
|
6
|
-
|
5
|
+
script: bundle exec clash test
|
6
|
+
notifications:
|
7
|
+
slack:
|
8
|
+
secure: FZR2kuuJF2PwpzsoSsPgU5r2Uaj9LL611gOt2de9/x1bx2N464DTBVa3nhV8SfNRNOrqR10nvt8CvKqL4iWNdt3OpU8iK7/PTqCIsggJbdfAkqU5WAhsmV7+shYIJxi+kOH+8bockG7c4kY9GMBaJUSe1VgM+BHsykUyrna8ywQ=
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -56,7 +56,7 @@ end
|
|
56
56
|
|
57
57
|
Use the `pre_read` hook to modify the site instance before posts, pages and static files are read.
|
58
58
|
|
59
|
-
Use the `
|
59
|
+
Use the `post_read` hook to modify the site instance after posts, pages and static files are read but before generators are triggered.
|
60
60
|
|
61
61
|
Use the `pre_render` hook to modify the site instance before posts and pages are rendered.
|
62
62
|
|
@@ -91,7 +91,7 @@ modify the instance before the Site compiles its payload, which includes arrays
|
|
91
91
|
|
92
92
|
With `pre_render` you can parse and modify page contents before it is processed by Liquid, Markdown, Textile and the like, and rendered to HTML.
|
93
93
|
|
94
|
-
With `post_render` you can access pages and posts after it has been converted into HTML. You might use this option if you want to modify generated HTML.
|
94
|
+
With `post_render` you can access pages and posts after it has been converted into HTML. You might use this option if you want to modify generated HTML. At this stage, be sure to modify the `page.output` if you want change what the page displays.
|
95
95
|
|
96
96
|
With `post_write` you can execute a code block after a page or post has been successfully written to disk.
|
97
97
|
|
data/lib/octopress-hooks.rb
CHANGED
@@ -97,9 +97,9 @@ module Jekyll
|
|
97
97
|
# Instantiates all of the hook plugins. This is basically
|
98
98
|
# a duplication of the other loaders in Site#setup.
|
99
99
|
def load_hooks
|
100
|
-
self.site_hooks = instantiate_subclasses(Octopress::Hooks::Site)
|
101
|
-
self.page_hooks = instantiate_subclasses(Octopress::Hooks::Page)
|
102
|
-
self.post_hooks = instantiate_subclasses(Octopress::Hooks::Post)
|
100
|
+
self.site_hooks = instantiate_subclasses(Octopress::Hooks::Site) || []
|
101
|
+
self.page_hooks = instantiate_subclasses(Octopress::Hooks::Page) || []
|
102
|
+
self.post_hooks = instantiate_subclasses(Octopress::Hooks::Post) || []
|
103
103
|
end
|
104
104
|
|
105
105
|
|
@@ -270,3 +270,11 @@ module Jekyll
|
|
270
270
|
end
|
271
271
|
end
|
272
272
|
|
273
|
+
if defined? Octopress::Docs
|
274
|
+
Octopress::Docs.add({
|
275
|
+
name: "Octopress Hooks",
|
276
|
+
description: "Modify Jekyll's Site, Pages and Posts at different points during the site processing stream",
|
277
|
+
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
278
|
+
source_url: "https://github.com/octopress/hooks",
|
279
|
+
})
|
280
|
+
end
|
data/octopress-hooks.gemspec
CHANGED
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.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: 2014-
|
11
|
+
date: 2014-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: Allows access to Jekyll's site, posts and pages at different points in
|
42
56
|
the life cycle of a build. Formerly known as 'jekyll-page-hooks'.
|
43
57
|
email:
|
@@ -46,6 +60,7 @@ executables: []
|
|
46
60
|
extensions: []
|
47
61
|
extra_rdoc_files: []
|
48
62
|
files:
|
63
|
+
- ".clash.yml"
|
49
64
|
- ".gitignore"
|
50
65
|
- ".travis.yml"
|
51
66
|
- CHANGELOG.md
|
@@ -56,7 +71,6 @@ files:
|
|
56
71
|
- lib/octopress-hooks.rb
|
57
72
|
- lib/octopress-hooks/version.rb
|
58
73
|
- octopress-hooks.gemspec
|
59
|
-
- test/.clash.yml
|
60
74
|
- test/.gitignore
|
61
75
|
- test/Gemfile
|
62
76
|
- test/_config.yml
|
@@ -95,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
109
|
version: '0'
|
96
110
|
requirements: []
|
97
111
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
112
|
+
rubygems_version: 2.4.1
|
99
113
|
signing_key:
|
100
114
|
specification_version: 4
|
101
115
|
summary: Allows access to Jekyll's site, posts and pages at different points in the
|