relaton 0.5.13 → 0.5.14
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/relaton/db.rb +1 -1
- data/lib/relaton/static_cache/version +1 -1
- data/lib/relaton/version.rb +1 -1
- data/relaton/cache/version +1 -1
- data/spec/relaton_spec.rb +13 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 580a0949d35e36cab488ef5312598097a57ac2468d53733362ceb41e23c490b9
|
|
4
|
+
data.tar.gz: '069581b4725b0ce3035e57650f387db6a32948d75fbdcd2564bcc7a457d2bd58'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75cb8981099261b2693553f74830221d461b5e84342304e599a5ce49e0f9a3d9b2bc42082f608964d241643b1b9a7b36cd6c50209ed5358733bca0f60174e2de
|
|
7
|
+
data.tar.gz: 1ca57cf36135a79fb006c9beae32eaf109567548b6ce6a99b113144609fe5795d3ee5fab546a6c840321f515761bad846106a2abac74e366dca5d589c516b27b
|
data/Gemfile.lock
CHANGED
data/lib/relaton/db.rb
CHANGED
|
@@ -181,7 +181,7 @@ module Relaton
|
|
|
181
181
|
bib_id = bib&.docidentifier&.first&.id
|
|
182
182
|
|
|
183
183
|
# when docid doesn't match bib's id then return a reference to bib's id
|
|
184
|
-
if args[:db] && args[:id] && bib_id && args[:id] !~ %r{
|
|
184
|
+
if args[:db] && args[:id] && bib_id && args[:id] !~ %r{#{Regexp.quote("(#{bib_id})")}}
|
|
185
185
|
bid = std_id(bib.docidentifier.first.id, nil, {}, stdclass).first
|
|
186
186
|
args[:db][bid] ||= bib_entry bib
|
|
187
187
|
"redirection #{bid}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.14
|
data/lib/relaton/version.rb
CHANGED
data/relaton/cache/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.5.
|
|
1
|
+
0.5.14
|
data/spec/relaton_spec.rb
CHANGED
|
@@ -35,10 +35,19 @@ RSpec.describe Relaton::Db do
|
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
context "all parts" do
|
|
39
|
+
it "implicity" do
|
|
40
|
+
VCR.use_cassette "iso_19115" do
|
|
41
|
+
bib = @db.fetch("ISO 19115", nil, {})
|
|
42
|
+
expect(bib).to be_instance_of RelatonIsoBib::IsoBibliographicItem
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
it "explicity" do
|
|
47
|
+
VCR.use_cassette "iso_19115" do
|
|
48
|
+
bib = @db.fetch("ISO 19115 (all parts)", nil, {})
|
|
49
|
+
expect(bib).to be_instance_of RelatonIsoBib::IsoBibliographicItem
|
|
50
|
+
end
|
|
42
51
|
end
|
|
43
52
|
end
|
|
44
53
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-11-
|
|
11
|
+
date: 2019-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: relaton-calconnect
|