jekyll-securitytxt 0.1.0.pre.pre.1 → 0.1.0.pre.pre.3

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: df82d5f2d4cabef9bb3adad5d1609495f646eb8889f841696f1cf715f01c218d
4
- data.tar.gz: d7058f8ab155eaebaad90af50598e4ba44e3feffacbd38b43a17df8bc77f8412
3
+ metadata.gz: 755a933dc19e1e38df50f5e21f229ac3d6248d463f4d774e1ee22f9691e35167
4
+ data.tar.gz: ce9dea778d7b4e79adafa2d49465aea6405b4553a12e79cbf86561a79a1cb7a4
5
5
  SHA512:
6
- metadata.gz: 1604935cbb71124b0a1603e576f2718236ad077b18b95b0eb7b42da6887a22207da19869f8b455582d5c0bc93e00a16ac0ea5e257952fddbc8c486890ffa9c58
7
- data.tar.gz: 01d6e6754a8afbf4e250d30492d60cadd78c7836e22465470a093ef5a6d114d0a9e23742d00a32547eff2d54b9b0f26b15fcbb5af8f83b248781f340284cf1d9
6
+ metadata.gz: f2e6da149785efa3ae1a8d021add53410bab2348adf98aed0bc2b1dfd2c5933fc44dbfee25a9c5a97c5119526b8a9221119e00ea8f47310aa0c6ab6779b58dc3
7
+ data.tar.gz: d76c3d9d97b73ad3c2654266229a5f11308a02ae046c56c9a3a3b5296318591f4d6e7234f7ddca945ee260c92d7b1ea9d7a89d45a2ca58913f0db0de4e247687
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Securitytxt
5
- VERSION = "0.1.0-pre.1"
5
+ VERSION = "0.1.0-pre.3"
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 LOG_TAG, 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 LOG_TAG, "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.1
4
+ version: 0.1.0.pre.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - HAHWUL
@@ -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