metanorma-plugin-lutaml 0.4.17 → 0.4.18

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: b9de85f722161434bc11ef77517f1e739db67b01608aead2e935b8a38ff6594d
4
- data.tar.gz: bf10f9594b2cf84b594c1dba9012e9979f1c3b3fd0339892f7302882039f7a9e
3
+ metadata.gz: 6c9422de6e2f133c37c7cae0195312bf6ca63f763a544535fbe21f62f4c1b7ef
4
+ data.tar.gz: 4a88c4264ab7f8f6bca636902d3e06c17b0aa2ca349fb7c7f1ee9240eb4c13c2
5
5
  SHA512:
6
- metadata.gz: e6125065c5246f84dee92b5894f0ffb5353c55cc1b8fc3e5355e738096b4db1b005a9ef5913070c6d2130cff77338c0913e3d8ba8bb93ef7a619415cfe2ae6a8
7
- data.tar.gz: a77a4b168701ea0a425fd6bdf9cff83195926c16ff1be07db7bbb775e7d43d29a74d7754e9e43aeda508a16bd0d5096aee84c1dca5e1c4fa949de617cf5781a9
6
+ metadata.gz: '08e44fa7e98636dcabccc17c1f43bd7abec874328c5e8db2f6005bb9804e75e6b427aad4a2c41157f8fdb54a846014c3041b8aded4b4071f1802351ad2add5ae'
7
+ data.tar.gz: 32aa9bd9de63aa8c07517ed72425685f565c600f4f9e8996fcebbc5fbe8afdfcb77e130f4f499b0ba5dce36e85f9dfa6c33f5e8b52f103175d6ab8700e69ed6e
@@ -10,6 +10,6 @@ on:
10
10
 
11
11
  jobs:
12
12
  rake:
13
- uses: metanorma/metanorma-build-scripts/.github/workflows/plantuml-rake.yml@main
13
+ uses: metanorma/ci/.github/workflows/plantuml-rake.yml@main
14
14
  secrets:
15
15
  pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
@@ -15,10 +15,10 @@ on:
15
15
 
16
16
  jobs:
17
17
  release:
18
- uses: metanorma/metanorma-build-scripts/.github/workflows/rubygems-release.yml@main
18
+ uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
19
19
  with:
20
20
  next_version: ${{ github.event.inputs.next_version }}
21
- event_name: ${{ github.event_name }}
22
21
  secrets:
23
22
  rubygems-api-key: ${{ secrets.METANORMA_CI_RUBYGEMS_API_KEY }}
23
+ pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
24
24
 
data/.gitignore CHANGED
@@ -1,4 +1,6 @@
1
1
  Gemfile.lock
2
2
  .rspec_status
3
3
  spec/assets/lutaml
4
- test.err
4
+ test.err
5
+
6
+ .rubocop-https--*
data/Gemfile CHANGED
@@ -2,3 +2,4 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in metanorma-plugin-lutaml.gemspec
4
4
  gemspec
5
+ require 'debug'
@@ -103,52 +103,52 @@ module Metanorma
103
103
  depth = options[:depth]
104
104
 
105
105
  <<~TEMPLATE
106
- #{equalsigns(depth) + " {{ definition.name }}" unless skip_headers}
106
+ {% if definition.keyword == 'enumeration' %}
107
+ #{equalsigns(depth) + " Enumeration: {{ definition.name }}" unless skip_headers}
108
+ {% else %}
109
+ #{equalsigns(depth) + " Class: {{ definition.name }}" unless skip_headers}
110
+ {% endif %}
111
+
112
+ #{equalsigns(depth+1)} Description
113
+
107
114
  {{ definition.definition }}
108
115
 
109
116
  {% if definition.attributes %}
110
117
  {% if definition.keyword == 'enumeration' %}
111
- .{{ definition.name }} values
112
- |===
113
- |Name |Definition
114
-
115
118
  {% for item in definition.attributes %}
116
- |{{ item.name }} |{{ item.definition }}
119
+ #{equalsigns(depth+1)} Enumeration value: {{item.name}}
120
+
121
+ {% if item.definition %}
122
+ {{ item.definition }}
123
+ {% endif %}
124
+
117
125
  {% endfor %}
118
- |===
126
+
119
127
  {% else %}
120
- #{equalsigns(depth+1)} Attributes
121
128
 
122
129
  {% for item in definition.attributes %}
123
- #{equalsigns(depth+2)} {{item.name}}
130
+ #{equalsigns(depth+1)} Attribute: {{item.name}}
124
131
 
125
132
  {% if item.definition %}
126
133
  {{ item.definition }}
127
134
  {% endif %}
128
135
 
129
- .Specification of `{{ definition.name }}.{{ item.name }}`
130
- [cols="h,a"]
131
- |===
132
-
133
- h|Value type and multiplicity
134
- |
135
- `{{ item.type }}`
136
+ Value type and multiplicity:
137
+ {% if item.type -%}{{ item.type }}{% else -%}(no type specified){% endif %}
136
138
  {% if item.cardinality.min -%}
137
139
  {% if item.cardinality.max -%}
138
- `[{{item.cardinality.min}}..{{item.cardinality.max}}]`
140
+ {blank}[{{item.cardinality.min}}..{{item.cardinality.max}}]
139
141
  {% else -%}
140
- `[{{item.cardinality.min}}]`
142
+ {blank}[{{item.cardinality.min}}]
141
143
  {% endif -%}
142
144
  {% else -%}
143
145
  (multiplicity unspecified)
144
146
  {% endif %}
145
147
 
146
148
  {% if item.origin %}
147
- h|Origin
148
- |<<{{ item.origin }}>>
149
+ Origin: <<{{ item.origin }}>>
149
150
  {% endif %}
150
151
 
151
- |===
152
152
  {% endfor %}
153
153
 
154
154
  {% endif %}
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.4.17".freeze
4
+ VERSION = "0.4.18".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
+ spec.add_dependency "asciidoctor"
27
+ spec.add_dependency "expressir"
26
28
  spec.add_dependency "liquid"
27
29
  spec.add_dependency "lutaml"
28
- spec.add_dependency "metanorma"
29
30
  spec.add_dependency "relaton-cli"
30
31
  spec.add_dependency "reverse_adoc"
31
- spec.add_dependency "expressir"
32
32
 
33
33
  spec.add_development_dependency "byebug"
34
34
  spec.add_development_dependency "equivalent-xml"
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.17
4
+ version: 0.4.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-02 00:00:00.000000000 Z
11
+ date: 2022-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: liquid
14
+ name: asciidoctor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: lutaml
28
+ name: expressir
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -39,7 +39,7 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: metanorma
42
+ name: liquid
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: relaton-cli
56
+ name: lutaml
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: reverse_adoc
70
+ name: relaton-cli
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: expressir
84
+ name: reverse_adoc
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -301,7 +301,7 @@ homepage: https://github.com/metanorma/metanorma-plugin-lutaml
301
301
  licenses:
302
302
  - BSD-2-Clause
303
303
  metadata: {}
304
- post_install_message:
304
+ post_install_message:
305
305
  rdoc_options: []
306
306
  require_paths:
307
307
  - lib
@@ -316,8 +316,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
316
316
  - !ruby/object:Gem::Version
317
317
  version: '0'
318
318
  requirements: []
319
- rubygems_version: 3.1.6
320
- signing_key:
319
+ rubygems_version: 3.3.16
320
+ signing_key:
321
321
  specification_version: 4
322
322
  summary: Metanorma plugin for LutaML
323
323
  test_files: []