metanorma-plugin-lutaml 0.2.0 → 0.2.1

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: cf1f2a866187d3c88f1948cfee8cac317fd17aa01a6ed3896470689b5dc644d1
4
- data.tar.gz: 47752b4c4b8cd0fc9f086d83a00dbad165940650ef14353c860b3cbe8c22dd41
3
+ metadata.gz: cbe741d096683398974bd713299a75780484302f3f2abaef0a7fa8be24f9239f
4
+ data.tar.gz: 71cb222b6035556e54fa359b508871c7b387dd8c748da57d07dadca5b1622e8f
5
5
  SHA512:
6
- metadata.gz: b2c871c4788077d0e853813452119c8639fc8d539103a312be1781f17d0e22968b29d28ac62f78f887fc4714123ff598f42b591c8747b14c48ae5c034f356c6a
7
- data.tar.gz: f1545cb37a21c5ec2f00078b9e556bcba25197409a4e42902734cdc378d6b3e1a1822abf4d13f0e92d55c1ad22c58b87e60a90b3873bf088987dc47233404328
6
+ metadata.gz: c4e0432ad292a23d22efef66cd1f320c2fcc911f9af5415138ff48f34e058b8211612888be1c155e381005485317eb42bb4e2d9f001664035da8de7458239825
7
+ data.tar.gz: 2dd7bf850caf11024851b343bbbcf85266573e0c631e8b4f5068daa0081619741eb928e6813e0fe98fcd0051ebacbd08ab8bc82bd1bde2bb5b992cc0b6fc31f6
@@ -75,7 +75,7 @@ Will produce this output:
75
75
 
76
76
  This macro also supports `.lutaml` files.
77
77
 
78
- === Usage, `lutaml_datamodel_attributes_table` macro
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 `lutaml_datamodel_attributes_table` macro:
104
+ And the `lutaml_uml_attributes_table` macro:
105
105
 
106
106
  [source,adoc]
107
107
  -----
108
- [lutaml_datamodel_attributes_table, example.lutaml, AttributeProfile]
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
- [lutaml_datamodel_attributes_table, example.lutaml, AddressClassProfile]
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/lutaml_datamodel_attributes_table_preprocessor"
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 [lutaml_datamodel_attributes_table,path/to/lutaml,EntityName]
15
- class LutamlDatamodelAttributesTablePreprocessor < Asciidoctor::Extensions::Preprocessor
14
+ # @example [lutaml_uml_attributes_table,path/to/lutaml,EntityName]
15
+ class LutamlUmlAttributesTablePreprocessor < Asciidoctor::Extensions::Preprocessor
16
16
  MARCO_REGEXP =
17
- /\[lutaml_datamodel_attributes_table,([^,]+),?(.+)?,([^,]+),?(.+)?\]/
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
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.2.0".freeze
4
+ VERSION = "0.2.1".freeze
5
5
  end
6
6
  end
7
7
  end
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.0
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-24 00:00:00.000000000 Z
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