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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 958b9a0cf11af5c0e6e8096293f1f76b13c002d1e3e54c3716d833d756dfc088
4
- data.tar.gz: 9ad2c81973c640b2ea76a2d4eeecc3ca4b8ec5e8b096803662735d081e506196
3
+ metadata.gz: 820f5618b385e02a874c867b48cd1ffe0d829d876a4dd0a62f1402856d401368
4
+ data.tar.gz: 94c2a2c5688e638a8bd8b4527b854f5502fc43e2d9f7a2b3de5edfe4b67a8e66
5
5
  SHA512:
6
- metadata.gz: b926c57a94b6245b551ea161876da648fdae9c485bbca230bdbe5d8e7c9d4c689e28b76d0f2689883f663daf003aefccd5b5455fc28bcdaee53baa3eea4d9189
7
- data.tar.gz: d9d576fd40b4850e84327f0cfb6f8468a6b1abc184af13d4a99fa94c9924d895c0d350536c9eac06c2c574aee7ca9ac686147be69273c251747dd45a111af437
6
+ metadata.gz: 2c45d2721c47c9a499adf79cf1f65efd0af0f22906677659046e55f4ef7df3bac1ff88b4f99709da2ca258e62be278d790508f28a12cbc26ac5ec651fffbebf4
7
+ data.tar.gz: 3b0e24e4f6e90f9f3dcebc42f66491be2bb0e06e494b2705430d981e52cc19112537423f9674018cddd5fe5e9b9f2245cbd14aa76d06932254a36aa8c878ea59
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relaton (0.5.7)
4
+ relaton (0.5.8)
5
5
  relaton-gb (~> 0.6.0)
6
6
  relaton-iec (~> 0.4.0)
7
7
  relaton-ietf (~> 0.6.0)
@@ -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] ||= bibentry
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] ||= bibentry
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.7
1
+ 0.5.8
@@ -1,3 +1,3 @@
1
1
  module Relaton
2
- VERSION = "0.5.7".freeze
2
+ VERSION = "0.5.8".freeze
3
3
  end
@@ -1 +1 @@
1
- 0.5.7
1
+ 0.5.8
@@ -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.7
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-24 00:00:00.000000000 Z
11
+ date: 2019-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: relaton-gb