metanorma-plugin-lutaml 0.2.1 → 0.2.2

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: cbe741d096683398974bd713299a75780484302f3f2abaef0a7fa8be24f9239f
4
- data.tar.gz: 71cb222b6035556e54fa359b508871c7b387dd8c748da57d07dadca5b1622e8f
3
+ metadata.gz: 5dc1ad47a37005325f0dd16e97c83a9bed9be85774eaaf1a32e7243452788e85
4
+ data.tar.gz: 2d30fbd150b18d15f448618c99ac65b6fca5e6fe9369c056c78d883416d2c776
5
5
  SHA512:
6
- metadata.gz: c4e0432ad292a23d22efef66cd1f320c2fcc911f9af5415138ff48f34e058b8211612888be1c155e381005485317eb42bb4e2d9f001664035da8de7458239825
7
- data.tar.gz: 2dd7bf850caf11024851b343bbbcf85266573e0c631e8b4f5068daa0081619741eb928e6813e0fe98fcd0051ebacbd08ab8bc82bd1bde2bb5b992cc0b6fc31f6
6
+ metadata.gz: f377ffd7da20ef1bc313ede0ec1c6e862c9322823e8181587f296662eded4c7efe3cf12bdf1028347659811fbdc9e7ac0339432e6e6ed038a7368f2095676e4c
7
+ data.tar.gz: 63f1350885a0e1a2ad624043f01880a48d350a1bd9d67d027e6800fd7b29f573229cca8ec935acf1765226de4c52d3d0dea0565f00fe7e94e8c0b0c33d0879bd
@@ -60,6 +60,14 @@ And the `lutaml` macro block:
60
60
  ----
61
61
  -----
62
62
 
63
+ Where:
64
+
65
+ * content within the block is called the "`template`";
66
+
67
+ * `{example.exp}` is the location of the exp schema file that contains data to be loaded. Location of the file is computed relative to the source directory that `[lutaml]` is used (e.g., if `[lutaml,example.exp,my_context]` is invoked in an `.adoc` file located at `/foo/bar/doc.adoc`, the data file is expected to be found at `/foo/bar/example.exp`);
68
+
69
+ * `{my_context}` is the name where the EXPRESS Repository read from the .exp file can be accessed with. Context object is a serialized Expressir::Model::Repository object with all variable names available. See https://github.com/lutaml/expressir[Expressir] docs for reference. `{my_context}` has `schemas` method to access Expressir https://github.com/lutaml/expressir/blob/master/lib/expressir/model/schema.rb[schemas]
70
+
63
71
  Will produce this output:
64
72
 
65
73
  [source,adoc]
@@ -29,10 +29,6 @@ module Metanorma
29
29
  ::Lutaml::Parser
30
30
  .parse(File.new(Utils.relative_file_path(document, file_path),
31
31
  encoding: "UTF-8"))
32
- rescue => e
33
- require 'byebug'
34
- byebug
35
- i =10
36
32
  end
37
33
 
38
34
  def processed_lines(document, input_lines)
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.2.1".freeze
4
+ VERSION = "0.2.2".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.1
4
+ version: 0.2.2
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-25 00:00:00.000000000 Z
11
+ date: 2020-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: liquid