relaton-index 0.2.14 → 0.2.15
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/lib/relaton/index/pool.rb +1 -1
- data/lib/relaton/index/type.rb +1 -1
- data/lib/relaton/index/version.rb +1 -1
- data/lib/relaton/index.rb +3 -10
- 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: 5ce9d7205daf0975990050a9f2652f35d7fc9cd02a840f49cc268ee3114c0870
|
|
4
|
+
data.tar.gz: b0a56e175a3ca0ed09dea40d2b0d6cb1d6b7400f5cb61d67a86185f00d9309d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 21cd6e533b27e00ee9b0604eb3a11112dba1c8f69db15996beede0b7ce763ae54ac30242e8a75118c6e525b4bde510bd7b68f347ccbdd180479d38b77f2c88c0
|
|
7
|
+
data.tar.gz: 2788d0c92aa0e4fe6540eb4fb5ae4b30917abb304f91b09add060efbcd81977427503c5e7ddc15c17afd1db9735a1abecdfe0a0b760de3d7b89d9e3a41476c59
|
data/lib/relaton/index/pool.rb
CHANGED
|
@@ -22,7 +22,7 @@ module Relaton
|
|
|
22
22
|
if @pool[type.upcase.to_sym]&.actual?(**args)
|
|
23
23
|
@pool[type.upcase.to_sym]
|
|
24
24
|
else
|
|
25
|
-
@pool[type.upcase.to_sym] = Type.new(type, args[:url], args[:file], args[:id_keys])
|
|
25
|
+
@pool[type.upcase.to_sym] = Type.new(type, args[:url], args[:file], args[:id_keys], args[:pubid_class])
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
data/lib/relaton/index/type.rb
CHANGED
data/lib/relaton/index.rb
CHANGED
|
@@ -19,17 +19,10 @@ module Relaton
|
|
|
19
19
|
|
|
20
20
|
class << self
|
|
21
21
|
#
|
|
22
|
-
#
|
|
22
|
+
# Proxy for Pool#type
|
|
23
23
|
#
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
# @param [String, nil] file output file name, default is config.filename
|
|
27
|
-
# @param [Array<Symbol>, nil] id_keys keys to check if index is correct
|
|
28
|
-
#
|
|
29
|
-
# @return [Relaton::Index::Type] typed index
|
|
30
|
-
#
|
|
31
|
-
def find_or_create(type, url: nil, file: nil, id_keys: nil)
|
|
32
|
-
pool.type(type, url: url, file: file, id_keys: id_keys)
|
|
24
|
+
def find_or_create(type, **args)
|
|
25
|
+
pool.type(type, **args)
|
|
33
26
|
end
|
|
34
27
|
|
|
35
28
|
def close(type)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: relaton-index
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.15
|
|
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-08-
|
|
11
|
+
date: 2024-08-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pubid-core
|