jekyll-securitytxt 0.1.0.pre.pre.2 → 0.1.0.pre.pre.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/jekyll-securitytxt.gemspec +2 -1
- data/lib/jekyll/securitytxt/version.rb +1 -1
- data/lib/jekyll/securitytxt.rb +3 -3
- data/lib/jekyll/template.html +35 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1da1ee5682b2694cb2092c940acdfcdd726c99f4f67c1f0cb4c7f7bf97699ae
|
4
|
+
data.tar.gz: 19eaf182cf5780ad44359653c152e4096d3dbbb2ea680944dfa64342465e4849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb059cfaa3edaf5f823c5d870d299114181e6a6fdd8b25207649ff7e7ac8743ecef76c54c6a286e88f32a0ddaaf557b4d4bb88908a11caf704a92b95f1dc8aea
|
7
|
+
data.tar.gz: f2a55aaa47189d114fbad87c6c9f68db92d32ad86d084fe7d834e10e4587e1ff88e819d6ed6034a8f6dd06802ab39c58d7829d76aaa131f839251f1922cab903
|
data/README.md
CHANGED
data/jekyll-securitytxt.gemspec
CHANGED
@@ -12,6 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = "Jekyll plugin for security.txt"
|
13
13
|
spec.homepage = "https://github.com/hahwul/jekyll-securitytxt"
|
14
14
|
spec.required_ruby_version = ">= 2.6.0"
|
15
|
+
spec.license = "MIT"
|
15
16
|
|
16
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
17
18
|
spec.metadata["source_code_uri"] = spec.homepage
|
@@ -25,5 +26,5 @@ Gem::Specification.new do |spec|
|
|
25
26
|
spec.bindir = "exe"
|
26
27
|
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
27
28
|
spec.require_paths = ["lib"]
|
28
|
-
spec.add_dependency "jekyll", "~>
|
29
|
+
spec.add_dependency "jekyll", "~> 4.0.0"
|
29
30
|
end
|
data/lib/jekyll/securitytxt.rb
CHANGED
@@ -23,13 +23,13 @@ module Jekyll
|
|
23
23
|
file_pattern = %r{.well-known/security\.txt?}
|
24
24
|
exists = @site.static_files.any? { |p| p.url =~ file_pattern }
|
25
25
|
warn_msg = "Found a security.txt file in source tree matching /#{file_pattern.source}/; not generating one..."
|
26
|
-
Jekyll.logger.warn "
|
26
|
+
Jekyll.logger.warn "Jekyll-securitytxt", warn_msg if exists
|
27
27
|
exists
|
28
28
|
end
|
29
29
|
|
30
30
|
# Get path of the template file.
|
31
31
|
def source_path(file = "template.html")
|
32
|
-
File.expand_path "
|
32
|
+
File.expand_path "#{file}", __dir__
|
33
33
|
end
|
34
34
|
|
35
35
|
# Path of the security.txt file.
|
@@ -39,7 +39,7 @@ module Jekyll
|
|
39
39
|
|
40
40
|
# Construct a file object from a template with content that can be added to generated pages
|
41
41
|
def verification_file
|
42
|
-
Jekyll.logger.info "
|
42
|
+
Jekyll.logger.info "Jekyll-securitytxt", "Generating #{securitytxt_path}"
|
43
43
|
page = PageWithoutAFile.new(@site, __dir__, "", securitytxt_path)
|
44
44
|
page.content = File.read(source_path)
|
45
45
|
page.data["layout"] = nil
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{{ if site.security_txt.contact }}
|
2
|
+
Contact: {{ site.security_txt.contact }}
|
3
|
+
{{ end }}
|
4
|
+
|
5
|
+
{{ if site.security_txt.expires}}
|
6
|
+
Expires: {{ site.security_txt.expires }}
|
7
|
+
{{ end }}
|
8
|
+
|
9
|
+
{{ if site.security_txt.encryption }}
|
10
|
+
Encryption: {{ site.security_txt.encryption }}
|
11
|
+
{{ end }}
|
12
|
+
|
13
|
+
{{ if site.security_txt.preferred_languages }}
|
14
|
+
Preferred-Languages: {{ site.security_txt.preferred_languages }}
|
15
|
+
{{ end }}
|
16
|
+
|
17
|
+
{{ if site.security_txt.acknowledgments }}
|
18
|
+
Acknowledgments: {{ site.security_txt.acknowledgments }}
|
19
|
+
{{ end }}
|
20
|
+
|
21
|
+
{{ if site.security_txt.policy }}
|
22
|
+
Policy: {{ site.security_txt.policy }}
|
23
|
+
{{ end }}
|
24
|
+
|
25
|
+
{{ if site.security_txt.hiring }}
|
26
|
+
Hiring: {{ site.security_txt.hiring }}
|
27
|
+
{{ end }}
|
28
|
+
|
29
|
+
{{ if site.security_txt.csaf }}
|
30
|
+
CSAF: {{ site.security_txt.csaf }}
|
31
|
+
{{ end }}
|
32
|
+
|
33
|
+
{{ if site.security_txt.canonical }}
|
34
|
+
Canonical: {{ site.security_txt.canonical }}
|
35
|
+
{{ end }}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-securitytxt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.pre.
|
4
|
+
version: 0.1.0.pre.pre.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HAHWUL
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0
|
27
27
|
description: Jekyll plugin for security.txt
|
28
28
|
email:
|
29
29
|
- hahwul@gmail.com
|
@@ -38,9 +38,11 @@ files:
|
|
38
38
|
- jekyll-securitytxt.gemspec
|
39
39
|
- lib/jekyll/securitytxt.rb
|
40
40
|
- lib/jekyll/securitytxt/version.rb
|
41
|
+
- lib/jekyll/template.html
|
41
42
|
- sig/jekyll/securitytxt.rbs
|
42
43
|
homepage: https://github.com/hahwul/jekyll-securitytxt
|
43
|
-
licenses:
|
44
|
+
licenses:
|
45
|
+
- MIT
|
44
46
|
metadata:
|
45
47
|
homepage_uri: https://github.com/hahwul/jekyll-securitytxt
|
46
48
|
source_code_uri: https://github.com/hahwul/jekyll-securitytxt
|