metanorma-plugin-plantuml 1.0.11 → 1.0.12

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: 4a9dc46ceb4aed5eff41d52b6b3a6b1d573de8252e9ebf07f85900c64bd6a5c6
4
- data.tar.gz: 2ee8ea8ba63959c3acdb56f59d3394282665d449dcc3347af818b7abbfb1842f
3
+ metadata.gz: b635a5dfe71978c68c5d25aad6ed5009977f4a0e3b87a7ea7444468dc23008ff
4
+ data.tar.gz: 9760c4cf9e48ebe43d3cf6316595afe312a3018df60791a1f2cad3afe2fadacf
5
5
  SHA512:
6
- metadata.gz: e1b0f4c83fe709bd696fa8127b34d4f6c81b63dd0b47ce76373ddccb104c30e941ac83a0a8570a6a59225f619f80c12b6c6fa64bf851c51cecf02d25f1833796
7
- data.tar.gz: 0611c215c642d3ef3c5f4ac45d09bb8f0806dabe89fbf107b1164d3c63d67405358ae9abb37a46b1a46e6b3c7274b4bcaba28d30163e6f6de563bfa8e16cc5c0
6
+ metadata.gz: 899eb66d03ea96b6386b3f321efc0553bb26b4ad056ac0b349e77eb0bdac0f5bd0e7fe4883afb7cddf4b2b951049955453ba7e72eca6c5fcfece2204b7e4889f
7
+ data.tar.gz: 1efb319e324426556997d9be2a93f3b769a6b6d95cb9c2b8aa01627d73b062a78ad15dc91809732575c41f33d5ee015cd70e5d9d528bf60e88dd93df487fc57d
data/.rubocop_todo.yml CHANGED
@@ -1,20 +1,54 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2025-10-03 01:36:37 UTC using RuboCop version 1.81.1.
3
+ # on 2026-05-11 11:55:58 UTC using RuboCop version 1.86.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
9
  # Offense count: 1
10
- # Configuration parameters: Severity.
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation.
12
+ Bundler/OrderedGems:
13
+ Exclude:
14
+ - 'Gemfile'
15
+
16
+ # Offense count: 1
17
+ # This cop supports safe autocorrection (--autocorrect).
18
+ Gemspec/RequireMFA:
19
+ Exclude:
20
+ - 'metanorma-plugin-plantuml.gemspec'
21
+
22
+ # Offense count: 1
11
23
  Gemspec/RequiredRubyVersion:
12
24
  Exclude:
13
25
  - 'metanorma-plugin-plantuml.gemspec'
14
26
 
15
- # Offense count: 11
27
+ # Offense count: 2
16
28
  # This cop supports safe autocorrection (--autocorrect).
17
- # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings.
29
+ Layout/EmptyLinesAfterModuleInclusion:
30
+ Exclude:
31
+ - 'lib/metanorma/plugin/plantuml/block_processor.rb'
32
+ - 'lib/metanorma/plugin/plantuml/image_block_macro_processor.rb'
33
+
34
+ # Offense count: 1
35
+ # This cop supports safe autocorrection (--autocorrect).
36
+ # Configuration parameters: EnforcedStyle.
37
+ # SupportedStyles: normal, indented_internal_methods
38
+ Layout/IndentationConsistency:
39
+ Exclude:
40
+ - 'metanorma-plugin-plantuml.gemspec'
41
+
42
+ # Offense count: 1
43
+ # This cop supports safe autocorrection (--autocorrect).
44
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation.
45
+ Layout/LeadingCommentSpace:
46
+ Exclude:
47
+ - 'spec/spec_helper.rb'
48
+
49
+ # Offense count: 8
50
+ # This cop supports safe autocorrection (--autocorrect).
51
+ # Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
18
52
  # URISchemes: http, https
19
53
  Layout/LineLength:
20
54
  Exclude:
@@ -24,30 +58,54 @@ Layout/LineLength:
24
58
  - 'lib/metanorma/plugin/plantuml/wrapper.rb'
25
59
  - 'spec/metanorma/plugin/plantuml/plantuml_integration_spec.rb'
26
60
 
27
- # Offense count: 3
28
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
29
- Metrics/AbcSize:
61
+ # Offense count: 4
62
+ # This cop supports unsafe autocorrection (--autocorrect-all).
63
+ Lint/NonAtomicFileOperation:
30
64
  Exclude:
31
- - 'Rakefile'
65
+ - 'lib/metanorma/plugin/plantuml/wrapper.rb'
66
+ - 'spec/metanorma/plugin/plantuml/backend_spec.rb'
67
+ - 'spec/metanorma/plugin/plantuml/block_processor_spec.rb'
68
+ - 'spec/metanorma/plugin/plantuml/filename_handling_spec.rb'
32
69
 
33
70
  # Offense count: 1
34
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
35
- # AllowedMethods: refine
36
- Metrics/BlockLength:
71
+ # This cop supports unsafe autocorrection (--autocorrect-all).
72
+ Lint/RedundantDirGlobSort:
37
73
  Exclude:
38
- - 'Rakefile'
74
+ - 'spec/metanorma/plugin/plantuml/individual_fixture_tests_spec.rb'
39
75
 
