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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21d2f3ac36de4f3c6049cb6be753ece52b3929bcc142431b80867fa767e4fb99
4
- data.tar.gz: 17bd497b7327a610205f7b2a511d73fd225dee39079ed5439d40895ccb79a20c
3
+ metadata.gz: e6fdb33f023abb77b23a79b6ee2a05abe198cd97237bf60d58020dae9d5388d4
4
+ data.tar.gz: 57f6d0798ca4ec20e0206e175e9d342acffe94d23dab975de6095fca52ea4ddc
5
5
  SHA512:
6
- metadata.gz: b82a3844bad2bac6e7dda9b7cce9244ba18ea3f3f4d300a280cf6fbb648bfaf97857108f82453ef2b277af9f5fb66b4c78368f39b9f8632804b6a041e19170f6
7
- data.tar.gz: ee39ed82cb8c5d066b3bf8ba4fc71dc474e2c4dd0eb1a52ccf19f2d018b1759ec23ce6ae092771e839809fdcfc57feee20fe05dc59d060122312b2573d141f7d
6
+ metadata.gz: b8cb1f90e66a81fa2a0c2fa1c42ce8d3169c675dc6531867dd199f0009b3b582eff43d6e61a0ea9fb0c74d397f61dca81fba814c7aed859486387ff93df9c9b8
7
+ data.tar.gz: c1ec85b44de74814e56db6e4bfcde7a4af7ab92ba7d5b3bb83dbce15702f89f2952640337d2a5965f46a278d16102c9c687101df2519a055d7e4a1636c84187b
@@ -1,4 +1,7 @@
1
1
  require "marcel"
2
+ # The renderer reaches FontistHelper without this gem's entry file; the
3
+ # namespace file is loaded here so the member is registered on this path.
4
+ require_relative "../../util"
2
5
 
3
6
  module Metanorma
4
7
  class Collection
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module Metanorma
2
- VERSION = "2.5.34".freeze
2
+ VERSION = "2.5.35".freeze
3
3
  end
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.34
4
+ version: 2.5.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.