relaton-render 0.3.6 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93d4f9e72050eae23fea0fb676616c4df3133ae9a4b3f0ec8b0cd9a877b57e21
4
- data.tar.gz: bac7b85feccc54f9aa5b40d1540d2e39577dca6ca27fb99a0e4f297e6f5279c8
3
+ metadata.gz: e0caceaa89011341d8945f3de32ad2dc24c64d9347393beb3674d19b717c783a
4
+ data.tar.gz: 23420990ccd5fc677b1f3a8c5e80b9bfc833d5e7b0aab2989950921ec510e00c
5
5
  SHA512:
6
- metadata.gz: 49facfd7628fbdfbd6f86991fdfab0f92e2905abd5a0d63a29ba9e50f8158d9aa5e4b3cc7217d8ecf4a5c5c9611ebad8d91490b653402e6c9e6151d4f2889084
7
- data.tar.gz: e9a3a707403dcd3fa57117766b3c18e6e87928b450d09d1cb45c7d97208a1a2b2dde67c9224e7d055654aa94c18d411ac7b687f943d39344fd60fefaa2307c38
6
+ metadata.gz: 86fbfab3364784b1901ea84d41ff973516809c86e1ad7dc5b9521dc13ca9f032be61b884b1984f063ce09e6ceff6c709e686945cc4c43ce086896f8be4ed2732
7
+ data.tar.gz: 5a2dc0337980186fd624c5c227ed1a46573d478a669ee36487e23da4aeb372764d16325884d29fac3a25788d30d02551ad956c02f693f1efd6b041da43a0b603
@@ -10,6 +10,4 @@ on:
10
10
 
11
11
  jobs:
12
12
  rake:
13
- uses: metanorma/metanorma-build-scripts/.github/workflows/generic-rake.yml@main
14
- secrets:
15
- pat_token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
13
+ uses: relaton/support/.github/workflows/rake.yml@master
@@ -4,7 +4,7 @@ and: و
4
4
  updated: محدث
5
5
  viewed: ينظر
6
6
  version: الإصدار
7
- date:
7
+ date_formats:
8
8
  month_year: yMMMM
9
9
  day_month_year: to_long_s
10
10
  date_time: to_long_s
@@ -4,7 +4,7 @@ and: und
4
4
  updated: aktualisiert
5
5
  viewed: angesehen
6
6
  version: Version
7
- date:
7
+ date_formats:
8
8
  month_year: yMMMM
9
9
  day_month_year: to_long_s
10
10
  date_time: to_long_s
@@ -4,7 +4,7 @@ and: and
4
4
  updated: updated
5
5
  viewed: viewed
6
6
  version: version
7
- date:
7
+ date_formats:
8
8
  month_year: yMMMM
9
9
  day_month_year: to_long_s
10
10
  date_time: to_long_s
@@ -4,7 +4,7 @@ and: y
4
4
  updated: actualizado
5
5
  viewed: visto
6
6
  version: versión
7
- date:
7
+ date_formats:
8
8
  month_year: yMMMM
9
9
  day_month_year: to_long_s
10
10
  date_time: to_long_s
@@ -4,7 +4,7 @@ and: et
4
4
  updated: mise à jour
5
5
  viewed: vu
6
6
  version: version
7
- date:
7
+ date_formats:
8
8
  month_year: yMMMM
9
9
  day_month_year: to_long_s
10
10
  date_time: to_long_s
@@ -4,7 +4,7 @@ and: и
4
4
  updated: обновлен
5
5
  viewed: просмотрено
6
6
  version: версия
7
- date:
7
+ date_formats:
8
8
  month_year: yMMMM
9
9
  day_month_year: to_long_s
10
10
  date_time: to_long_s
@@ -4,7 +4,7 @@ and: 和
4
4
  updated: 更新
5
5
  viewed: 看过
6
6
  version: 版本
7
- date:
7
+ date_formats:
8
8
  month_year: yMMMM
9
9
  day_month_year: to_long_s
10
10
  date_time: to_long_s
@@ -55,7 +55,10 @@ module Relaton
55
55
  i18n_klass(opt["language"], opt["script"], opt["i18nhash"])
56
56
  @edition_ordinal = opt["edition_ordinal"] || @i18n.edition_ordinal
57
57
  @edition = opt["edition"] || @i18n.edition
58
- @date = opt["date"] || @i18n.date
58
+ @date = opt["date"] || @i18n.get["date_formats"] ||
59
+ { "month_year" => "yMMMM",
60
+ "day_month_year" => "to_long_s",
61
+ "date_time" => "to_long_s" }
59
62
  end
60
63
 
61
64
  def render_initialize(opt)
@@ -115,7 +115,10 @@ module Relaton
115
115
  x = pick_contributor(doc, "publisher")
116
116
  host and x ||= pick_contributor(host, "publisher")
117
117
  x.nil? and return nil
118
- x.map { |c| c.entity.abbreviation&.content }
118
+ x.map do |c|
119
+ c.entity.abbreviation&.content ||
120
+ c.entity.name.first&.content
121
+ end
119
122
  end
120
123
 
121
124
  def distributor(doc, host)
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "0.3.6".freeze
3
+ VERSION = "0.3.8".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-render
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-05-06 00:00:00.000000000 Z
11
+ date: 2022-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  requirements: []
239
- rubygems_version: 3.3.9
239
+ rubygems_version: 3.3.7
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Rendering of ISO 690 XML