40
- # Offense count: 8
41
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
42
- Metrics/MethodLength:
76
+ # Offense count: 2
77
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
78
+ Metrics/AbcSize:
43
79
  Exclude:
44
80
  - 'Rakefile'
45
- - 'lib/metanorma/plugin/plantuml/block_processor.rb'
46
- - 'lib/metanorma/plugin/plantuml/image_block_macro_processor.rb'
47
- - 'lib/metanorma/plugin/plantuml/wrapper.rb'
48
81
 
49
82
  # Offense count: 1
50
83
  # Configuration parameters: AllowedMethods, AllowedPatterns, Max.
51
84
  Metrics/PerceivedComplexity:
52
85
  Exclude:
53
86
  - 'Rakefile'
87
+
88
+ # Offense count: 1
89
+ Performance/MapMethodChain:
90
+ Exclude:
91
+ - 'lib/metanorma/plugin/plantuml/block_processor_base.rb'
92
+
93
+ # Offense count: 1
94
+ # This cop supports unsafe autocorrection (--autocorrect-all).
95
+ Performance/UnfreezeString:
96
+ Exclude:
97
+ - 'spec/metanorma/plugin/plantuml/individual_fixture_tests_spec.rb'
98
+
99
+ # Offense count: 1
100
+ # This cop supports safe autocorrection (--autocorrect).
101
+ Style/RedundantRegexpArgument:
102
+ Exclude:
103
+ - 'spec/metanorma/plugin/plantuml/plantuml_integration_spec.rb'
104
+
105
+ # Offense count: 2
106
+ # This cop supports safe autocorrection (--autocorrect).
107
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
108
+ # SupportedStyles: single_quotes, double_quotes
109
+ Style/StringLiterals:
110
+ Exclude:
111
+ - 'metanorma-plugin-plantuml.gemspec'
data/Gemfile CHANGED
@@ -6,8 +6,9 @@ gemspec
6
6
 
7
7
  gem "benchmark"
8
8
  gem "canon"
9
- gem "metanorma"
10
- gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "fix/ruby-4.0"
9
+ gem "metanorma", github: "metanorma/metanorma", branch: "main"
10
+ gem "metanorma-plugin-lutaml", github: "metanorma/metanorma-plugin-lutaml", branch: "fix/ruby-4.0"
11
+ gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "main"
11
12
  gem "octokit"
12
13
  gem "rake"
13
14
  gem "rspec"
@@ -6,6 +6,7 @@ module Metanorma
6
6
  # PlantUML block processor
7
7
  class BlockProcessor < ::Asciidoctor::Extensions::BlockProcessor
8
8
  include ::Metanorma::Plugin::Plantuml::BlockProcessorBase
9
+
9
10
  use_dsl
10
11
  named :plantuml
11
12
  on_context :literal
@@ -6,6 +6,7 @@ module Metanorma
6
6
  # PlantUML block processor
7
7
  class ImageBlockMacroProcessor < ::Asciidoctor::Extensions::BlockMacroProcessor
8
8
  include ::Metanorma::Plugin::Plantuml::BlockProcessorBase
9
+
9
10
  use_dsl
10
11
  named :plantuml_image
11
12
 
@@ -3,7 +3,7 @@
3
3
  module Metanorma
4
4
  module Plugin
5
5
  module Plantuml
6
- VERSION = "1.0.11"
6
+ VERSION = "1.0.12"
7
7
  PLANTUML_JAR_VERSION = "1.2026.2"
8
8
  end
9
9
  end
@@ -120,7 +120,7 @@ module Metanorma
120
120
 
121
121
  def generate_to_file(content, format, output_file, options)
122
122
  output_dir = File.dirname(output_file)
123
- FileUtils.mkdir_p(output_dir) unless Dir.exist?(output_dir)
123
+ FileUtils.mkdir_p(output_dir)
124
124
 
125
125
  execute_plantuml(content, format, output_file, options)
126
126
 
@@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
31
31
  spec.required_ruby_version = ">= 2.7.0"
32
32
 
33
33
  spec.add_dependency "asciidoctor"
34
+ spec.metadata["rubygems_mfa_required"] = "true"
34
35
  end
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.11
4
+ version: 1.0.12
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-04-20 00:00:00.000000000 Z
11
+ date: 2026-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor
@@ -38,7 +38,6 @@ files:
38
38
  - ".rubocop.yml"
39
39
  - ".rubocop_todo.yml"
40
40
  - Gemfile
41
- - Gemfile.devel
42
41
  - LICENSE
43
42
  - README.adoc
44
43
  - Rakefile
@@ -63,7 +62,8 @@ files:
63
62
  homepage: https://github.com/metanorma/metanorma-plugin-plantuml
64
63
  licenses:
65
64
  - BSD-2-Clause
66
- metadata: {}
65
+ metadata:
66
+ rubygems_mfa_required: 'true'
67
67
  post_install_message:
68
68
  rdoc_options: []
69
69
  require_paths:
data/Gemfile.devel DELETED
@@ -1,2 +0,0 @@
1
- gem "metanorma-standoc", github: "metanorma/metanorma-standoc", branch: "fix/ruby-4.0"
2
-