jekyll-optional-front-matter 0.3.0 → 0.3.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
- SHA1:
3
- metadata.gz: eeb9bc52d01fe3ddf00623f3e8c7f2b9affcf7af
4
- data.tar.gz: d806a601091253ec1c4dcb241fdc89ec03607882
2
+ SHA256:
3
+ metadata.gz: 6eeefc377af0eae52b1381c3643ea84433db2b9252cd12a0bc51c30e9ab9b5a6
4
+ data.tar.gz: dc59a912c8a92f3ad171d57b274439aa828c727ba0336edb2cd3de550606bcd3
5
5
  SHA512:
6
- metadata.gz: 7ad53b232c4fa3fc252c4e8eb6af311bbc05e4b3beb7d0b1b09249f4496f91ef16c7de9cadbbbb41d58bc3658ec07048dd66cd8852e49d3c8bc06b5b517ac518
7
- data.tar.gz: 4dad5d5f286cd47df84a81b875997b07a4e1d234b278db478dce3ba703d76302b4242539f73d705b47096a8dd2d2929a8191132aafa93caf75c966553caf48d2
6
+ metadata.gz: 4f3d07a3e1b3b8ca641169ff3c1ecef1c0e5c4b291b8aac6e41c8a88d4b572b10307d557ec4bacf2f25b7574997c637e46e8efdd20a4f1b5f458520350b31471
7
+ data.tar.gz: 58d5eeb9184d60a222c0a00082a9c0ebc1e19039aaa983a95240f07c7687f4fa63e0fbf991f897dcd085227514fc84ec781b5590540557d1626084bc71795493
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "jekyll"
2
4
  require "jekyll-optional-front-matter/generator"
3
5
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module JekyllOptionalFrontMatter
2
4
  class Generator < Jekyll::Generator
3
5
  attr_accessor :site
@@ -5,9 +7,9 @@ module JekyllOptionalFrontMatter
5
7
  safe true
6
8
  priority :normal
7
9
 
8
- CONFIG_KEY = "optional_front_matter".freeze
9
- ENABLED_KEY = "enabled".freeze
10
- CLEANUP_KEY = "remove_originals".freeze
10
+ CONFIG_KEY = "optional_front_matter"
11
+ ENABLED_KEY = "enabled"
12
+ CLEANUP_KEY = "remove_originals"
11
13
 
12
14
  def initialize(site)
13
15
  @site = site
@@ -16,6 +18,7 @@ module JekyllOptionalFrontMatter
16
18
  def generate(site)
17
19
  @site = site
18
20
  return if disabled?
21
+
19
22
  site.pages.concat(pages_to_add)
20
23
  site.static_files -= static_files_to_remove if cleanup?
21
24
  end
@@ -53,11 +56,13 @@ module JekyllOptionalFrontMatter
53
56
  # Does the given Jekyll::Page match our filename blacklist?
54
57
  def blacklisted?(page)
55
58
  return false if whitelisted?(page)
59
+
56
60
  FILENAME_BLACKLIST.include?(page.basename.upcase)
57
61
  end
58
62
 
59
63
  def whitelisted?(page)
60
64
  return false unless site.config["include"].is_a? Array
65
+
61
66
  entry_filter.included?(page.relative_path)
62
67
  end
63
68
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module JekyllOptionalFrontMatter
2
- VERSION = "0.3.0".freeze
4
+ VERSION = "0.3.2"
3
5
  end
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-optional-front-matter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Balter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2019-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: rspec
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +50,28 @@ dependencies:
44
50
  requirements:
45
51
  - - "~>"
46
52
  - !ruby/object:Gem::Version
47
- version: '0.40'
53
+ version: '0.71'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.71'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rubocop-jekyll
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '0.10'
48
68
  type: :development
49
69
  prerelease: false
50
70
  version_requirements: !ruby/object:Gem::Requirement
51
71
  requirements:
52
72
  - - "~>"
53
73
  - !ruby/object:Gem::Version
54
- version: '0.40'
74
+ version: '0.10'
55
75
  description:
56
76
  email:
57
77
  - ben.balter@github.com
@@ -81,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
101
  - !ruby/object:Gem::Version
82
102
  version: '0'
83
103
  requirements: []
84
- rubyforge_project:
85
- rubygems_version: 2.6.11
104
+ rubygems_version: 3.0.6
86
105
  signing_key:
87
106
  specification_version: 4
88
107
  summary: A Jekyll plugin to make front matter optional for Markdown files