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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f7d581ed79eeb256b9686e2cb897fb516fc2be1
4
- data.tar.gz: 24b599e638c0a17e303c36b747aa366a79c0676b
3
+ metadata.gz: 3e4edefbc109630c2c965cac2ecbc4dfa93399fe
4
+ data.tar.gz: dc79ca43d1b603932825e87365bf7f7f5ad6fdf0
5
5
  SHA512:
6
- metadata.gz: caeaede827f022a1364423415346f23866af91613fba6b824f713297127f699795364e83e109f36a5fd84623177b420e6d483344baedb9a292fcafe902977441
7
- data.tar.gz: 2ffa46683c0e7131cf13d20aa1fd8aea8c195af31b0d9984974b716b8d075c2f3feed8fe155a7d18f1c2a5aae81af9e9be78e45f6872c313e0cc5fc35364a407
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
- filtered.map {|set| set['setSpec']}
22
+ filtered_sets.map { |set| set['setSpec'] }
23
23
  end
24
24
 
25
- private
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.12.9"
2
+ VERSION = "0.13.0"
3
3
  end
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.12.9
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-12 00:00:00.000000000 Z
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