cdmbl 0.12.8 → 0.12.9

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: 42fb39b5c448746c3fc933d47745f88a0fbb8cfb
4
- data.tar.gz: 3161eeb1ff9219605fd1e08196bf6f905ec56340
3
+ metadata.gz: 4f7d581ed79eeb256b9686e2cb897fb516fc2be1
4
+ data.tar.gz: 24b599e638c0a17e303c36b747aa366a79c0676b
5
5
  SHA512:
6
- metadata.gz: 0e81dfb04c1a70e7700b36e60f53397beee537310a00dc692ad803b3bca18f5b06340ca253ad96994d23bfa33d8ad8f5accd04abcbf6857f27f7d8f55d690fa5
7
- data.tar.gz: d62514e24f91556931b6bb8c06ef0ed63c7055b286d8c330abfc50c8ac67167e2edf02a510220cdf71336d6cf93a407e01581139a3b88d27461dab72c44b903c
6
+ metadata.gz: caeaede827f022a1364423415346f23866af91613fba6b824f713297127f699795364e83e109f36a5fd84623177b420e6d483344baedb9a292fcafe902977441
7
+ data.tar.gz: 2ffa46683c0e7131cf13d20aa1fd8aea8c195af31b0d9984974b716b8d075c2f3feed8fe155a7d18f1c2a5aae81af9e9be78e45f6872c313e0cc5fc35364a407
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['chadfennell']
10
10
  spec.email = ['fenne035@umn.edu']
11
11
 
12
- spec.summary = %q{Use Blacklight (Solr) as a front end for your CONTENTdm instance.}
12
+ spec.summary = %q{Load CONTENTdm data into a Solr Index. CDMBL expects to run inside a Rails application.}
13
13
  spec.license = 'MIT'
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency 'sidekiq', '>= 3.5'
23
23
  spec.add_dependency 'titleize', '~> 1.4'
24
24
  spec.add_dependency 'rsolr', '~> 2.0'
25
- # This gem generally wants to be in a rails app, but just to avoid adding
25
+ # CDMBL expects to run in a rails app, but just to avoid adding
26
26
  # another external dependency for XML procssing, we rely on activesupport's
27
27
  # Has.to_jsonl feature for testing and to allow this gem to function
28
28
  # independently from a rails app
@@ -3,6 +3,7 @@ module CDMBL
3
3
  # Load Records into a solr index
4
4
  class LoadWorker
5
5
  include Sidekiq::Worker
6
+ sidekiq_options queue: :critical
6
7
  attr_reader :solr_config, :records, :deletables
7
8
  attr_writer :loader_klass, :solr_klass
8
9
  def perform(records = [], deletables = [], solr_config = {})
@@ -41,7 +41,9 @@ module CDMBL
41
41
  end.map do |record|
42
42
  record['page'].each_with_index.map do |page, i|
43
43
  # Associate each compound child with its parent
44
- page.merge!('parent_id' => record['id'], 'record_type' => 'secondary', 'child_index' => i)
44
+ page.merge!('parent_id' => record['id'],
45
+ 'parent' => record.except('page'),
46
+ 'record_type' => 'secondary', 'child_index' => i)
45
47
  end
46
48
  end.flatten
47
49
  end
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.12.8"
2
+ VERSION = "0.12.9"
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.8
4
+ version: 0.12.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-08 00:00:00.000000000 Z
11
+ date: 2018-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_at_path
@@ -269,5 +269,6 @@ rubyforge_project:
269
269
  rubygems_version: 2.6.13
270
270
  signing_key:
271
271
  specification_version: 4
272
- summary: Use Blacklight (Solr) as a front end for your CONTENTdm instance.
272
+ summary: Load CONTENTdm data into a Solr Index. CDMBL expects to run inside a Rails
273
+ application.
273
274
  test_files: []