metanorma-plugin-lutaml 0.7.12 → 0.7.13

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: '0689b02dd3b4eb11afb1e06d187a5426ef392742efe7b01240d031a3178c136c'
4
- data.tar.gz: 61c1b2d7010f98036cb33bd7b6935a1ff0368ff2a04a0ecc9849a1a853e60c96
3
+ metadata.gz: 0270f7d18a587b6569572dc7dc21fffe4e10939e32fe8ffcfa8e86888e1e772d
4
+ data.tar.gz: e1a826c03cbb78311eff5143b7ca41b9ce7e4a0ae0c55afd1fb31682ccec02b4
5
5
  SHA512:
6
- metadata.gz: 2a5852495aac28cfa9c034949fee1a4a5b28eefb1ebe10fdd576cfd4e1fa8a4e1a324b9b4cedc85c6db9a1103cedb2f98c3e649156a1e400a6ce0a441bbefe66
7
- data.tar.gz: ca4ec34bebfcc583c22fdeb95504a73dd81fd426768e6b0a0ed22c7f9072344de39e520a94d2c7938be02623cb8ca108b2eafcf1ad77cfdf7195e50a7a4691cd
6
+ metadata.gz: 12e9e15833fa38b735f7caae2c3e6686c65e42872a38303a866268d74510e16d7a2296107c146f539dff5b6183c65fc35e5bdbca460736594c2653edd7c2abe3
7
+ data.tar.gz: b09e732cdde35ab5da7638245480647fe543394509ed416fe8a9d09a2e3fec12620395210975b39428d7b986ad0268f45f7c6dfbe2a33b1d39cee990b052588f
data/README.adoc CHANGED
@@ -394,6 +394,29 @@ The command accepts the options listed below:
394
394
  `lib/metanorma/plugin/lutaml/templates`. This template can be customized by
395
395
  changing the template path in the `template` option.
396
396
 
397
+ * `guidance="/path/to/my_guidance.yml"`specifies the path of
398
+ the yaml file of the guidance. (Optional)
399
+
400
+ The guidance file should be in the following format:
401
+
402
+ [source,yaml]
403
+ ----
404
+ ---
405
+ classes:
406
+ - name: Name Of Class
407
+ attributes:
408
+ - name: Name Of Attribute (e.g. gml:boundedBy)
409
+ used: false
410
+ guidance: |
411
+ Drop guidance message here.
412
+ ...
413
+ ----
414
+
415
+ If you want to define the guidance, you can define the `name` of the class
416
+ under `classes`. Then define which `attributes` you want to add guidance by the
417
+ `name`. Set `used` to show the attribute is used or not. Drop the message of
418
+ guidance in `guidance`.
419
+
397
420
  === Generating UML class and attributes: `lutaml_uml_class`
398
421
 
399
422
  This command allows rendering a definition clause for a UML class.
@@ -853,6 +876,19 @@ By:
853
876
  ...
854
877
  -----
855
878
 
879
+ You can define guidance in the configuration file as well. The configuration
880
+ file will looks like:
881
+
882
+ [source,yaml]
883
+ -----
884
+ packages:
885
+ - my_package
886
+ guidance: "path/to/guidance.yaml"
887
+ -----
888
+
889
+ Please refer to `lutaml_klass_table` section for how to configure the guidance
890
+ yaml file.
891
+
856
892
  == Documentation
857
893
 
858
894
  Please refer to https://www.metanorma.org.
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.12".freeze
4
+ VERSION = "0.7.13".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.7.12
4
+ version: 0.7.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-22 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor