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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c4b579643b6072bf87b205256a322daee254f200b829539d5f972da33ac46c0
4
- data.tar.gz: 3ba87fc795b42832ee26a4dce6450d83c53c5625d24e0ab17fa51cf056b60feb
3
+ metadata.gz: 46eb18290829b4d1eef074b2dc867eb8eea97cfb2c48355e4b48eb92a9628d3a
4
+ data.tar.gz: 806423a7663af7268cf97822c1d732b5e0ce7c2c99dd78121cfc362059e3d1c2
5
5
  SHA512:
6
- metadata.gz: d602eddb79c725717821bdeaeb1bc9eba1a7c67f2e1096ce282b288d5f958cd8af9432fbeecddf55ae285eb0d4e608cca4f844a582f56d384f1b236ad109e153
7
- data.tar.gz: 1eb514f53f64d1782efd2d5e9b375478e08501bea47394450f34001fadbb7494ccfda070022fb9b5ea7a56e994e0b80bb06be1ffc441ef9ce90b59b49a27b156
6
+ metadata.gz: 766dd99ecb66bf79516473781b65a4b3408353d5c0f085498bf4c437aeb981af02c5755d5c98d18efb7b372a0f6683275c147c86cfb9ced279592038b40b8167
7
+ data.tar.gz: 067ff54f0c564d907d222ae62a378c4683a2539fe807f0180493f9acc276a07ad6aa6cd5ef500d563d4e87084a79f9c26c89d32c1ed4959faf22be1d5cee84b7
@@ -24,7 +24,7 @@ jobs:
24
24
  - name: Set up Ruby
25
25
  uses: ruby/setup-ruby@v1
26
26
  with:
27
- ruby-version: '3.1'
27
+ ruby-version: '3.3'
28
28
  bundler-cache: true
29
29
 
30
30
  - uses: metanorma/ci/graphviz-setup-action@main
@@ -1,22 +1,30 @@
1
- # Auto-generated by Cimas: Do not edit it manually!
2
- # See https://github.com/metanorma/cimas
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@main
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
- TargetRubyVersion: 3.1
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
- branch: "fix/ruby-4.0"
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
@@ -11,7 +11,7 @@ module Metanorma
11
11
  on_context :literal
12
12
  parse_content_as :raw
13
13
 
14
- def process(parent, reader, attrs)
14
+ def process(parent, reader, attrs) # rubocop:disable Metrics/MethodLength
15
15
  source = reader.source
16
16
 
17
17
  if parent.document.attr("plantuml-disabled")
@@ -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)
@@ -3,8 +3,8 @@
3
3
  module Metanorma
4
4
  module Plugin
5
5
  module Plantuml
6
- VERSION = "1.0.15"
7
- PLANTUML_JAR_VERSION = "1.2026.3"
6
+ VERSION = "1.0.16"
7
+ PLANTUML_JAR_VERSION = "1.2026.8"
8
8
  end
9
9
  end
10
10
  end
@@ -43,7 +43,7 @@ module Metanorma
43
43
  { success: false, error: e }
44
44
  end
45
45
 
46
- def get_include_files(content, _options)
46
+ def get_include_files(content, _options) # rubocop:disable Metrics/MethodLength
47
47
  include_files = []
48
48
  content.each_line do |line|
49
49
  case line
@@ -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 = ">= 2.7.0"
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.15
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-05-12 00:00:00.000000000 Z
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: 2.7.0
76
+ version: 3.3.0
77
77
  required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - ">="