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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7898aae99dbad4dc9835e6fecd283ca0f4a71522deb0b5fd85b07010a176a23
4
- data.tar.gz: ec09005e6705fa4b55689f88f96b96e0d8815e33b190c1fcd5030df55a33531f
3
+ metadata.gz: b1da1ee5682b2694cb2092c940acdfcdd726c99f4f67c1f0cb4c7f7bf97699ae
4
+ data.tar.gz: 19eaf182cf5780ad44359653c152e4096d3dbbb2ea680944dfa64342465e4849
5
5
  SHA512:
6
- metadata.gz: 9720ebfd6ced85535f75465ae323e7a49a964c0d66e5d3bc95f03ea9a6ff93abe1a33b86d838205b21f22a2f9cc8caf48cc04a7e7aec12f730870a9e53c31371
7
- data.tar.gz: cb7901ff92a1b1dc5ec3f9540a783f23dd5a99e1266faf81dfebb68e3348c678c10bf5c1073965716604c088abdec303ff3695981894d0e53f0cf314ea8eab23
6
+ metadata.gz: cb059cfaa3edaf5f823c5d870d299114181e6a6fdd8b25207649ff7e7ac8743ecef76c54c6a286e88f32a0ddaaf557b4d4bb88908a11caf704a92b95f1dc8aea
7
+ data.tar.gz: f2a55aaa47189d114fbad87c6c9f68db92d32ad86d084fe7d834e10e4587e1ff88e819d6ed6034a8f6dd06802ab39c58d7829d76aaa131f839251f1922cab903
data/README.md CHANGED
@@ -29,3 +29,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
29
29
  ## Contributing
30
30
 
31
31
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-securitytxt.
32
+ # jekyll-securitytxt
@@ -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", "~> 3.9.0"
29
+ spec.add_dependency "jekyll", "~> 4.0.0"
29
30
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Securitytxt
5
- VERSION = "0.1.0-pre.2"
5
+ VERSION = "0.1.0-pre.4"
6
6
  end
7
7
  end
@@ -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 "jekyll-securitytxt", warn_msg if exists
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 "../#{file}", __dir__
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 "jekyll-securitytxt", "Generating #{securitytxt_path}"
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.2
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: 3.9.0
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: 3.9.0
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