metanorma-release 0.2.20 → 0.2.21

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: 01147610e009c11c2192cd56b2aed8fc731c2c002a9d6e35f91c61045197fcfe
4
- data.tar.gz: 54e3c27c6e5f06a3c310a12e2e20e51080df1ffb3d577ec5a1f378904fc59fa6
3
+ metadata.gz: 870b32feb3cf51fae8f217ca433e725d783904cd986947264f886e16bc30e03b
4
+ data.tar.gz: f37c695d3ed8bd4becde735a1eb7f0d598ac2e1c946a047c3574d910eff08596
5
5
  SHA512:
6
- metadata.gz: 294bfaa8b3772c8a4507c4168638b2aff9b2466592494ea68ed31abae6f205f41d038e0c9c946f7405711345921f9c6ae27e809d659e5b9b4485acc38850f6ca
7
- data.tar.gz: '058a98333e8ee3506d93ed85d95a61a2c4a8316f53cebc85d2824968031a92b1b003b9bcbfcce697c42405e9f8a7e4061b343609b22ae22f6beed885f594dbba'
6
+ metadata.gz: 8d3292688c6e9043a2c05c75704fc3362e07344285c2d928e2aa85b3e48592aed79ed573424c36ca583e977e745640d44609887849511bb5853d093c38ae40e3
7
+ data.tar.gz: 20c61ff249f15acc7022c24acf13206dfc4d08193168a9597d96a4c32df98166e54c1ab7f1a339e894f1bd43fc42d9e2fca43cbb11544551c3629002267d1010
@@ -304,8 +304,8 @@ module Metanorma
304
304
  date = bib.date&.find { |d| d.type == "published" } || bib.date&.first
305
305
  return nil unless date
306
306
 
307
- on = date.on
308
- on.respond_to?(:content) ? on.content.to_s : on.to_s
307
+ val = date.at
308
+ val ? val.to_s : nil
309
309
  rescue StandardError
310
310
  nil
311
311
  end
@@ -99,6 +99,7 @@ module Metanorma
99
99
  "channels" => doc["channels"] || [],
100
100
  "formats" => formats,
101
101
  "files" => doc["files"] || [],
102
+ "bibliographic" => bib,
102
103
  }
103
104
  add_format_flags(base, formats)
104
105
  add_display_category(base, doctype)
@@ -110,6 +111,7 @@ module Metanorma
110
111
  hash["has_html"] = formats.include?("html")
111
112
  hash["has_pdf"] = formats.include?("pdf")
112
113
  hash["has_xml"] = formats.include?("xml")
114
+ hash["has_rxl"] = formats.include?("rxl")
113
115
  end
114
116
 
115
117
  def add_display_category(hash, doctype)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Metanorma
4
4
  module Release
5
- VERSION = "0.2.20"
5
+ VERSION = "0.2.21"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-19 00:00:00.000000000 Z
11
+ date: 2026-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaton-bib