jekyll-plantuml 1.4.1 → 1.5.0

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.0pdd.yml +3 -0
  3. data/.github/workflows/actionlint.yml +25 -0
  4. data/.github/workflows/codecov.yml +28 -0
  5. data/.github/workflows/copyrights.yml +19 -0
  6. data/.github/workflows/markdown-lint.yml +19 -0
  7. data/.github/workflows/pdd.yml +12 -4
  8. data/.github/workflows/rake.yml +11 -7
  9. data/.github/workflows/reuse.yml +19 -0
  10. data/.github/workflows/typos.yml +19 -0
  11. data/.github/workflows/xcop.yml +7 -3
  12. data/.github/workflows/yamllint.yml +19 -0
  13. data/.gitignore +9 -2
  14. data/.rubocop.yml +15 -2
  15. data/.rultor.yml +8 -3
  16. data/Gemfile +17 -3
  17. data/LICENSE.txt +1 -1
  18. data/LICENSES/MIT.txt +21 -0
  19. data/README.md +68 -18
  20. data/REUSE.toml +37 -0
  21. data/Rakefile +14 -31
  22. data/jekyll-plantuml.gemspec +4 -1
  23. data/lib/jekyll-plantuml-file.rb +49 -0
  24. data/lib/jekyll-plantuml.rb +30 -50
  25. data/lib/version.rb +3 -22
  26. data/renovate.json +4 -0
  27. data/test/schema.puml +3 -0
  28. data/test/test__helper.rb +32 -0
  29. data/test/test_plantuml-file.rb +39 -0
  30. data/test/test_plantuml.rb +29 -0
  31. data/test-jekylls/.gitignore +1 -1
  32. data/test-jekylls/Makefile +4 -1
  33. data/test-jekylls/jekyll-3/Gemfile +12 -0
  34. data/test-jekylls/{simple → jekyll-3}/_config.yml +3 -0
  35. data/test-jekylls/jekyll-3/_layouts/default.html +12 -0
  36. data/test-jekylls/jekyll-4/Gemfile +11 -0
  37. data/test-jekylls/jekyll-4/_config.yml +9 -0
  38. data/test-jekylls/jekyll-4/_layouts/default.html +12 -0
  39. data/test-jekylls/jekyll-4/_posts/2023/06/2023-06-02-test.md +17 -0
  40. metadata +25 -8
  41. data/.travis.yml +0 -12
  42. data/test-jekylls/simple/Gemfile +0 -6
  43. data/test-jekylls/simple/_layouts/default.html +0 -9
  44. /data/test-jekylls/{simple → jekyll-3}/_posts/2023/06/2023-06-02-test.md +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86089f21384efec7b5247e76310cf6f216163302a8503dfb14c0398c6cc3b44c
4
- data.tar.gz: a0720294a6a0a642117c736544d24f8a839c7adca81e6c2c222be47c9cf1b574
3
+ metadata.gz: 28129a00eff58d52229ade0dc74dc009b052597309bf6e9758401aeb0308b8e3
4
+ data.tar.gz: b44e4f4c8d9cfdfe98c179f775b519a6a57dd57ad9ac6fe0c2487592416bd6d0
5
5
  SHA512:
6
- metadata.gz: 7c1411a7d223784a48c1f24fe9757cdf1454aac992333289e3d1352e546bd2ae0a1f5ba7deaf6a9a38fb16110fa6d6d29304792290a8a660bf64fff6e7ef71cb
7
- data.tar.gz: 538a39cf5816c611381903cb4b3fd6df1375ff8a5777acea4e65e7e9d35d7502398e5990870c7121e53cd1612db0e7a4fa4bc0f997843f2967d173a0b89a2a32
6
+ metadata.gz: bcc87236d47ad23085ed51ae65f2927f80e73795cddc9be4b1c6ccc67986ed96447c588cc89aaa99370f7b46bd24e0c2abae50cad57553edbcc441a2991d1180
7
+ data.tar.gz: d55476f68d7cdc8a4809283dc8e79dfee6eb793fd9126192def60a284ac23e2087c31e9586f8c9fccc37229e325929a4316deae9d8e90cf58a1407a654309c52
data/.0pdd.yml CHANGED
@@ -1,3 +1,6 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
1
4
  errors:
2
5
  - yegor256@gmail.com
3
6
  # alerts:
