jekyll_all_collections 0.2.2 → 0.3.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 +6 -0
- data/Rakefile +1 -3
- data/jekyll_all_collections.gemspec +2 -2
- data/lib/all_collections_hooks.rb +1 -1
- data/lib/all_collections_tag.rb +4 -3
- data/lib/jekyll_all_collections/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b05fdaeb90e724ead5fe3036822f97e2d3b597eea75b8e2f6e2bd63d8b491401
|
4
|
+
data.tar.gz: 78ea31227b48c4c3ddaf49c12803c602e9b059097ae73b57083b2f411a28acb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b871ce27294c5b6474f07bae466bc89ec5b92b3b1d96718889595988934e5fef6f80711aca2ff9faf16b15df5729da8ba44c9d6e4fc67ef4b193f16ddd958262
|
7
|
+
data.tar.gz: 05ad4525f6e4deb03238a88b74cbd68c5779b7dc8b2437074db5a3c007b67113cec0f2b239d24dc3b148093727958b6505bd091337d602ad95d556e14c7be013
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.version = JekyllAllCollectionsVersion::VERSION
|
31
31
|
|
32
32
|
spec.add_dependency 'jekyll', '>= 3.5.0'
|
33
|
-
spec.add_dependency 'jekyll_draft', '~>1.1.
|
34
|
-
spec.add_dependency 'jekyll_plugin_support', '~> 0.
|
33
|
+
spec.add_dependency 'jekyll_draft', '~> 1.1.1'
|
34
|
+
spec.add_dependency 'jekyll_plugin_support', '~> 0.5.0'
|
35
35
|
end
|
@@ -16,7 +16,7 @@ module AllCollectionsHooks
|
|
16
16
|
# Each `APage` entry is one document or page.
|
17
17
|
Jekyll::Hooks.register(:site, :post_read, priority: :normal) do |site|
|
18
18
|
defined = AllCollectionsHooks.all_collections_defined?(site)
|
19
|
-
@logger.
|
19
|
+
@logger.debug { "Jekyll::Hooks.register(:site, :post_read, :normal: #{defined}" }
|
20
20
|
AllCollectionsHooks.compute(site) unless site.class.method_defined? :all_collections
|
21
21
|
end
|
22
22
|
|
data/lib/all_collections_tag.rb
CHANGED
@@ -20,6 +20,8 @@ module AllCollectionsTag
|
|
20
20
|
CRITERIA = %w[date destination draft label last_modified last_modified_at path relative_path title type url].freeze
|
21
21
|
|
22
22
|
class AllCollectionsTag < JekyllSupport::JekyllTag
|
23
|
+
include JekyllAllCollectionsVersion
|
24
|
+
|
23
25
|
# Method prescribed by JekyllTag.
|
24
26
|
# @return [String]
|
25
27
|
def render_impl
|
@@ -115,8 +117,7 @@ module AllCollectionsTag
|
|
115
117
|
puts e.message
|
116
118
|
puts e.backtrace.join("\n")
|
117
119
|
end
|
120
|
+
|
121
|
+
JekyllPluginHelper.register(self, PLUGIN_NAME)
|
118
122
|
end
|
119
123
|
end
|
120
|
-
|
121
|
-
Liquid::Template.register_tag(AllCollectionsTag::PLUGIN_NAME, AllCollectionsTag::AllCollectionsTag)
|
122
|
-
PluginMetaLogger.instance.info { "Loaded #{AllCollectionsTag::PLUGIN_NAME} v#{JekyllAllCollectionsVersion::VERSION} tag plugin." }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_all_collections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Slinn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1.
|
33
|
+
version: 1.1.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.1.
|
40
|
+
version: 1.1.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jekyll_plugin_support
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.
|
47
|
+
version: 0.5.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.5.0
|
55
55
|
description: 'Provides a collection of all collections in site.all_collections.
|
56
56
|
|
57
57
|
'
|