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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60624cccbc9d2e12cc7bdd47f4a8dfadbfb3173ae3eb9e2cc5c7e9463ff5eae3
|
4
|
+
data.tar.gz: 7b00ae7cb5612f7c225a5211d18b1d118466e1e6ae96211191462e2d4eface81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
28
|
-
|
29
|
-
|
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
|
-
|
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
|
data/relaton-render.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
152
|
+
version: 1.20.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: twitter_cldr
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|