metanorma 2.4.0 → 2.4.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: beb47bfd8337995c89db26dbe3992c782a043c283fd185d3deafad6b6a061cd8
|
|
4
|
+
data.tar.gz: fefc082f5cdee21ca43f8dc057c8687e59f43cf96c6cdd193e7e4310fcb16d81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47c3fb8e7381d8eae7db92681e5d9c30c314b0cdda07ca9b721539e9b504ec67a8a74d5a0f5d0e6d9c75181ff18ca4a6f9aabc43e7be521d6cfeed7723708a4c
|
|
7
|
+
data.tar.gz: e9b31de135bc29dd3d29523c4da811e9e01b3f9755016fd45f5a8b5d75897379208eabe2fdf291543894423e90a96113306ac68aff783910e389dcbf98600ba0
|
|
@@ -53,7 +53,7 @@ module Metanorma
|
|
|
53
53
|
|
|
54
54
|
def initialize_config(config)
|
|
55
55
|
@config = config
|
|
56
|
-
@directives = config.directive || [] # feeds initialize_directives
|
|
56
|
+
@directives = (config.directive || []).dup # feeds initialize_directives
|
|
57
57
|
@bibdata = config.bibdata
|
|
58
58
|
@prefatory = config.prefatory_content
|
|
59
59
|
@final = config.final_content
|
|
@@ -45,7 +45,10 @@ module Metanorma
|
|
|
45
45
|
|
|
46
46
|
def derive_format(entry, parent)
|
|
47
47
|
entry.attachment and return
|
|
48
|
-
entry.format
|
|
48
|
+
if Array(entry.format).empty?
|
|
49
|
+
parent_fmt = Array(parent.format)
|
|
50
|
+
entry.format = parent_fmt.empty? ? %w(xml presentation html) : parent_fmt.dup
|
|
51
|
+
end
|
|
49
52
|
entry.format |= ["xml", "presentation"]
|
|
50
53
|
end
|
|
51
54
|
|
|
@@ -78,7 +78,7 @@ module Metanorma
|
|
|
78
78
|
"#{collection_filename}.xml")
|
|
79
79
|
File.write collection_xml_path, collection_xml, encoding: "UTF-8"
|
|
80
80
|
file_compile(collection_xml_path, fname, ident)
|
|
81
|
-
FileUtils.
|
|
81
|
+
FileUtils.rm_f(collection_xml_path)
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
end
|
data/lib/metanorma/version.rb
CHANGED