@@ -0,0 +1,25 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: actionlint
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - master
13
+ jobs:
14
+ actionlint:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - name: Download actionlint
20
+ id: get_actionlint
21
+ run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
22
+ shell: bash
23
+ - name: Check workflow files
24
+ run: ${{ steps.get_actionlint.outputs.executable }} -color
25
+ shell: bash
@@ -0,0 +1,28 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: codecov
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ codecov:
12
+ timeout-minutes: 15
13
+ runs-on: ubuntu-24.04
14
+ steps:
15
+ - uses: actions/checkout@v6
16
+ - uses: ruby/setup-ruby@v1
17
+ with:
18
+ ruby-version: 3.4.8
19
+ bundler-cache: true
20
+ - run: sudo apt-get install --yes plantuml
21
+ - run: bundle config set --global path "$(pwd)/vendor/bundle"
22
+ - run: bundle install --no-color
23
+ - run: bundle exec rake
24
+ - uses: codecov/codecov-action@v5
25
+ with:
26
+ token: ${{ secrets.CODECOV_TOKEN }}
27
+ files: coverage/.resultset.json
28
+ fail_ci_if_error: true
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: copyrights
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - master
13
+ jobs:
14
+ copyrights:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - uses: yegor256/copyrights-action@0.0.12
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: markdown-lint
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - master
13
+ jobs:
14
+ markdown-lint:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - uses: DavidAnson/markdownlint-cli2-action@v22.0.0
@@ -1,11 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
1
3
  ---
4
+ # yamllint disable rule:line-length
2
5
  name: pdd
3
- on:
6
+ 'on':
4
7
  push:
8
+ branches:
9
+ - master
5
10
  pull_request:
11
+ branches:
12
+ - master
6
13
  jobs:
7
14
  pdd:
8
- runs-on: ubuntu-20.04
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
9
17
  steps:
10
- - uses: actions/checkout@v3
11
- - uses: g4s8/pdd-action@master
18
+ - uses: actions/checkout@v6
19
+ - uses: volodya-lombrozo/pdd-action@master
@@ -1,6 +1,9 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
1
3
  ---
4
+ # yamllint disable rule:line-length
2
5
  name: rake
3
- on:
6
+ 'on':
4
7
  push:
5
8
  branches:
6
9
  - master
@@ -9,17 +12,18 @@ on:
9
12
  - master
10
13
  jobs:
11
14
  test:
12
- name: test
13
15
  strategy:
14
16
  matrix:
15
- os: [ubuntu-20.04, macos-12]
16
- ruby: [2.7, 3.2]
17
+ os: [ubuntu-24.04]
18
+ ruby: [3.3]
17
19
  runs-on: ${{ matrix.os }}
18
20
  steps:
19
- - uses: actions/checkout@v3
21
+ - uses: actions/checkout@v6
20
22
  - uses: ruby/setup-ruby@v1
21
23
  with:
22
24
  ruby-version: ${{ matrix.ruby }}
23
- - run: sudo apt-get -y install plantuml
24
- - run: bundle update
25
+ bundler-cache: true
26
+ - run: sudo apt-get install --yes plantuml
27
+ - run: bundle config set --global path "$(pwd)/vendor/bundle"
28
+ - run: bundle install --no-color
25
29
  - run: bundle exec rake
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: reuse
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - master
13
+ jobs:
14
+ reuse:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - uses: fsfe/reuse-action@v6
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: typos
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - master
13
+ jobs:
14
+ typos:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - uses: crate-ci/typos@v1.40.0
@@ -1,11 +1,15 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
1
3
  ---
4
+ # yamllint disable rule:line-length
2
5
  name: xcop
3
- on:
6
+ 'on':
4
7
  push:
5
8
  pull_request:
6
9
  jobs:
7
10
  xcop:
8
- runs-on: ubuntu-20.04
11
+ timeout-minutes: 15
12
+ runs-on: ubuntu-24.04
9
13
  steps:
10
- - uses: actions/checkout@v3
14
+ - uses: actions/checkout@v6
11
15
  - uses: g4s8/xcop-action@master
@@ -0,0 +1,19 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
5
+ name: yamllint
6
+ 'on':
7
+ push:
8
+ branches:
9
+ - master
10
+ pull_request:
11
+ branches:
12
+ - master
13
+ jobs:
14
+ yamllint:
15
+ timeout-minutes: 15
16
+ runs-on: ubuntu-24.04
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - uses: ibiqlik/action-yamllint@v3
data/.gitignore CHANGED
@@ -1,4 +1,11 @@
1
- Gemfile.lock
2
- *.gem
3
1
  .bundle/
4
2
  .DS_Store
3
+ .idea/
4
+ .yardoc/
5
+ *.gem
6
+ coverage/
7
+ doc/
8
+ Gemfile.lock
9
+ node_modules/
10
+ rdoc/
11
+ vendor/
data/.rubocop.yml CHANGED
@@ -1,17 +1,30 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
1
4
  AllCops:
2
5
  Exclude:
3
6
  - 'bin/**/*'
4
7
  - 'assets/**/*'
8
+ - 'vendor/**/*'
5
9
  DisplayCopNames: true
6
10
  TargetRubyVersion: 2.3
7
11
  SuggestExtensions: false
8
12
  NewCops: enable
9
-
13
+ plugins:
14
+ - rubocop-rake
15
+ - rubocop-minitest
16
+ - rubocop-performance
17
+ Minitest/EmptyLineBeforeAssertionMethods:
18
+ Enabled: false
10
19
  Gemspec/RequiredRubyVersion:
11
20
  Enabled: false
12
21
  Metrics/MethodLength:
13
22
  Enabled: false
