relaton-render 0.8.2 → 0.9.0

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: 2db7fae658791edf4fac0a3c6c1a523fa8f44e98c72a3a569f6e679cfae59289
4
- data.tar.gz: cf0e253848e1ea25ed8e39bc09a266b61dfe9966d6ac12bf8e20c16b796e98fe
3
+ metadata.gz: 60624cccbc9d2e12cc7bdd47f4a8dfadbfb3173ae3eb9e2cc5c7e9463ff5eae3
4
+ data.tar.gz: 7b00ae7cb5612f7c225a5211d18b1d118466e1e6ae96211191462e2d4eface81
5
5
  SHA512:
6
- metadata.gz: b7439decec19ae4bc917d27fe313513a178601ce5d363b3ae797d6cca787a507e8c76505ab4fef5caf67b197b6fffba469688f92927511003675826054cf04fb
7
- data.tar.gz: 742644122724cb16fc11660a7443a74a1a32d33ab0c0134f469b6a5e922e19a2e71390a4a2ecc262157f6772217afa3fbf8d6438ad1afb0084675ce0dea69212
6
+ metadata.gz: 625abfc7777b059ba61e8d1fc8cdb858390f7497e3c537522e84e3aed4e8bc375cb8363651e51b6b4d97d1b54084ce289f3215f7c396dbc0f6be4eb69e520697
7
+ data.tar.gz: e15b472ab455fea5e36465fbfcd1571d8dfadcae5bd34034abf02e4bb53e4067e76a5471420b6054829926bd5efa95a857ebf9868b77acada502c6a8a673f72e
@@ -140,8 +140,14 @@ module Relaton
140
140
  def extent(doc)
141
141
  doc.extent.each_with_object([]) do |e, acc|
142
142
  case e
143
- when RelatonBib::LocalityStack
144
- acc << extent1(e.locality)
143
+ when RelatonBib::Extent, RelatonBib::LocalityStack
144
+ e.locality.each do |e1|
145
+ if e1.is_a?(RelatonBib::LocalityStack)
146
+ acc << extent1(e1.locality)
147
+ else
148
+ acc << extent1(Array(e1))
149
+ end
150
+ end
145
151
  when RelatonBib::Locality
146
152
  acc << extent1(Array(e))
147
153
  end
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Render
3
- VERSION = "0.8.2".freeze
3
+ VERSION = "0.9.0".freeze
4
4
  end
5
5
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "isodoc-i18n", "~> 1.3.0"
32
32
  spec.add_dependency "liquid", "~> 5"
33
33
  spec.add_dependency "nokogiri"
34
- spec.add_dependency "relaton-bib", ">= 1.13.0"
34
+ spec.add_dependency "relaton-bib", ">= 1.20.0"
35
35
  spec.add_dependency "twitter_cldr"
36
36
  spec.add_dependency "tzinfo-data" # we need this for windows only
37
37
  spec.add_dependency "base64" # Liquid
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.8.2
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-17 00:00:00.000000000 Z
11
+ date: 2024-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 1.13.0
145
+ version: 1.20.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 1.13.0
152
+ version: 1.20.0
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: twitter_cldr
155
155
  requirement: !ruby/object:Gem::Requirement