bulkrax 4.4.0 → 4.4.2

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: d53012e0252f8033f5da334d5336c134deb3a6221040cfe4c1c6c01bb473d617
4
- data.tar.gz: e986a3506c073aa533c4ea303a123e8866d2bf7ac6d8ab6df3949682f61b6c05
3
+ metadata.gz: 31cd372e0edaed82bcb885af97c8543d566703a5bed6e30d4afd79c3521ed488
4
+ data.tar.gz: ef7a341d6618fe5128a9fe1b4cb8bd6e29469fbaefaa8d290e74506243e43dc6
5
5
  SHA512:
6
- metadata.gz: 8ea20593d1164f62fdfda2dbe84bd8cc4e199a65d7e85eea0b68b27e71aeff7579f1b0059042f55eec1c7ab36f8dec9db406ad58cc3a315b29b8e4900f7cb450
7
- data.tar.gz: 89a03cd842d855d48f8c4952b6e9a6daea757e80cb8c0f9ee370b59f90e434b39dfb548deb1757f36463914bd5cccbcf1df6c5ffd9102bb5f0d54b5b7ea6476f
6
+ metadata.gz: ff944e8143867a4314a5e3f54527f2adbcbdd2433361c660af6085a76d75393138c6ff8ab15dae6fe05563e3f7ed835b75b2727494e6c78db47186ccb6668bff
7
+ data.tar.gz: 6028e73994d4bdd6b40122960b9da8f221b86d6d7c86e3b362ced1b0deee04615bacbe1e0b7a4dfd8e1df08029e36f6dbcb5f3351e496b05ee02335e9ba2dc35
@@ -227,6 +227,7 @@ module Bulkrax
227
227
  def transform_attributes(update: false)
228
228
  @transform_attributes = attributes.slice(*permitted_attributes)
229
229
  @transform_attributes.merge!(file_attributes(update_files)) if with_files
230
+ @transform_attributes.transform_values! { |v| v == [""] ? [] : v }
230
231
  update ? @transform_attributes.except(:id) : @transform_attributes
231
232
  end
232
233
 
@@ -153,7 +153,7 @@ module Bulkrax
153
153
  # @see #create_relationships
154
154
  def create_objects(types = [])
155
155
  types.each do |object_type|
156
- parser.send("create_#{object_type.pluralize}")
156
+ send("create_#{object_type.pluralize}")
157
157
  end
158
158
  end
159
159
 
@@ -30,6 +30,12 @@ module Bulkrax
30
30
  OaiSetEntry
31
31
  end
32
32
 
33
+ def file_set_entry_class; end
34
+
35
+ def create_relationships; end
36
+
37
+ def create_file_sets; end
38
+
33
39
  def records(opts = {})
34
40
  opts[:metadata_prefix] ||= importerexporter.parser_fields['metadata_prefix']
35
41
  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 = '4.4.0'
4
+ VERSION = '4.4.2'
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: 4.4.0
4
+ version: 4.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob Kaufman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-01 00:00:00.000000000 Z
11
+ date: 2023-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -425,7 +425,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
425
425
  - !ruby/object:Gem::Version
426
426
  version: '0'
427
427
  requirements: []
428
- rubygems_version: 3.0.3
428
+ rubygems_version: 3.1.6
429
429
  signing_key:
430
430
  specification_version: 4
431
431
  summary: Import and export tool for Hyrax and Hyku