14
23
  Metrics/AbcSize:
15
- Max: 30
24
+ Max: 50
16
25
  Naming/FileName:
17
26
  Enabled: false
27
+ Style/ClassAndModuleChildren:
28
+ Enabled: false
29
+ Layout/EmptyLineAfterGuardClause:
30
+ Enabled: false
data/.rultor.yml CHANGED
@@ -1,12 +1,17 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ # yamllint disable rule:line-length
1
5
  docker:
2
- image: yegor256/rultor-image:1.20.0
6
+ image: yegor256/rultor-image:1.24.0
3
7
  assets:
4
8
  rubygems.yml: yegor256/home#assets/rubygems.yml
5
9
  install: |
6
10
  pdd -f /dev/null
7
- sudo bundle install --no-color "--gemfile=$(pwd)/Gemfile"
8
- sudo apt-get -y install plantuml
11
+ bundle install --no-color
12
+ sudo apt-get install --yes plantuml
9
13
  release:
14
+ pre: false
10
15
  script: |-
11
16
  bundle exec rake
12
17
  rm -rf *.gem
data/Gemfile CHANGED
@@ -1,8 +1,22 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
3
6
  source 'https://rubygems.org'
4
7
  gemspec
5
8
 
6
- gem 'rake', '13.0.6', require: false
7
- gem 'rubocop', '1.51.0', require: false
8
- gem 'rubocop-rspec', '2.22.0', require: false
9
+ gem 'base64', '~>0.3', require: false
10
+ gem 'bigdecimal', '~>4.0', require: false
11
+ gem 'kramdown-parser-gfm', '~>1.1', require: false
12
+ gem 'logger', '~>1.7', require: false
13
+ gem 'minitest', '~>6.0', require: false
14
+ gem 'minitest-reporters', '~>1.7', require: false
15
+ gem 'rake', '~>13.2', require: false
16
+ gem 'rdoc', '~>7.0', require: false
17
+ gem 'rubocop', '~>1.64', require: false
18
+ gem 'rubocop-minitest', '>0', require: false
19
+ gem 'rubocop-performance', '>0', require: false
20
+ gem 'rubocop-rake', '>0', require: false
21
+ gem 'simplecov', '~>0.22', require: false
22
+ gem 'simplecov-cobertura', '~>3.1', require: false
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  (The MIT License)
2
2
 
