metanorma-plugin-lutaml 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +4 -4
- data/lib/metanorma-plugin-lutaml.rb +1 -1
- data/lib/metanorma/plugin/lutaml/{lutaml_datamodel_attributes_table_preprocessor.rb → lutaml_uml_attributes_table_preprocessor.rb} +3 -3
- data/lib/metanorma/plugin/lutaml/version.rb +1 -1
- data/pkg/metanorma-plugin-lutaml-0.2.0.gem +0 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbe741d096683398974bd713299a75780484302f3f2abaef0a7fa8be24f9239f
|
4
|
+
data.tar.gz: 71cb222b6035556e54fa359b508871c7b387dd8c748da57d07dadca5b1622e8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e0432ad292a23d22efef66cd1f320c2fcc911f9af5415138ff48f34e058b8211612888be1c155e381005485317eb42bb4e2d9f001664035da8de7458239825
|
7
|
+
data.tar.gz: 2dd7bf850caf11024851b343bbbcf85266573e0c631e8b4f5068daa0081619741eb928e6813e0fe98fcd0051ebacbd08ab8bc82bd1bde2bb5b992cc0b6fc31f6
|
data/README.adoc
CHANGED
@@ -75,7 +75,7 @@ Will produce this output:
|
|
75
75
|
|
76
76
|
This macro also supports `.lutaml` files.
|
77
77
|
|
78
|
-
=== Usage, `
|
78
|
+
=== Usage, `lutaml_uml_attributes_table` macro
|
79
79
|
|
80
80
|
This macro allows to quickly render datamodel attributes/values tables. Given `example.lutaml` file with the content:
|
81
81
|
|
@@ -101,11 +101,11 @@ diagram MyView {
|
|
101
101
|
}
|
102
102
|
----
|
103
103
|
|
104
|
-
And the `
|
104
|
+
And the `lutaml_uml_attributes_table` macro:
|
105
105
|
|
106
106
|
[source,adoc]
|
107
107
|
-----
|
108
|
-
[
|
108
|
+
[lutaml_uml_attributes_table, example.lutaml, AttributeProfile]
|
109
109
|
-----
|
110
110
|
|
111
111
|
Will produce this output:
|
@@ -130,7 +130,7 @@ In case of "enumeration"(AddressClassProfile) entity:
|
|
130
130
|
|
131
131
|
[source,adoc]
|
132
132
|
-----
|
133
|
-
[
|
133
|
+
[lutaml_uml_attributes_table, example.lutaml, AddressClassProfile]
|
134
134
|
-----
|
135
135
|
|
136
136
|
Will produce this output:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require "metanorma/plugin/lutaml/version"
|
2
2
|
require "metanorma/plugin/lutaml/lutaml_preprocessor"
|
3
|
-
require "metanorma/plugin/lutaml/
|
3
|
+
require "metanorma/plugin/lutaml/lutaml_uml_attributes_table_preprocessor"
|
4
4
|
require "metanorma/plugin/lutaml/lutaml_diagram_block"
|
5
5
|
|
6
6
|
module Metanorma
|
@@ -11,10 +11,10 @@ module Metanorma
|
|
11
11
|
module Plugin
|
12
12
|
module Lutaml
|
13
13
|
# Macro for quick rendering of datamodel attributes/values table
|
14
|
-
# @example [
|
15
|
-
class
|
14
|
+
# @example [lutaml_uml_attributes_table,path/to/lutaml,EntityName]
|
15
|
+
class LutamlUmlAttributesTablePreprocessor < Asciidoctor::Extensions::Preprocessor
|
16
16
|
MARCO_REGEXP =
|
17
|
-
/\[
|
17
|
+
/\[lutaml_uml_attributes_table,([^,]+),?(.+)?,([^,]+),?(.+)?\]/
|
18
18
|
# search document for block `datamodel_attributes_table`
|
19
19
|
# read include derectives that goes after that in block and transform
|
20
20
|
# into yaml2text blocks
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metanorma-plugin-lutaml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: liquid
|
@@ -251,12 +251,13 @@ files:
|
|
251
251
|
- bin/console
|
252
252
|
- bin/setup
|
253
253
|
- lib/metanorma-plugin-lutaml.rb
|
254
|
-
- lib/metanorma/plugin/lutaml/lutaml_datamodel_attributes_table_preprocessor.rb
|
255
254
|
- lib/metanorma/plugin/lutaml/lutaml_diagram_block.rb
|
256
255
|
- lib/metanorma/plugin/lutaml/lutaml_preprocessor.rb
|
256
|
+
- lib/metanorma/plugin/lutaml/lutaml_uml_attributes_table_preprocessor.rb
|
257
257
|
- lib/metanorma/plugin/lutaml/utils.rb
|
258
258
|
- lib/metanorma/plugin/lutaml/version.rb
|
259
259
|
- metanorma-plugin-lutaml.gemspec
|
260
|
+
- pkg/metanorma-plugin-lutaml-0.2.0.gem
|
260
261
|
homepage: https://github.com/metanorma/metanorma-plugin-lutaml
|
261
262
|
licenses:
|
262
263
|
- BSD-2-Clause
|