cdmbl 0.12.8 → 0.12.9
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/cdmbl.gemspec +2 -2
- data/lib/cdmbl/load_worker.rb +1 -0
- data/lib/cdmbl/transformer.rb +3 -1
- data/lib/cdmbl/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f7d581ed79eeb256b9686e2cb897fb516fc2be1
|
4
|
+
data.tar.gz: 24b599e638c0a17e303c36b747aa366a79c0676b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caeaede827f022a1364423415346f23866af91613fba6b824f713297127f699795364e83e109f36a5fd84623177b420e6d483344baedb9a292fcafe902977441
|
7
|
+
data.tar.gz: 2ffa46683c0e7131cf13d20aa1fd8aea8c195af31b0d9984974b716b8d075c2f3feed8fe155a7d18f1c2a5aae81af9e9be78e45f6872c313e0cc5fc35364a407
|
data/cdmbl.gemspec
CHANGED
@@ -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{
|
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
|
-
#
|
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
|
data/lib/cdmbl/load_worker.rb
CHANGED
@@ -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 = {})
|
data/lib/cdmbl/transformer.rb
CHANGED
@@ -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'],
|
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
|
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.12.
|
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-
|
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:
|
272
|
+
summary: Load CONTENTdm data into a Solr Index. CDMBL expects to run inside a Rails
|
273
|
+
application.
|
273
274
|
test_files: []
|