metanorma-release 0.2.23 → 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: fcbd94afb53b355f5637604bd713ec156adaf4e061c49dda44c1cf6cf777938a
4
- data.tar.gz: 6dfa4f1d17e6aa4bac1bccc991510d9ac3856012d2205c9ce46644aa045d1ede
3
+ metadata.gz: c7f9813b66ba4758c313c87068b288716fc416939082ab46b42129d3e37d56e0
4
+ data.tar.gz: 13b6eb3a4962044a5fe38f3534c20446be4cfe22217c2f5981c16eb9d3436be9
5
5
  SHA512:
6
- metadata.gz: 5acb0eb4eaaa919c5a5f5f5a868aea80cc0d1de643fc9377d4497e0148f6b84171dee1208832f037b3dcab9ab285e8e7fdcba600cb0db99a2169ed4da484f50d
7
- data.tar.gz: 9e55e666c20c4e5c93a2545ff5d8927328721878f83ae8f4affdbbe40bc31d94f021f796ce437d3389297eeecca802875dc2f3174545db67f2d586218f10156c
6
+ metadata.gz: 355507435346c8ac64f0cce74c86882a130e0b690b4671880afc00202617702788703b3d3dc81424cb5ddca7ceb465b309b12f667eb857cfad0b52b67d07897d
7
+ data.tar.gz: b4b549e2d579daa2f8aa9e669ced0bbe4e4660848ba48273866e21be2f367c448f647645370ea0286c8347d94bd80c37417f775d80264051eaef7545ceac9adb
@@ -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)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Release
5
- VERSION = "0.2.23"
5
+ VERSION = "0.2.24"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.23
4
+ version: 0.2.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.