relaton 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/relaton/db.rb +2 -3
- 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 +2 -0
- 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: 820f5618b385e02a874c867b48cd1ffe0d829d876a4dd0a62f1402856d401368
|
4
|
+
data.tar.gz: 94c2a2c5688e638a8bd8b4527b854f5502fc43e2d9f7a2b3de5edfe4b67a8e66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c45d2721c47c9a499adf79cf1f65efd0af0f22906677659046e55f4ef7df3bac1ff88b4f99709da2ca258e62be278d790508f28a12cbc26ac5ec651fffbebf4
|
7
|
+
data.tar.gz: 3b0e24e4f6e90f9f3dcebc42f66491be2bb0e06e494b2705430d981e52cc19112537423f9674018cddd5fe5e9b9f2245cbd14aa76d06932254a36aa8c878ea59
|
data/Gemfile.lock
CHANGED
data/lib/relaton/db.rb
CHANGED
@@ -149,17 +149,16 @@ module Relaton
|
|
149
149
|
|
150
150
|
db = @local_db || @db
|
151
151
|
altdb = @local_db && @db ? @db : nil
|
152
|
-
bibentry = new_bib_entry(searchcode, year, opts, stdclass, db: db, id: id)
|
153
152
|
return bib_retval(bibentry, stdclass, id) if db.nil?
|
154
153
|
|
155
154
|
db.delete(id) unless db.valid_entry?(id, year)
|
156
155
|
if altdb
|
157
156
|
# db[id] ||= altdb[id]
|
158
157
|
db.clone_entry id, altdb
|
159
|
-
db[id] ||=
|
158
|
+
db[id] ||= new_bib_entry(searchcode, year, opts, stdclass, db: db, id: id)
|
160
159
|
altdb.clone_entry(id, db) if !altdb.valid_entry?(id, year)
|
161
160
|
else
|
162
|
-
db[id] ||=
|
161
|
+
db[id] ||= new_bib_entry(searchcode, year, opts, stdclass, db: db, id: id)
|
163
162
|
end
|
164
163
|
bib_retval(db[id], stdclass, id)
|
165
164
|
end
|
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.8
|
data/lib/relaton/version.rb
CHANGED
data/relaton/cache/version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.8
|
data/spec/relaton_spec.rb
CHANGED
@@ -24,6 +24,8 @@ RSpec.describe Relaton::Db do
|
|
24
24
|
testcache = Relaton::DbCache.new "testcache2"
|
25
25
|
expect(testcache["ISO(ISO 19115-1)"]).to include "<project-number>ISO 19115</project-number>"
|
26
26
|
end
|
27
|
+
bib = @db.fetch("ISO 19115-1", nil, {})
|
28
|
+
expect(bib).to be_instance_of RelatonIsoBib::IsoBibliographicItem
|
27
29
|
end
|
28
30
|
|
29
31
|
it "with year in code" do
|
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.8
|
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-10-
|
11
|
+
date: 2019-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: relaton-gb
|