metanorma-plugin-plantuml 1.0.15 → 1.0.16
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/.github/workflows/plantuml-version-sync.yml +1 -1
- data/.github/workflows/rake.yml +18 -10
- data/.github/workflows/release.yml +10 -5
- data/.rubocop.yml +22 -21
- data/Gemfile +2 -3
- data/Rakefile +4 -4
- data/data/plantuml.jar +0 -0
- data/lib/metanorma/plugin/plantuml/block_processor.rb +1 -1
- data/lib/metanorma/plugin/plantuml/image_block_macro_processor.rb +2 -2
- data/lib/metanorma/plugin/plantuml/version.rb +2 -2
- data/lib/metanorma/plugin/plantuml/wrapper.rb +1 -1
- data/metanorma-plugin-plantuml.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 46eb18290829b4d1eef074b2dc867eb8eea97cfb2c48355e4b48eb92a9628d3a
|
|
4
|
+
data.tar.gz: 806423a7663af7268cf97822c1d732b5e0ce7c2c99dd78121cfc362059e3d1c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 766dd99ecb66bf79516473781b65a4b3408353d5c0f085498bf4c437aeb981af02c5755d5c98d18efb7b372a0f6683275c147c86cfb9ced279592038b40b8167
|
|
7
|
+
data.tar.gz: 067ff54f0c564d907d222ae62a378c4683a2539fe807f0180493f9acc276a07ad6aa6cd5ef500d563d4e87084a79f9c26c89d32c1ed4959faf22be1d5cee84b7
|
data/.github/workflows/rake.yml
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
#
|
|
2
|
-
#
|
|
1
|
+
# Formerly cimas-managed. Now consumer-owned per metanorma/cimas#68
|
|
2
|
+
# (workflow-file conversion from cimas-synced copied stubs to reusable-workflow
|
|
3
|
+
# references). Pins metanorma/ci reusable at @v1 (moving major, three-tier
|
|
4
|
+
# tagging discipline per metanorma/ci#372).
|
|
3
5
|
name: rake
|
|
4
6
|
|
|
5
|
-
permissions:
|
|
6
|
-
contents: read
|
|
7
|
-
|
|
8
7
|
on:
|
|
8
|
+
workflow_dispatch:
|
|
9
9
|
push:
|
|
10
10
|
branches: [ master, main ]
|
|
11
11
|
tags: [ v* ]
|
|
12
12
|
pull_request:
|
|
13
13
|
|
|
14
|
+
permissions:
|
|
15
|
+
contents: write
|
|
16
|
+
|
|
14
17
|
jobs:
|
|
15
18
|
rake:
|
|
16
|
-
uses: metanorma/ci/.github/workflows/generic-rake.yml@
|
|
17
|
-
with:
|
|
18
|
-
setup-tools: graphviz
|
|
19
|
-
submodules: true
|
|
20
|
-
choco-cache: true
|
|
19
|
+
uses: metanorma/ci/.github/workflows/generic-rake.yml@v1
|
|
21
20
|
secrets:
|
|
22
21
|
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
|
22
|
+
with:
|
|
23
|
+
after-setup-ruby: |
|
|
24
|
+
# Install Graphviz for PlantUML
|
|
25
|
+
if [ "$RUNNER_OS" = "Linux" ]; then
|
|
26
|
+
sudo apt-get update
|
|
27
|
+
sudo apt-get install -y graphviz
|
|
28
|
+
elif [ "$RUNNER_OS" = "macOS" ]; then
|
|
29
|
+
brew install graphviz
|
|
30
|
+
fi
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
# See https://github.com/metanorma/cimas
|
|
3
3
|
name: release
|
|
4
4
|
|
|
5
|
-
permissions:
|
|
6
|
-
contents: write
|
|
7
|
-
packages: write
|
|
8
|
-
id-token: write
|
|
9
|
-
|
|
10
5
|
on:
|
|
11
6
|
workflow_dispatch:
|
|
12
7
|
inputs:
|
|
@@ -24,6 +19,16 @@ jobs:
|
|
|
24
19
|
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
|
25
20
|
with:
|
|
26
21
|
next_version: ${{ github.event.inputs.next_version }}
|
|
22
|
+
# Explicit release_command needed since metanorma/ci#314 deprecated
|
|
23
|
+
# `bundler_cache` (hardcoded to false) — the reusable's release job no
|
|
24
|
+
# longer runs `bundle install` implicitly via ruby/setup-ruby, so the
|
|
25
|
+
# default `bundle exec rake release` fires against uninstalled gems.
|
|
26
|
+
# Surfaced by kwkwan on metanorma-plugin-lutaml#285. Deeper fix
|
|
27
|
+
# (bundle install inside rubygems-release.yml's release job) tracked
|
|
28
|
+
# separately.
|
|
29
|
+
release_command: |
|
|
30
|
+
bundle install
|
|
31
|
+
bundle exec rake release
|
|
27
32
|
secrets:
|
|
28
33
|
rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
|
|
29
34
|
pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
|
data/.rubocop.yml
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
# Auto-generated by Cimas: Do not edit it manually!
|
|
2
2
|
# See https://github.com/metanorma/cimas
|
|
3
|
-
plugins:
|
|
4
|
-
- rubocop-performance
|
|
5
|
-
|
|
6
3
|
inherit_from:
|
|
7
|
-
- .rubocop_todo.yml
|
|
8
4
|
- https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
|
|
5
|
+
# .rubocop_todo.yml MUST be the last entry. inherit_from is last-wins:
|
|
6
|
+
# if listed before oss-guides, the shared config's stricter Metrics/
|
|
7
|
+
# (MethodLength, BlockLength, etc.) rules override the todo's per-file
|
|
8
|
+
# grandfathering, and the todo becomes inert on those cops. Empirically
|
|
9
|
+
# verified on suma 2026-07-06: with todo listed first, 34 Metrics/* offenses
|
|
10
|
+
# remained; moved last, cleared. Every gem in the metanorma-org fleet
|
|
11
|
+
# already ships a `.rubocop_todo.yml` on its live tree (audited 2026-07-06,
|
|
12
|
+
# 54/54 have it), so this reference is safe to emit unconditionally.
|
|
13
|
+
- .rubocop_todo.yml
|
|
14
|
+
|
|
15
|
+
# Rubocop plugins enabled centrally so every metanorma-org gem picks them up
|
|
16
|
+
# on cimas sync — best practice belongs at the shared-template layer, not
|
|
17
|
+
# per-repo. Per ronaldtse feedback on metanorma/ci#332.
|
|
18
|
+
plugins:
|
|
19
|
+
# - rubocop-rspec
|
|
20
|
+
# - rubocop-performance
|
|
21
|
+
# - rubocop-rake
|
|
9
22
|
|
|
10
23
|
# local repo-specific modifications
|
|
11
24
|
# ...
|
|
12
25
|
|
|
13
|
-
Metrics/CyclomaticComplexity:
|
|
14
|
-
Max: 10
|
|
15
|
-
|
|
16
|
-
Metrics/BlockLength:
|
|
17
|
-
Exclude:
|
|
18
|
-
- 'Rakefile'
|
|
19
|
-
- 'spec/**/*'
|
|
20
|
-
|
|
21
|
-
Metrics/MethodLength:
|
|
22
|
-
Exclude:
|
|
23
|
-
- 'Rakefile'
|
|
24
|
-
- 'lib/metanorma/plugin/plantuml/block_processor.rb'
|
|
25
|
-
- 'lib/metanorma/plugin/plantuml/image_block_macro_processor.rb'
|
|
26
|
-
- 'lib/metanorma/plugin/plantuml/wrapper.rb'
|
|
27
|
-
- 'spec/**/*'
|
|
28
|
-
|
|
29
26
|
AllCops:
|
|
30
|
-
|
|
27
|
+
# 3.3 matches the org-wide minimum being pushed via #274 (Raise minimum
|
|
28
|
+
# Ruby version to 3.3 due to EOL of 3.2 on 2026-03-31). Was 3.4 before
|
|
29
|
+
# this commit — 3.4 was above the org's stated minimum and would have
|
|
30
|
+
# applied Rubocop rules that fail-close on gems still targeting 3.3.
|
|
31
|
+
TargetRubyVersion: 3.3
|
data/Gemfile
CHANGED
|
@@ -7,9 +7,8 @@ gemspec
|
|
|
7
7
|
gem "benchmark"
|
|
8
8
|
gem "canon"
|
|
9
9
|
gem "metanorma", github: "metanorma/metanorma", branch: "main"
|
|
10
|
-
gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml"
|
|
11
|
-
|
|
12
|
-
gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "main"
|
|
10
|
+
gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml"
|
|
11
|
+
gem "metanorma-standoc"
|
|
13
12
|
gem "octokit"
|
|
14
13
|
gem "rake"
|
|
15
14
|
gem "rspec"
|
data/Rakefile
CHANGED
|
@@ -31,7 +31,7 @@ def github_client
|
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
def find_latest_valid_plantuml_release
|
|
34
|
+
def find_latest_valid_plantuml_release # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity
|
|
35
35
|
puts "Searching for latest valid PlantUML release..."
|
|
36
36
|
|
|
37
37
|
client = github_client
|
|
@@ -78,7 +78,7 @@ def current_gem_version
|
|
|
78
78
|
Metanorma::Plugin::Plantuml::VERSION
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
def update_version_file(new_plantuml_version)
|
|
81
|
+
def update_version_file(new_plantuml_version) # rubocop:disable Metrics/MethodLength
|
|
82
82
|
version_file = "lib/metanorma/plugin/plantuml/version.rb"
|
|
83
83
|
content = File.read(version_file)
|
|
84
84
|
|
|
@@ -118,7 +118,7 @@ def increment_gem_version(current_version)
|
|
|
118
118
|
segments.join(".")
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
def test_plantuml_jar
|
|
121
|
+
def test_plantuml_jar # rubocop:disable Metrics/MethodLength
|
|
122
122
|
jar_file = "data/plantuml.jar"
|
|
123
123
|
|
|
124
124
|
raise "PlantUML JAR file not found: #{jar_file}" unless File.exist?(jar_file)
|
|
@@ -199,7 +199,7 @@ task :test_plantuml do
|
|
|
199
199
|
end
|
|
200
200
|
|
|
201
201
|
desc "Update PlantUML to latest version"
|
|
202
|
-
task :update_plantuml do
|
|
202
|
+
task :update_plantuml do # rubocop:disable Metrics/BlockLength
|
|
203
203
|
puts "Checking for PlantUML updates..."
|
|
204
204
|
|
|
205
205
|
current_version = current_plantuml_version
|
data/data/plantuml.jar
CHANGED
|
Binary file
|
|
@@ -9,7 +9,7 @@ module Metanorma
|
|
|
9
9
|
use_dsl
|
|
10
10
|
named :plantuml_image
|
|
11
11
|
|
|
12
|
-
def process(parent, target, attrs)
|
|
12
|
+
def process(parent, target, attrs) # rubocop:disable Metrics/MethodLength
|
|
13
13
|
display_text = target
|
|
14
14
|
|
|
15
15
|
if parent.document.attr("plantuml-disabled")
|
|
@@ -52,7 +52,7 @@ module Metanorma
|
|
|
52
52
|
includedirs.compact.uniq
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
-
def parse_options(parent, target, attrs) # rubocop:disable Metrics/AbcSize
|
|
55
|
+
def parse_options(parent, target, attrs) # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
|
|
56
56
|
options = {}
|
|
57
57
|
|
|
58
58
|
options[:includedirs] = parse_doc_includedirs(parent.document)
|
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
29
29
|
spec.require_paths = ["lib"]
|
|
30
30
|
|
|
31
|
-
spec.required_ruby_version = ">=
|
|
31
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.3.0")
|
|
32
32
|
|
|
33
33
|
spec.add_dependency "asciidoctor"
|
|
34
34
|
spec.metadata["rubygems_mfa_required"] = "true"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: metanorma-plugin-plantuml
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-09-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: asciidoctor
|
|
@@ -73,7 +73,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
73
73
|
requirements:
|
|
74
74
|
- - ">="
|
|
75
75
|
- !ruby/object:Gem::Version
|
|
76
|
-
version:
|
|
76
|
+
version: 3.3.0
|
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - ">="
|