bulkrax 5.2.0 → 5.2.1

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
  SHA256:
3
- metadata.gz: c9794c69e891f2397ac94398676f49db008e83b7a6df16e7a08f0ab393c148ca
4
- data.tar.gz: fd2d48507add6bcbc7557f9240951d174c488e456579af65e20bb6cdc6f3c080
3
+ metadata.gz: 4a811bef32bb83948c7ea8fe9cbc3aead7e9fa3e09f88fe6d3ec45e4cdef7461
4
+ data.tar.gz: 253314c9d1a35505b50ad70e6fb0f9dec0f5331a55cdee6555cb137fff697e08
5
5
  SHA512:
6
- metadata.gz: 3b07a4178650201c48602c9bb9df29135a5cc51bc6954355732bd6ae5fa918c5fd4c88d187e305b7ee2877ca995818d7ec3a476e92ec173c7569c0a15ca229a2
7
- data.tar.gz: 324393aeb341d82b23e6391cbe1ec2a64d3e55a61400330f1656f46b3bb22cd0c6e7335cfeaf1b3b12e6ca5faefea5405b96e1100b1df138dd4c5a87fd522d76
6
+ metadata.gz: 3c8281a0c12778d8db9a6e3e8dc39a9c591e2d81e9d668b9b52da400b65e48012f40b51b86aa75182fc26b7bf8d20e761af7a00b6c1c798df34dba35da7890fc
7
+ data.tar.gz: d71d16a09cfa1d9b0c3954bf2be9f2778bacdaa98e0a99d301c0b0762d8be04b0213f99463e05e6aab33321b64a9284551b32a1435e97569097e32c23e74f95d
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+ require 'bagit'
2
3
 
3
4
  module Bulkrax
4
5
  class BagitParser < CsvParser # rubocop:disable Metrics/ClassLength
@@ -94,9 +95,9 @@ module Bulkrax
94
95
 
95
96
  folder_count = 1
96
97
  records_in_folder = 0
97
- work_entries = importerexporter.entries.where(identifier: @work_ids)
98
- collection_entries = importerexporter.entries.where(identifier: @collection_ids)
99
- file_set_entries = importerexporter.entries.where(identifier: @file_set_ids)
98
+ work_entries = importerexporter.entries.where(type: work_entry_class.to_s)
99
+ collection_entries = importerexporter.entries.where(type: collection_entry_class.to_s)
100
+ file_set_entries = importerexporter.entries.where(type: file_set_entry_class.to_s)
100
101
 
101
102
  work_entries[0..limit || total].each do |entry|
102
103
  record = ActiveFedora::Base.find(entry.identifier)
@@ -30,6 +30,8 @@ module Bulkrax
30
30
  OaiSetEntry
31
31
  end
32
32
 
33
+ def file_set_entry_class; end
34
+
33
35
  def records(opts = {})
34
36
  opts[:metadata_prefix] ||= importerexporter.parser_fields['metadata_prefix']
35
37
  opts[:set] = collection_name unless collection_name == 'all'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bulkrax
4
- VERSION = '5.2.0'
4
+ VERSION = '5.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bulkrax
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kaufman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-19 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -427,7 +427,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
427
427
  - !ruby/object:Gem::Version
428
428
  version: '0'
429
429
  requirements: []
430
- rubygems_version: 3.1.6
430
+ rubygems_version: 3.0.3
431
431
  signing_key:
432
432
  specification_version: 4
433
433
  summary: Import and export tool for Hyrax and Hyku