cdmbl 0.12.9 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cdmbl/filtered_set_specs.rb +6 -6
- data/lib/cdmbl/load_worker.rb +0 -1
- data/lib/cdmbl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e4edefbc109630c2c965cac2ecbc4dfa93399fe
|
4
|
+
data.tar.gz: dc79ca43d1b603932825e87365bf7f7f5ad6fdf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e3285e35c278e7e92f9a5d04b2256d8e226e895e5876ca4d58408c49ddd7460b4146c35ac075d94779f5916237a7864508ecfb6c10de6f502a0250e80f68eaf
|
7
|
+
data.tar.gz: 8a534da15b06660e5d804058dd0174038650ddd2fc3540cd281aa9d6c1d4b702e9bf99d55616132565ca6c042c35cf9f140e752518a8d9634aabd99fccefcd3d
|
@@ -12,24 +12,24 @@ module CDMBL
|
|
12
12
|
|
13
13
|
def initialize(oai_base_url: :missing_oai_base_url,
|
14
14
|
oai_client: OaiClient,
|
15
|
-
callback: DefaultSetFilterCallback.new)
|
15
|
+
callback: CDMBL::DefaultSetFilterCallback.new)
|
16
16
|
@oai_base_url = oai_base_url
|
17
17
|
@oai_client = oai_client
|
18
18
|
@callback = callback
|
19
19
|
end
|
20
20
|
|
21
21
|
def set_specs
|
22
|
-
|
22
|
+
filtered_sets.map { |set| set['setSpec'] }
|
23
23
|
end
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
def filtered
|
28
|
-
sets.select do |set|
|
25
|
+
def filtered_sets
|
26
|
+
@filtered_sets ||= sets.select do |set|
|
29
27
|
callback.valid?(set: set)
|
30
28
|
end
|
31
29
|
end
|
32
30
|
|
31
|
+
private
|
32
|
+
|
33
33
|
def sets
|
34
34
|
@sets ||= list_sets['OAI_PMH']['ListSets']['set']
|
35
35
|
end
|
data/lib/cdmbl/load_worker.rb
CHANGED
@@ -3,7 +3,6 @@ module CDMBL
|
|
3
3
|
# Load Records into a solr index
|
4
4
|
class LoadWorker
|
5
5
|
include Sidekiq::Worker
|
6
|
-
sidekiq_options queue: :critical
|
7
6
|
attr_reader :solr_config, :records, :deletables
|
8
7
|
attr_writer :loader_klass, :solr_klass
|
9
8
|
def perform(records = [], deletables = [], solr_config = {})
|
data/lib/cdmbl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cdmbl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chadfennell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hash_at_path
|