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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2d2e99d52e6404f85bd95a4a78f31b5c80905fe
4
- data.tar.gz: 5278f145c66e15dfe5c0a473772e9bb222c63798
3
+ metadata.gz: 48f429f3df0aee048fec3070213eaca62558645e
4
+ data.tar.gz: 80d7b6e3e940168972469f1b48560a8af3a17712
5
5
  SHA512:
6
- metadata.gz: 0cc014e4c906096f369aaceb0173824aa4479285275e281a65df4e4c209a4bd354b11a833f2bcaa8b108129bf99b044d3a31e243725f8a1f12aff8f92fa90163
7
- data.tar.gz: 45e272c880e17d8e48e9b5fb9f1a013f21fbc741e6a8c49683c3304d03a4c0365c6eaa77e0c7c8037c96f4b55a6afb5119bc04f352de88846037a7334eb506fe
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: cd test && bundle exec clash
6
-
5
+ script: bundle exec clash test
6
+ notifications:
7
+ slack:
8
+ secure: FZR2kuuJF2PwpzsoSsPgU5r2Uaj9LL611gOt2de9/x1bx2N464DTBVa3nhV8SfNRNOrqR10nvt8CvKqL4iWNdt3OpU8iK7/PTqCIsggJbdfAkqU5WAhsmV7+shYIJxi+kOH+8bockG7c4kY9GMBaJUSe1VgM+BHsykUyrna8ywQ=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.2.2 - 2014-10-12
4
+ - Added support for octopress-docs
5
+ - Minor bug fix for when there are no hooks
6
+
3
7
  ### 2.2.1 - 2014-08-13
4
8
  - Fix: Now compatible with Jekyll 2.3.0
5
9
 
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 `pre_read` hook to modify the site instance after posts, pages and static files are read but before generators are triggered.
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
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Hooks
3
- VERSION = "2.2.1"
3
+ VERSION = "2.2.2"
4
4
  end
5
5
  end
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
16
16
  gem.add_runtime_dependency 'jekyll', '~> 2.0'
17
17
 
18
18
  gem.add_development_dependency 'clash', '~> 1.0'
19
+ gem.add_development_dependency 'rake'
19
20
 
20
21
  gem.files = `git ls-files`.split($/)
21
22
  gem.require_paths = ["lib"]
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.1
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-08-14 00:00:00.000000000 Z
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.2.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