jekyll_all_collections 0.3.6 → 0.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1a935e77649731f0ecea36559559fe45c937b004d019fbf777ad74621b252af
4
- data.tar.gz: 24be6a67384819242fd22901d9d4a7cf1a7cbc5bc88fbaea7ed9c53fa357ad33
3
+ metadata.gz: ef8537c4507dd09e37bf5309509a95df04f8c9927c95aea7a3a936c93aa09e7c
4
+ data.tar.gz: 32fc6fa905a809fa63b500828092bc99e0e6fe8c2fe2728ac90fe341d579d72a
5
5
  SHA512:
6
- metadata.gz: '0266898e0d13bb95adcc909ed92a7d916741b847ff61bcd9ffe8ac07b370e376545a9120a91d1ad34347fe95084f634850fa7f853e13bc0a4ffa59491d94b4a7'
7
- data.tar.gz: 02f706416a7c7578ab2819321b6698b3980e7c00c88002b313f587f33c9bdda8bdb9bd7f96f06d13d4636f2394b7a2bfc2b009db874df7d0c1e04f95ebf4cd43
6
+ metadata.gz: 8b943b685144dc0d406d8322c48d2f4e8f9a4bceeea8264df2ec0d2dc02eb4903e0fc5e619025fa9c924a2216117f26288f22837a236ba9162b4286a05ce5092
7
+ data.tar.gz: 0a2428d792af7fd3088b696fcdb5fc7e9936fdbd166eda15b7a11e407de9b32f2ac9f35e6bd9b58406767fbed20d6bf98d8803b708b9e5752f19878440d1b2d5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.7 / 2024-12-21
4
+
5
+ * `AllCollectionsTag.class.evaluate` made compatible with Ruby 3.2.2
6
+
7
+
3
8
  ## 0.3.6 / 2024-07-23
4
9
 
5
10
  * Made compatible with module renaming in JekyllPluginSupport v1.0.0
@@ -3,19 +3,19 @@ require_relative 'lib/jekyll_all_collections/version'
3
3
  Gem::Specification.new do |spec|
4
4
  github = 'https://github.com/mslinn/jekyll_all_collections'
5
5
 
6
- spec.authors = ['Mike Slinn']
7
- spec.bindir = 'exe'
6
+ spec.authors = ['Mike Slinn']
7
+ spec.bindir = 'exe'
8
8
  spec.description = <<~END_OF_DESC
9
9
  Provides a collection of all collections in site.all_collections.
10
10
  END_OF_DESC
11
- spec.email = ['mslinn@mslinn.com']
11
+ spec.email = ['mslinn@mslinn.com']
12
12
  spec.executables = []
13
13
 
14
14
  # Specify which files should be added to the gem when it is released.
15
15
  spec.files = Dir['.rubocop.yml', 'LICENSE.*', 'Rakefile', '{lib,spec}/**/*', '*.gemspec', '*.md']
16
16
 
17
17
  spec.homepage = 'https://www.mslinn.com/jekyll_plugins/jekyll_all_collections.html'
18
- spec.license = 'MIT'
18
+ spec.license = 'MIT'
19
19
  spec.metadata = {
20
20
  'allowed_push_host' => 'https://rubygems.org',
21
21
  'bug_tracker_uri' => "#{github}/issues",
@@ -23,11 +23,12 @@ Gem::Specification.new do |spec|
23
23
  'homepage_uri' => spec.homepage,
24
24
  'source_code_uri' => github,
25
25
  }
26
- spec.name = 'jekyll_all_collections'
27
- spec.require_paths = ['lib']
26
+ spec.name = 'jekyll_all_collections'
27
+ spec.platform = Gem::Platform::RUBY
28
+ spec.require_paths = ['lib']
28
29
  spec.required_ruby_version = '>= 2.6.0'
29
- spec.summary = 'Provides a collection of all collections in site.all_collections.'
30
- spec.version = JekyllAllCollectionsVersion::VERSION
30
+ spec.summary = 'Provides a collection of all collections in site.all_collections.'
31
+ spec.version = JekyllAllCollectionsVersion::VERSION
31
32
 
32
33
  spec.add_dependency 'jekyll', '>= 3.5.0'
33
34
  spec.add_dependency 'jekyll_draft'
@@ -70,7 +70,7 @@ module AllCollectionsHooks
70
70
  :label, :last_modified, :layout, :path, :relative_path, :tags, :title, :type, :url
71
71
 
72
72
  # Verify each property exists before accessing it; this helps write tests
73
- def initialize(obj) # rubocop:disable Metrics/AbcSize
73
+ def initialize(obj)
74
74
  @data = obj.data if obj.respond_to? :data
75
75
 
76
76
  @categories = @data['categories'] if @data.key? 'categories'
@@ -77,7 +77,9 @@ module AllCollectionsTag
77
77
  end
78
78
 
79
79
  def self.evaluate(string)
80
- eval string, NullBinding.new.min_binding, __FILE__, __LINE__ # rubocop:disable Security/Eval
80
+ self.eval string, binding, __FILE__, __LINE__
81
+ rescue StandardError => e
82
+ warn_short_trace e.red
81
83
  end
82
84
 
83
85
  def self.verify_sort_by_type(sort_by)
@@ -1,3 +1,3 @@
1
1
  module JekyllAllCollectionsVersion
2
- VERSION = '0.3.6'.freeze
2
+ VERSION = '0.3.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_all_collections
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Slinn
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-07-26 00:00:00.000000000 Z
10
+ date: 2024-12-21 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: jekyll
@@ -84,7 +83,6 @@ metadata:
84
83
  changelog_uri: https://github.com/mslinn/jekyll_all_collections/CHANGELOG.md
85
84
  homepage_uri: https://www.mslinn.com/jekyll_plugins/jekyll_all_collections.html
86
85
  source_code_uri: https://github.com/mslinn/jekyll_all_collections
87
- post_install_message:
88
86
  rdoc_options: []
89
87
  require_paths:
90
88
  - lib
@@ -99,8 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
97
  - !ruby/object:Gem::Version
100
98
  version: '0'
101
99
  requirements: []
102
- rubygems_version: 3.5.16
103
- signing_key:
100
+ rubygems_version: 3.6.0
104
101
  specification_version: 4
105
102
  summary: Provides a collection of all collections in site.all_collections.
106
103
  test_files: []