relaton-render 0.8.1 → 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: e5ed5a5efdad77a9121141628cfe293c43af9d7397eca657aa4356853b25bd79
4
- data.tar.gz: 3a83d0d7d1a06c9cb523630c5437ecd4c3b29077ae392a66b2b1ea0320354454
3
+ metadata.gz: 60624cccbc9d2e12cc7bdd47f4a8dfadbfb3173ae3eb9e2cc5c7e9463ff5eae3
4
+ data.tar.gz: 7b00ae7cb5612f7c225a5211d18b1d118466e1e6ae96211191462e2d4eface81
5
5
  SHA512:
6
- metadata.gz: '087f54e118415b9bbd6e47b3a705cfea8cc5dae0c83d4db4066ae00a738f0276b995de81e4ed7ce285e52a75ce773ea7530c33df944239299684ec39102258af'
7
- data.tar.gz: 772fc1cea1671312cc9e06d0772f591d47bddac59c18e6d5bbfc260c580955c964d7cd65be4a891f0046a0acc96ae2e0d22007d733d0d091c54e5ed9dcfff839
6
+ metadata.gz: 625abfc7777b059ba61e8d1fc8cdb858390f7497e3c537522e84e3aed4e8bc375cb8363651e51b6b4d97d1b54084ce289f3215f7c396dbc0f6be4eb69e520697
7
+ data.tar.gz: e15b472ab455fea5e36465fbfcd1571d8dfadcae5bd34034abf02e4bb53e4067e76a5471420b6054829926bd5efa95a857ebf9868b77acada502c6a8a673f72e
@@ -24,9 +24,9 @@ module Relaton
24
24
  ret = extract_uris_for_lookup(cites)
25
25
  ret.empty? and return
26
26
  # functionality removed: date needs to be given explicitly
27
- #@renderer.urls_exist_concurrent(ret.keys).each do |k, v|
28
- #ret[k].each { |u| add_date_accessed(cites[u], k, v) }
29
- #end
27
+ # @renderer.urls_exist_concurrent(ret.keys).each do |k, v|
28
+ # ret[k].each { |u| add_date_accessed(cites[u], k, v) }
29
+ # end
30
30
  end
31
31
 
32
32
  def extract_uris_for_lookup(cites)
@@ -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.1".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.1
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-13 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