3
- Copyright (c) 2014-2023 Yegor Bugayenko
3
+ Copyright (c) 2014-2025 Yegor Bugayenko
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the 'Software'), to deal
data/LICENSES/MIT.txt ADDED
@@ -0,0 +1,21 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2014-2025 Yegor Bugayenko
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the 'Software'), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,9 +1,15 @@
1
- [![rake](https://github.com/yegor256/jekyll-plantuml/actions/workflows/rake.yml/badge.svg)](https://github.com/yegor256/jekyll-plantuml/actions/workflows/rake.yml)
2
- [![Gem Version](https://badge.fury.io/rb/jekyll-plantuml.svg)](http://badge.fury.io/rb/jekyll-plantuml)
1
+ # PlantUML Diagrams in Jekyll Static Sites
2
+
3
+ [![DevOps By Rultor.com][rultor-badge]][rultor]
4
+ [![We recommend RubyMine][rubymine-badge]][rubymine]
5
+
6
+ [![rake][rake-badge]][rake]
7
+ [![Gem Version][gem-badge]][gem]
8
+ [![Test Coverage][codecov-badge]][codecov]
3
9
 
4
10
  Install it first:
5
11
 
6
- ```
12
+ ```bash
7
13
  gem install jekyll-plantuml
8
14
  ```
9
15
 
@@ -21,46 +27,90 @@ create a plugin file within your Jekyll project's `_plugins` directory:
21
27
  require "jekyll-plantuml"
22
28
  ```
23
29
 
24
- Highly recommend to use Bundler. If you're using it, add this line
30
+ We highly recommend using Bundler. If you're using it, add this line
25
31
  to your `Gemfile`:
26
32
 
27
- ```
33
+ ```ruby
28
34
  gem "jekyll-plantuml"
29
35
  ```
30
36
 
37
+ The plugin is compatible with [Jekyll 3.9.3][jekyll-3]
38
+ and [Jekyll 4.3.2][jekyll-4].
39
+ You can find our [integration tests][test-jekylls],
40
+ which prove the compatibility.
41
+
31
42
  ## Install plantuml.jar
32
43
 
33
- Then, make sure [PlantUML](http://plantuml.sourceforge.net/download.html)
34
- is installed on your build machine, and can
44
+ Then, make sure [PlantUML][plantuml] is installed on your build machine, and can
35
45
  be executed with a simple `plantuml` command.
36
46
 
37
- For Linux user, you could create a `/usr/bin/plantuml` with contents:
38
-
39
- ```
40
- #!/bin/bash
47
+ On Ubuntu, just `apt-get install -y plantuml` should work.
48
+ However, if it doesn't, you can create a `/usr/bin/plantuml` with the
49
+ following content:
41
50
 
51
+ ```bash
52
+ #!/usr/bin/env bash
42
53
  java -jar /home/user/Downloads/plantuml.jar "$1" "$2"
43
54
  ```
44
55
 
45
- Remember to change the path to `plantuml.jar` file.
56
+ Remember to change the path to the `plantuml.jar` file.
46
57
 
47
- Then set executable permission.
58
+ Then, set the executable permission of the file:
48
59
 
49
- ```
60
+ ```bash
50
61
  chmod +x /usr/bin/plantuml
51
62
  ```
52
63
 
53
64
  ## Test
54
65
 
55
- Now, it's time to create a diagram, in your Jekyll blog page:
66
+ Now, it's time to create a diagram in your Jekyll blog page:
56
67
 
57
- ```
68
+ ```text
58
69
  {% plantuml %}
59
70
  [First] - [Second]
60
71
  {% endplantuml %}
61
72
  ```
62
73
 
63
- Now, check [this blog post](http://www.yegor256.com/2014/06/01/aop-aspectj-java-method-logging.html):
74
+ You can also include a file:
75
+
76
+ ```text
77
+ {% plantuml_file foo.uml %}
78
+ ```
79
+
80
+ Now, check [this blog post][blog-post]:
64
81
  the UML sequence diagram in it is auto-generated using exactly this plugin.
65
- The sources of the blog are available in [GitHub](https://github.com/yegor256/blog).
82
+ The sources of the blog are available in [GitHub][blog-sources].
83
+
84
+ ## How to contribute
85
+
86
+ Read [these guidelines][guidelines].
87
+ Make sure your build is green before you contribute
88
+ your pull request. You will need to have [Ruby][ruby] 2.3+ and
89
+ [Bundler][bundler] installed. Then:
90
+
91
+ ```bash
92
+ bundle update
93
+ bundle exec rake
94
+ ```
66
95
 
96
+ If it's clean and you don't see any error messages, submit your pull request.
97
+
98
+ [rultor-badge]: https://www.rultor.com/b/yegor256/jekyll-plantuml
99
+ [rultor]: https://www.rultor.com/p/yegor256/jekyll-plantuml
100
+ [rubymine-badge]: https://www.elegantobjects.org/rubymine.svg
101
+ [rubymine]: https://www.jetbrains.com/ruby/
102
+ [rake-badge]: https://github.com/yegor256/jekyll-plantuml/actions/workflows/rake.yml/badge.svg
103
+ [rake]: https://github.com/yegor256/jekyll-plantuml/actions/workflows/rake.yml
104
+ [gem-badge]: https://badge.fury.io/rb/jekyll-plantuml.svg
105
+ [gem]: https://badge.fury.io/rb/jekyll-plantuml
106
+ [codecov-badge]: https://img.shields.io/codecov/c/github/yegor256/jekyll-plantuml.svg
107
+ [codecov]: https://codecov.io/github/yegor256/jekyll-plantuml?branch=master
108
+ [jekyll-3]: https://jekyllrb.com/news/2023/01/29/jekyll-3-9-3-released/
109
+ [jekyll-4]: https://jekyllrb.com/news/2023/01/20/jekyll-4-3-2-released/
110
+ [test-jekylls]: https://github.com/yegor256/jekyll-plantuml/tree/master/test-jekylls
111
+ [plantuml]: http://plantuml.sourceforge.net/download.html
112
+ [blog-post]: http://www.yegor256.com/2014/06/01/aop-aspectj-java-method-logging.html
113
+ [blog-sources]: https://github.com/yegor256/blog
114
+ [guidelines]: https://www.yegor256.com/2014/04/15/github-guidelines.html
115
+ [ruby]: https://www.ruby-lang.org/en/
116
+ [bundler]: https://bundler.io/
data/REUSE.toml ADDED
@@ -0,0 +1,37 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ version = 1
5
+ [[annotations]]
6
+ path = [
7
+ ".DS_Store",
8
+ ".gitattributes",
9
+ ".gitignore",
10
+ ".pdd",
11
+ "**.json",
12
+ "**.md",
13
+ "**.png",
14
+ "**.svg",
15
+ "**.txt",
16
+ "**/.DS_Store",
17
+ "**/.gitignore",
18
+ "**/.pdd",
19
+ "**/*.csv",
20
+ "**/*.jpg",
21
+ "**/*.json",
22
+ "**/*.md",
23
+ "**/*.pdf",
24
+ "**/*.png",
25
+ "**/*.svg",
26
+ "**/*.txt",
27
+ "**/*.vm",
28
+ "**/CNAME",
29
+ "test/schema.puml",
30
+ "**/Gemfile.lock",
31
+ "Gemfile.lock",
32
+ "README.md",
33
+ "renovate.json",
34
+ ]
35
+ precedence = "override"
36
+ SPDX-FileCopyrightText = "Copyright (c) 2025 Yegor Bugayenko"
37
+ SPDX-License-Identifier = "MIT"
data/Rakefile CHANGED
@@ -1,26 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # (The MIT License)
4
- #
5
- # Copyright (c) 2014-2023 Yegor Bugayenko
6
- #
7
- # Permission is hereby granted, free of charge, to any person obtaining a copy
8
- # of this software and associated documentation files (the 'Software'), to deal
9
- # in the Software without restriction, including without limitation the rights
10
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- # copies of the Software, and to permit persons to whom the Software is
12
- # furnished to do so, subject to the following conditions:
13
- #
14
- # The above copyright notice and this permission notice shall be included in all
15
- # copies or substantial portions of the Software.
16
- #
17
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
24
5
 
25
6
  require 'rubygems'
26
7
  require 'rake'
@@ -35,8 +16,19 @@ def version
35
16
  Gem::Specification.load(Dir['*.gemspec'].first).version
36
17
  end
37
18
 
38
- task default: %i[clean jekylls rubocop copyright]
19
+ task default: %i[clean test jekylls rubocop]
39
20
 
21
+ require 'rake/testtask'
22
+ desc 'Run all unit tests'
23
+ Rake::TestTask.new(:test) do |test|
24
+ Rake::Cleaner.cleanup_files(['coverage'])
25
+ test.libs << 'lib' << 'test'
26
+ test.pattern = 'test/**/test_*.rb'
27
+ test.warning = true
28
+ test.verbose = false
29
+ end
30
+
31
+ desc 'Test with different versions of Jekyll'
40
32
  task :jekylls do
41
33
  sh 'cd test-jekylls; make'
42
34
  end
@@ -54,13 +46,4 @@ require 'rubocop/rake_task'
54
46
  desc 'Run RuboCop on all directories'
55
47
  RuboCop::RakeTask.new(:rubocop) do |task|
56
48
  task.fail_on_error = true
57
- task.requires << 'rubocop-rspec'
58
- end
59
-
60
- task :copyright do
61
- sh "grep -q -r '2014-#{Date.today.strftime('%Y')}' \
62
- --include '*.rb' \
63
- --include '*.txt' \
64
- --include 'Rakefile' \
65
- ."
66
49
  end
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
3
6
  require 'English'
4
7
  lib = File.expand_path('lib', __dir__)
5
8
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -20,6 +23,6 @@ Gem::Specification.new do |s|
20
23
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
24
  s.rdoc_options = ['--charset=UTF-8']
22
25
  s.extra_rdoc_files = %w[README.md LICENSE.txt]
23
- s.add_runtime_dependency 'jekyll', '>2.0'
26
+ s.add_dependency 'jekyll', '>2.0'
24
27
  s.metadata['rubygems_mfa_required'] = 'true'
25
28
  end
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ require 'jekyll'
7
+ require 'liquid'
8
+ require 'digest'
9
+ require 'fileutils'
10
+
11
+ # Jekyll main module.
12
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
13
+ # Copyright:: Copyright (c) 2014-2025 Yegor Bugayenko
14
+ # License:: MIT
15
+ class Jekyll::PlantumlFile < Liquid::Block
16
+ def initialize(tag_name, markup, tokens)
17
+ super
18
+ @html = (markup or '').strip
19
+ end
20
+
21
+ def render(context)
22
+ site = context.registers[:site]
23
+ relative_file_name = super.to_s
24
+ full_file_name = File.join(site.source, relative_file_name)
25
+ body = File.read(full_file_name)
26
+ name = Digest::MD5.hexdigest(body)
27
+ unless File.exist?(File.join(site.dest, "uml/#{name}.svg"))
28
+ # uml = File.join(site.source, "uml/#{name}.uml")
29
+ svg = File.join(site.source, "uml/#{name}.svg")
30
+ if File.exist?(svg)
31
+ puts "File #{svg} already exists (#{File.size(svg)} bytes)"
32
+ else
33
+ uml = File.join(site.source, "uml/#{name}.uml")
34
+ FileUtils.mkdir_p(File.dirname(uml))
35
+ IO.copy_stream(full_file_name, uml)
36
+ unless system("plantuml -tsvg #{uml} 2>&1")
37
+ raise "PlantUML failed to compile the following snippet (see logs above):\n#{body}\n"
38
+ end
39
+ site.static_files << Jekyll::StaticFile.new(
40
+ site, site.source, 'uml', "#{name}.svg"
41
+ )
42
+ puts "\nFile #{svg} created (#{File.size(svg)} bytes)"
43
+ end
44
+ end
45
+ "<p><object data='#{site.baseurl}/uml/#{name}.svg' type='image/svg+xml' #{@html} class='plantuml'></object></p>"
46
+ end
47
+ end
48
+
49
+ Liquid::Template.register_tag('plantuml_file', Jekyll::PlantumlFile)
@@ -1,66 +1,46 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # (The MIT License)
4
- #
5
- # Copyright (c) 2014-2023 Yegor Bugayenko
6
- #
7
- # Permission is hereby granted, free of charge, to any person obtaining a copy
8
- # of this software and associated documentation files (the 'Software'), to deal
9
- # in the Software without restriction, including without limitation the rights
10
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- # copies of the Software, and to permit persons to whom the Software is
12
- # furnished to do so, subject to the following conditions:
13
- #
14
- # The above copyright notice and this permission notice shall be included in all
15
- # copies or substantial portions of the Software.
16
- #
17
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
24
5
 
6
+ require 'jekyll'
7
+ require 'liquid'
25
8
  require 'digest'
26
9
  require 'fileutils'
10
+ require_relative 'jekyll-plantuml-file'
27
11
 
28
12
  # Jekyll main module.
29
13
  # Author:: Yegor Bugayenko (yegor256@gmail.com)
30
- # Copyright:: Copyright (c) 2014-2023 Yegor Bugayenko
14
+ # Copyright:: Copyright (c) 2014-2025 Yegor Bugayenko
31
15
  # License:: MIT
32
- module Jekyll
33
- # The main class
34
- class PlantumlBlock < Liquid::Block
35
- def initialize(tag_name, markup, tokens)
36
- super
37
- @html = (markup or '').strip
38
- end
16
+ class Jekyll::PlantumlBlock < Liquid::Block
17
+ def initialize(tag_name, markup, tokens)
18
+ super
19
+ @html = (markup or '').strip
20
+ end
39
21
 
40
- def render(context)
41
- site = context.registers[:site]
42
- name = Digest::MD5.hexdigest(super)
43
- unless File.exist?(File.join(site.dest, "uml/#{name}.svg"))
44
- uml = File.join(site.source, "uml/#{name}.uml")
45
- svg = File.join(site.source, "uml/#{name}.svg")
46
- if File.exist?(svg)
47
- puts "File #{svg} already exists (#{File.size(svg)} bytes)"
48
- else
49
- FileUtils.mkdir_p(File.dirname(uml))
50
- File.open(uml, 'w') do |f|
51
- f.write("@startuml\n")
52
- f.write(super)
53
- f.write("\n@enduml")
54
- end
55
- system("plantuml -tsvg #{uml}") or raise "PlantUML error: #{super}"
56
- site.static_files << Jekyll::StaticFile.new(
57
- site, site.source, 'uml', "#{name}.svg"
58
- )
59
- puts "File #{svg} created (#{File.size(svg)} bytes)"
22
+ def render(context)
23
+ site = context.registers[:site]
24
+ body = super.to_s
25
+ name = Digest::MD5.hexdigest(body)
26
+ unless File.exist?(File.join(site.dest, "uml/#{name}.svg"))
27
+ uml = File.join(site.source, "uml/#{name}.uml")
28
+ svg = File.join(site.source, "uml/#{name}.svg")
29
+ if File.exist?(svg)
30
+ puts "File #{svg} already exists (#{File.size(svg)} bytes)"
31
+ else
32
+ FileUtils.mkdir_p(File.dirname(uml))
33
+ File.write(uml, ["@startuml\n", body, "\n@enduml"].join)
34
+ unless system("plantuml -tsvg #{uml} 2>&1")
35
+ raise "PlantUML failed to compile the following snippet (see logs above):\n#{body}\n"
60
36
  end
37
+ site.static_files << Jekyll::StaticFile.new(
38
+ site, site.source, 'uml', "#{name}.svg"
39
+ )
40
+ puts "\nFile #{svg} created (#{File.size(svg)} bytes)"
61
41
  end
62
- "<p><object data='#{site.baseurl}/uml/#{name}.svg' type='image/svg+xml' #{@html} class='plantuml'></object></p>"
63
42
  end
43
+ "<p><object data='#{site.baseurl}/uml/#{name}.svg' type='image/svg+xml' #{@html} class='plantuml'></object></p>"
64
44
  end
65
45
  end
66
46
 
data/lib/version.rb CHANGED
@@ -1,27 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # (The MIT License)
4
- #
5
- # Copyright (c) 2014-2023 Yegor Bugayenko
6
- #
7
- # Permission is hereby granted, free of charge, to any person obtaining a copy
8
- # of this software and associated documentation files (the 'Software'), to deal
9
- # in the Software without restriction, including without limitation the rights
10
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- # copies of the Software, and to permit persons to whom the Software is
12
- # furnished to do so, subject to the following conditions:
13
- #
14
- # The above copyright notice and this permission notice shall be included in all
15
- # copies or substantial portions of the Software.
16
- #
17
- # THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- # SOFTWARE.
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
24
5
 
25
6
  module PlantUML
26
- VERSION = '1.4.1'
7
+ VERSION = '1.5.0'
27
8
  end
data/renovate.json CHANGED
@@ -2,5 +2,9 @@
2
2
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
3
  "extends": [
4
4
  "config:base"
5
+ ],
6
+ "ignorePaths": [
7
+ "jekyll-tests/jekyll-3/Gemfile",
8
+ "jekyll-tests/jekyll-4/Gemfile"
5
9
  ]
6
10
  }
data/test/schema.puml ADDED
@@ -0,0 +1,3 @@
1
+ @startuml
2
+ [A] -> [B]
3
+ @enduml
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ $stdout.sync = true
7
+
8
+ require 'simplecov'
9
+ require 'simplecov-cobertura'
10
+ unless SimpleCov.running
11
+ SimpleCov.command_name('test')
12
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new(
13
+ [
14
+ SimpleCov::Formatter::HTMLFormatter,
15
+ SimpleCov::Formatter::CoberturaFormatter
16
+ ]
17
+ )
18
+ SimpleCov.minimum_coverage 80
19
+ SimpleCov.minimum_coverage_by_file 80
20
+ SimpleCov.start do
21
+ add_filter 'test/'
22
+ add_filter 'vendor/'
23
+ add_filter 'target/'
24
+ track_files 'lib/**/*.rb'
25
+ track_files '*.rb'
26
+ end
27
+ end
28
+
29
+ require 'minitest/autorun'
30
+ require 'minitest/reporters'
31
+ Minitest::Reporters.use! [Minitest::Reporters::SpecReporter.new]
32
+ Minitest.load :minitest_reporter
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ require 'liquid'
7
+ require 'tmpdir'
8
+ require_relative 'test__helper'
9
+ require_relative '../lib/jekyll-plantuml-file'
10
+
11
+ # PlantumlBlock test.
12
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
13
+ # Copyright:: Copyright (c) 2023-2025 Yegor Bugayenko
14
+ # License:: MIT
15
+ class PlantumlFileTest < Minitest::Test
16
+ def test_failure
17
+ schema_file = File.join(Dir.getwd, 'test/schema.puml')
18
+ puts "Schema file: #{schema_file}"
19
+ Dir.mktmpdir 'test' do |dir|
20
+ template = Liquid::Template.parse('{% plantuml_file %}schema.puml{% endplantuml_file %}')
21
+ source_dir = File.join(dir, 'source')
22
+ target_file = File.join(source_dir, 'schema.puml')
23
+ puts "Target file: #{target_file}"
24
+ puts "Folder exists: #{File.exist?(dir)}"
25
+ puts "File exists: #{File.exist?(schema_file)}"
26
+ FileUtils.mkdir_p(source_dir)
27
+ FileUtils.cp(schema_file, target_file)
28
+ puts "File exists after: #{File.exist?(target_file)}"
29
+ config = {
30
+ 'destination' => File.join(dir, 'dest'),
31
+ 'source' => source_dir
32
+ }
33
+ context = Liquid::Context.new({}, {}, { site: Jekyll::Site.new(Jekyll.configuration(config)) })
34
+ block = template.root.nodelist.first
35
+ output = block.render(context)
36
+ assert(output.start_with?('<p><object'))
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ require 'liquid'
7
+ require 'tmpdir'
8
+ require_relative 'test__helper'
9
+ require_relative '../lib/jekyll-plantuml'
10
+
11
+ # PlantumlBlock test.
12
+ # Author:: Yegor Bugayenko (yegor256@gmail.com)
13
+ # Copyright:: Copyright (c) 2023-2025 Yegor Bugayenko
14
+ # License:: MIT
15
+ class PlantumlBlockTest < Minitest::Test
16
+ def test_failure
17
+ Dir.mktmpdir 'test' do |dir|
18
+ template = Liquid::Template.parse('{% plantuml %}[A] -> [B]{% endplantuml %}')
19
+ config = {
20
+ 'destination' => File.join(dir, 'dest'),
21
+ 'source' => File.join(dir, 'source')
22
+ }
23
+ context = Liquid::Context.new({}, {}, { site: Jekyll::Site.new(Jekyll.configuration(config)) })
24
+ block = template.root.nodelist.first
25
+ output = block.render(context)
26
+ assert(output.start_with?('<p><object'))
27
+ end
28
+ end
29
+ end
@@ -1,2 +1,2 @@
1
1
  _site/
2
- uml/
2
+ uml/
@@ -1,3 +1,6 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+
1
4
  .ONESHELL:
2
5
  .SHELLFLAGS: -e -o pipefail -c
3
6
  .PHONY: clean sa env lint
@@ -10,4 +13,4 @@ all:
10
13
  cd $${t}
11
14
  bundle install
12
15
  bundle exec jekyll build
13
- done
16
+ done
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ source 'https://rubygems.org'
7
+
8
+ gem 'jekyll', '4.4.1'
9
+ gem 'jekyll-plantuml', path: '../..'
10
+ gem 'kramdown', '2.5.1'
11
+ gem 'kramdown-parser-gfm', '1.1.0'
12
+ gem 'liquid', '4.0.4'
@@ -1,3 +1,6 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
1
4
  title: simple
2
5
  markdown: kramdown
3
6
  encoding: utf-8
@@ -0,0 +1,12 @@
1
+ ---
2
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ layout: default
6
+ ---
7
+ <!DOCTYPE html>
8
+ <html>
9
+ <body>
10
+ {{ content }}
11
+ </body>
12
+ </html>
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
4
+ # SPDX-License-Identifier: MIT
5
+
6
+ source 'https://rubygems.org'
7
+
8
+ gem 'jekyll', '4.4.1'
9
+ gem 'jekyll-plantuml', path: '../..'
10
+ gem 'kramdown', '2.5.1'
11
+ gem 'liquid', '4.0.4'
@@ -0,0 +1,9 @@
1
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
2
+ # SPDX-License-Identifier: MIT
3
+ ---
4
+ title: simple
5
+ markdown: kramdown
6
+ encoding: utf-8
7
+ timezone: Europe/Moscow
8
+ plugins:
9
+ - jekyll-plantuml
@@ -0,0 +1,12 @@
1
+ ---
2
+ # SPDX-FileCopyrightText: Copyright (c) 2014-2025 Yegor Bugayenko
3
+ # SPDX-License-Identifier: MIT
4
+
5
+ layout: default
6
+ ---
7
+ <!DOCTYPE html>
8
+ <html>
9
+ <body>
10
+ {{ content }}
11
+ </body>
12
+ </html>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ date: 2023-06-02
4
+ title: "Test"
5
+ ---
6
+
7
+ This is just a test:
8
+
9
+ {% plantuml %}
10
+ [First] - [Second]
11
+ {% endplantuml %}
12
+
13
+ This is another test:
14
+
15
+ ```plantuml
16
+ [First] - [Second]
17
+ ```
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-plantuml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-02 00:00:00.000000000 Z
11
+ date: 2025-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -33,28 +33,45 @@ extra_rdoc_files:
33
33
  - LICENSE.txt
34
34
  files:
35
35
  - ".0pdd.yml"
36
+ - ".github/workflows/actionlint.yml"
37
+ - ".github/workflows/codecov.yml"
38
+ - ".github/workflows/copyrights.yml"
39
+ - ".github/workflows/markdown-lint.yml"
36
40
  - ".github/workflows/pdd.yml"
37
41
  - ".github/workflows/rake.yml"
42
+ - ".github/workflows/reuse.yml"
43
+ - ".github/workflows/typos.yml"
38
44
  - ".github/workflows/xcop.yml"
45
+ - ".github/workflows/yamllint.yml"
39
46
  - ".gitignore"
40
47
  - ".pdd"
41
48
  - ".rubocop.yml"
42
49
  - ".rultor.yml"
43
- - ".travis.yml"
44
50
  - Gemfile
45
51
  - LICENSE.txt
52
+ - LICENSES/MIT.txt
46
53
  - README.md
54
+ - REUSE.toml
47
55
  - Rakefile
48
56
  - jekyll-plantuml.gemspec
57
+ - lib/jekyll-plantuml-file.rb
49
58
  - lib/jekyll-plantuml.rb
50
59
  - lib/version.rb
51
60
  - renovate.json
52
61
  - test-jekylls/.gitignore
53
62
  - test-jekylls/Makefile
54
- - test-jekylls/simple/Gemfile
55
- - test-jekylls/simple/_config.yml
56
- - test-jekylls/simple/_layouts/default.html
57
- - test-jekylls/simple/_posts/2023/06/2023-06-02-test.md
63
+ - test-jekylls/jekyll-3/Gemfile
64
+ - test-jekylls/jekyll-3/_config.yml
65
+ - test-jekylls/jekyll-3/_layouts/default.html
66
+ - test-jekylls/jekyll-3/_posts/2023/06/2023-06-02-test.md
67
+ - test-jekylls/jekyll-4/Gemfile
68
+ - test-jekylls/jekyll-4/_config.yml
69
+ - test-jekylls/jekyll-4/_layouts/default.html
70
+ - test-jekylls/jekyll-4/_posts/2023/06/2023-06-02-test.md
71
+ - test/schema.puml
72
+ - test/test__helper.rb
73
+ - test/test_plantuml-file.rb
74
+ - test/test_plantuml.rb
58
75
  homepage: https://github.com/yegor256/jekyll-plantuml
59
76
  licenses:
60
77
  - MIT
@@ -76,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
93
  - !ruby/object:Gem::Version
77
94
  version: '0'
78
95
  requirements: []
79
- rubygems_version: 3.2.15
96
+ rubygems_version: 3.4.10
80
97
  signing_key:
81
98
  specification_version: 4
82
99
  summary: Jekyll PlantUML Automation
data/.travis.yml DELETED
@@ -1,12 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.2
4
- cache: bundler
5
- branches:
6
- only:
7
- - master
8
- install:
9
- - travis_retry bundle install
10
- script:
11
- - rake
12
-
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'jekyll', '4.3.2'
6
- gem 'jekyll-plantuml', path: '../..'
@@ -1,9 +0,0 @@
1
- ---
2
- layout: default
3
- ---
4
- <!DOCTYPE html>
5
- <html>
6
- <body>
7
- {{ content }}
8
- </body>
9
- </html>