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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98b56451934bb754055fc2f68ab03a6824f58c360eb88f739afac26c4f9a8c1e
4
- data.tar.gz: f4295f066d3913b85d920648d66f10e9b58da55f7fd1d67681f002235aa5e249
3
+ metadata.gz: b05fdaeb90e724ead5fe3036822f97e2d3b597eea75b8e2f6e2bd63d8b491401
4
+ data.tar.gz: 78ea31227b48c4c3ddaf49c12803c602e9b059097ae73b57083b2f411a28acb2
5
5
  SHA512:
6
- metadata.gz: a103a3208ae1142f98ff5a6316c01502a59b1c96cf6fc2ff3c094b6200d8adb6b16d9b8d585cf28aa8448b0c2fb5df68ffdf9b01d431e21243636b1b9e8ad1e2
7
- data.tar.gz: 60093b3825053c854cc7ef89b6ad88bd97d8a31baa231c9386e16b2810a9266df7c6a94d189260471b2d29aeba9c2dcfeb9c6faf27b81f92df5dcfde558e11e0
6
+ metadata.gz: b871ce27294c5b6474f07bae466bc89ec5b92b3b1d96718889595988934e5fef6f80711aca2ff9faf16b15df5729da8ba44c9d6e4fc67ef4b193f16ddd958262
7
+ data.tar.gz: 05ad4525f6e4deb03238a88b74cbd68c5779b7dc8b2437074db5a3c007b67113cec0f2b239d24dc3b148093727958b6505bd091337d602ad95d556e14c7be013
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.3.1 / 2023-03-16
2
+ * Reduced the verbosity of the `@logger` message
3
+
4
+ ## 0.3.0 / 2023-02-16
5
+ * Updated dependency `'jekyll_plugin_support', '~> 0.5.0'`
6
+
1
7
  ## 0.2.2 / 2023-02-12
2
8
  * Updated dependency `'jekyll_plugin_support', '~> 0.4.0'`
3
9
 
data/Rakefile CHANGED
@@ -1,7 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
1
  require "bundler/gem_tasks"
4
2
  require "rspec/core/rake_task"
5
3
 
6
4
  RSpec::Core::RakeTask.new(:spec)
7
- task :default => :spec
5
+ task default: :spec
@@ -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.0'
34
- spec.add_dependency 'jekyll_plugin_support', '~> 0.4.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.info { "Jekyll::Hooks.register(:site, :post_read, :normal: #{defined}" }
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
 
@@ -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." }
@@ -1,3 +1,3 @@
1
1
  module JekyllAllCollectionsVersion
2
- VERSION = '0.2.2'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
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.2.2
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-02-13 00:00:00.000000000 Z
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.0
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.0
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.4.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.4.0
54
+ version: 0.5.0
55
55
  description: 'Provides a collection of all collections in site.all_collections.
56
56
 
57
57
  '