jekyll-securitytxt 0.1.0.pre.pre.9 → 1.0.1

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: 58aeb260844728d59b29ab4fa10de67aafdc17b0933c5aab5e12d606d817f4f5
4
- data.tar.gz: 143f72e10e722fe421fb6416276e2e42d68085f0d5804c3abe25fb75c32770ae
3
+ metadata.gz: 19b2ae8b2d0e614e0a8de71daed37fbf2045a258030bc6ef48da08f19aa73c04
4
+ data.tar.gz: 3c3bf295fcc71999ac6a1e20a192d87354441d76ab8c8e76337a5692d84ad784
5
5
  SHA512:
6
- metadata.gz: 8ea535f95257369733ef29f173530a8f06b029ae23749e4a83e6b230a172c0c95a0be15b3c0759fd4de0eec111c2eac84b9d903763933a7bb617f7f05753c744
7
- data.tar.gz: 372a62a8b92a3d5d8bea622b8c4f669fd1cb1b7e9ba69712d4440cb2c2b62a3a61eb685face590219573ac60b094a433bdef85336d6fd6406f9a5ba21c0c7be9
6
+ metadata.gz: 3b103c1689f8f96ba5eed716db80c6d46bb5ebee41e2e8b14304e7286a923ffee92543190fac7dd609d5c5919f68059e5b51b1046440633bea460ea9493ec68c
7
+ data.tar.gz: 8853a84942ef6836d4d00e469f3c726c93f29a303696cab17455ce0b5c5ba87385db19b4d37e5db02a3ea978bef3d2d36a806e5711bd006e2b94f5ad29873307
data/README.md CHANGED
@@ -1,32 +1,51 @@
1
- # Jekyll::Securitytxt
1
+ # jekyll-securitytxt
2
2
 
3
- TODO: Delete this and the text below, and describe your gem
3
+ Jekyll plugin for [security.txt](https://www.rfc-editor.org/rfc/rfc9116)[^1]
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/jekyll/securitytxt`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ [^1]: RFC9116
6
6
 
7
7
  ## Installation
8
-
9
- TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
10
-
11
- Install the gem and add to the application's Gemfile by executing:
12
-
13
- $ bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
14
-
15
- If bundler is not being used to manage dependencies, install the gem by executing:
16
-
17
- $ gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
8
+ ```ruby
9
+ group :jekyll_plugins do
10
+ # ...
11
+ gem "jekyll-securitytxt"
12
+ end
13
+ ```
18
14
 
19
15
  ## Usage
20
16
 
21
- TODO: Write usage instructions here
22
-
23
- ## Development
24
-
25
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
-
27
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
-
29
- ## Contributing
30
-
31
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/jekyll-securitytxt.
32
- # jekyll-securitytxt
17
+ ```yaml
18
+ # in _config.yml
19
+ security_txt:
20
+ comment: If you find any security issues on this site, please contact me!
21
+ contact: "mailto:<YOUR-EMAIL>"
22
+ preferred_languages: "ko, en"
23
+ ```
24
+
25
+ if you
26
+ ```yaml
27
+ security_txt:
28
+ custom_message: |
29
+ # If you would like to report a security issue you may report it to us via bugbounty platform
30
+ Contact: https://
31
+ ```
32
+
33
+ ## Supported
34
+
35
+ ```yaml
36
+ security_txt:
37
+ comment:
38
+ contact:
39
+ expires:
40
+ encryption:
41
+ preferred_languages:
42
+ acknowledgments:
43
+ policy:
44
+ hiring:
45
+ csaf:
46
+ canonical:
47
+ custom_message:
48
+ ```
49
+
50
+ > [!TIP]
51
+ > See here for information on the column. https://securitytxt.org*
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module Securitytxt
5
- VERSION = "0.1.0-pre.9"
5
+ VERSION = "1.0.1"
6
6
  end
7
7
  end
@@ -29,7 +29,7 @@ module Jekyll
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.to_s, __dir__
33
33
  end
34
34
 
35
35
  # Path of the security.txt file.
@@ -28,3 +28,6 @@ CSAF: {{ site.security_txt.csaf }}
28
28
  {% if site.security_txt.canonical -%}
29
29
  Canonical: {{ site.security_txt.canonical }}
30
30
  {% endif -%}
31
+ {% if site.security_txt.custom_message -%}
32
+ {{ site.security_txt.custom_message }}
33
+ {% endif -%}
metadata CHANGED
@@ -1,14 +1,14 @@
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.9
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - HAHWUL
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-18 00:00:00.000000000 Z
11
+ date: 2024-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll