jekyll-securitytxt 0.1.0.pre.pre.1 → 0.1.0.pre.pre.2
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 +4 -4
- data/lib/jekyll/securitytxt/version.rb +1 -1
- data/lib/jekyll/securitytxt.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7898aae99dbad4dc9835e6fecd283ca0f4a71522deb0b5fd85b07010a176a23
|
4
|
+
data.tar.gz: ec09005e6705fa4b55689f88f96b96e0d8815e33b190c1fcd5030df55a33531f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9720ebfd6ced85535f75465ae323e7a49a964c0d66e5d3bc95f03ea9a6ff93abe1a33b86d838205b21f22a2f9cc8caf48cc04a7e7aec12f730870a9e53c31371
|
7
|
+
data.tar.gz: cb7901ff92a1b1dc5ec3f9540a783f23dd5a99e1266faf81dfebb68e3348c678c10bf5c1073965716604c088abdec303ff3695981894d0e53f0cf314ea8eab23
|
data/lib/jekyll/securitytxt.rb
CHANGED
@@ -23,7 +23,7 @@ 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
|
|
@@ -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
|