metanorma 2.5.34 → 2.5.35
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 +4 -4
- data/lib/metanorma/collection/renderer/utils.rb +3 -0
- data/lib/metanorma/compile/compile.rb +5 -0
- data/lib/metanorma/version.rb +1 -1
- data/lib/metanorma.rb +5 -9
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e6fdb33f023abb77b23a79b6ee2a05abe198cd97237bf60d58020dae9d5388d4
|
|
4
|
+
data.tar.gz: 57f6d0798ca4ec20e0206e175e9d342acffe94d23dab975de6095fca52ea4ddc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8cb1f90e66a81fa2a0c2fa1c42ce8d3169c675dc6531867dd199f0009b3b582eff43d6e61a0ea9fb0c74d397f61dca81fba814c7aed859486387ff93df9c9b8
|
|
7
|
+
data.tar.gz: c1ec85b44de74814e56db6e4bfcde7a4af7ab92ba7d5b3bb83dbce15702f89f2952640337d2a5965f46a278d16102c9c687101df2519a055d7e4a1636c84187b
|
|
@@ -12,6 +12,11 @@ require "metanorma-taste"
|
|
|
12
12
|
require "metanorma/plugin/lutaml"
|
|
13
13
|
require_relative "writeable"
|
|
14
14
|
require_relative "validator"
|
|
15
|
+
# metanorma-core defines Util without this gem's members, and a flavour
|
|
16
|
+
# reaches the compile legs without loading this gem's entry file: the
|
|
17
|
+
# namespace file is loaded here, so FontistHelper and FontWeights are
|
|
18
|
+
# registered on every path that compiles.
|
|
19
|
+
require_relative "../util"
|
|
15
20
|
require_relative "compile_options"
|
|
16
21
|
require "metanorma-core"
|
|
17
22
|
require_relative "extract"
|
data/lib/metanorma/version.rb
CHANGED
data/lib/metanorma.rb
CHANGED
|
@@ -4,17 +4,13 @@ class Array
|
|
|
4
4
|
alias orig_filter filter
|
|
5
5
|
end
|
|
6
6
|
|
|
7
|
-
# Metanorma module. Declared before the requires: metanorma-core opens the
|
|
8
|
-
# Util namespace when it loads, which resolves this autoload, so
|
|
9
|
-
# metanorma/util can register this gem's own Util members (FontistHelper,
|
|
10
|
-
# FontWeights) the same way. Registered after the module exists, an autoload
|
|
11
|
-
# is a no-op.
|
|
12
|
-
module Metanorma
|
|
13
|
-
autoload :Util, "metanorma/util"
|
|
14
|
-
end
|
|
15
|
-
|
|
16
7
|
require "metanorma/version"
|
|
17
8
|
require "metanorma-core"
|
|
9
|
+
# metanorma-core ships a file at the same path, so a load-path require of
|
|
10
|
+
# metanorma/util loads only whichever gem comes first on $LOAD_PATH. Loading
|
|
11
|
+
# this file by relative path registers this gem's own Util members
|
|
12
|
+
# (FontistHelper, FontWeights) whatever the order.
|
|
13
|
+
require_relative "metanorma/util"
|
|
18
14
|
require "metanorma/compile/compile"
|
|
19
15
|
require "metanorma/collection/collection"
|
|
20
16
|
require "metanorma/collection/manifest/manifest"
|