metanorma-release 0.2.22 → 0.2.24
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: c7f9813b66ba4758c313c87068b288716fc416939082ab46b42129d3e37d56e0
|
|
4
|
+
data.tar.gz: 13b6eb3a4962044a5fe38f3534c20446be4cfe22217c2f5981c16eb9d3436be9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 355507435346c8ac64f0cce74c86882a130e0b690b4671880afc00202617702788703b3d3dc81424cb5ddca7ceb465b309b12f667eb857cfad0b52b67d07897d
|
|
7
|
+
data.tar.gz: b4b549e2d579daa2f8aa9e669ced0bbe4e4660848ba48273866e21be2f367c448f647645370ea0286c8347d94bd80c37417f775d80264051eaef7545ceac9adb
|
|
@@ -84,7 +84,7 @@ module Metanorma
|
|
|
84
84
|
|
|
85
85
|
private
|
|
86
86
|
|
|
87
|
-
def process_repo(repo,
|
|
87
|
+
def process_repo(repo, output_dir, config)
|
|
88
88
|
repo_key = repo.to_s
|
|
89
89
|
|
|
90
90
|
manifest_channels = @deps.manifest_reader.read(repo)
|
|
@@ -120,9 +120,11 @@ module Metanorma
|
|
|
120
120
|
|
|
121
121
|
if @deps.delta_state.processed?(repo_key, tag, content_hash)
|
|
122
122
|
files = @deps.delta_state.release_files(repo_key, tag)
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
if files.all? { |f| File.exist?(File.join(output_dir, f)) }
|
|
124
|
+
publications << build_publication(metadata, files, content_hash,
|
|
125
|
+
release, repo)
|
|
126
|
+
next
|
|
127
|
+
end
|
|
126
128
|
end
|
|
127
129
|
|
|
128
130
|
zip_asset = find_zip_asset(release)
|
|
@@ -112,6 +112,16 @@ module Metanorma
|
|
|
112
112
|
hash["has_pdf"] = formats.include?("pdf")
|
|
113
113
|
hash["has_xml"] = formats.include?("xml")
|
|
114
114
|
hash["has_rxl"] = formats.include?("rxl")
|
|
115
|
+
|
|
116
|
+
files = hash["files"]
|
|
117
|
+
html_file = files.find { |f| f["format"] == "html" }
|
|
118
|
+
hash["html_path"] = html_file["path"] if html_file
|
|
119
|
+
pdf_file = files.find { |f| f["format"] == "pdf" }
|
|
120
|
+
hash["pdf_path"] = pdf_file["path"] if pdf_file
|
|
121
|
+
xml_file = files.find { |f| f["format"] == "xml" }
|
|
122
|
+
hash["xml_path"] = xml_file["path"] if xml_file
|
|
123
|
+
rxl_file = files.find { |f| f["format"] == "rxl" }
|
|
124
|
+
hash["rxl_path"] = rxl_file["path"] if rxl_file
|
|
115
125
|
end
|
|
116
126
|
|
|
117
127
|
def add_display_category(hash, doctype)
|