bulkrax 8.2.0 → 8.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/lib/bulkrax/version.rb +1 -1
- data/lib/bulkrax.rb +40 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f2cc08d07d9dcc8bd23ffcbb4bffb003a29526e10eee216eafe38218cf210e4
|
4
|
+
data.tar.gz: ebb308781109821d73da4f26e1a836ff6ee7ae1052145808321b385380b57e17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1e760746c5afdf36af2621ca6a2b13d6c1c81f5a5a1e291ec290c53c0bbe2219d346aa0dc54db8b2bf17f11e5aea13594058d0bae55518bf5fa857e8190661f
|
7
|
+
data.tar.gz: d840b1bdcb3c20ca939f778e3e6e5bbb490e890224ec5c912dcf881489e34a58b6d957395387a358fa8930023a93f8f15077ac7f5146a7d87fa0e7a59b6d71e8
|
data/README.md
CHANGED
@@ -24,6 +24,14 @@ $ rails db:migrate
|
|
24
24
|
|
25
25
|
If using Sidekiq, set up queues for `import` and `export`.
|
26
26
|
|
27
|
+
### Bundle errors on ARM
|
28
|
+
|
29
|
+
If posix-spawn is failing to bundle on an ARM based processor, try the following
|
30
|
+
|
31
|
+
`bundle config build.posix-spawn --with-cflags="-Wno-incompatible-function-pointer-types"`
|
32
|
+
|
33
|
+
Then rebundle. See https://github.com/rtomayko/posix-spawn/issues/92
|
34
|
+
|
27
35
|
### Manual Installation
|
28
36
|
|
29
37
|
Add this line to your application's Gemfile:
|
data/lib/bulkrax/version.rb
CHANGED
data/lib/bulkrax.rb
CHANGED
@@ -98,7 +98,20 @@ module Bulkrax
|
|
98
98
|
attr_writer :collection_model_class
|
99
99
|
|
100
100
|
def collection_model_internal_resource
|
101
|
-
|
101
|
+
# WARN: Using #try on :internal_resource can yield unexpected results.
|
102
|
+
# If the method is undefined, it can return a truthy value instead of
|
103
|
+
# the typical nil.
|
104
|
+
#
|
105
|
+
# E.g.
|
106
|
+
# ```ruby
|
107
|
+
# Hyrax::FileSet.try(:internal_resource) || 'hi'
|
108
|
+
# => #<Dry::Types::Result::Failure input=:internal_resource error=...
|
109
|
+
# ```
|
110
|
+
if collection_model_class.respond_to?(:internal_resource)
|
111
|
+
collection_model_class.internal_resource
|
112
|
+
else
|
113
|
+
collection_model_class.to_s
|
114
|
+
end
|
102
115
|
end
|
103
116
|
|
104
117
|
def file_model_class
|
@@ -108,7 +121,20 @@ module Bulkrax
|
|
108
121
|
attr_writer :file_model_class
|
109
122
|
|
110
123
|
def file_model_internal_resource
|
111
|
-
|
124
|
+
# WARN: Using #try on :internal_resource can yield unexpected results.
|
125
|
+
# If the method is undefined, it can return a truthy value instead of
|
126
|
+
# the typical nil.
|
127
|
+
#
|
128
|
+
# E.g.
|
129
|
+
# ```ruby
|
130
|
+
# Hyrax::FileSet.try(:internal_resource) || 'hi'
|
131
|
+
# => #<Dry::Types::Result::Failure input=:internal_resource error=...
|
132
|
+
# ```
|
133
|
+
if file_model_class.respond_to?(:internal_resource)
|
134
|
+
file_model_class.internal_resource
|
135
|
+
else
|
136
|
+
file_model_class.to_s
|
137
|
+
end
|
112
138
|
end
|
113
139
|
|
114
140
|
def curation_concerns
|
@@ -118,7 +144,18 @@ module Bulkrax
|
|
118
144
|
attr_writer :curation_concerns
|
119
145
|
|
120
146
|
def curation_concern_internal_resources
|
121
|
-
curation_concerns.map
|
147
|
+
curation_concerns.map do |cc|
|
148
|
+
# WARN: Using #try on :internal_resource can yield unexpected results.
|
149
|
+
# If the method is undefined, it can return a truthy value instead of
|
150
|
+
# the typical nil.
|
151
|
+
#
|
152
|
+
# E.g.
|
153
|
+
# ```ruby
|
154
|
+
# Hyrax::FileSet.try(:internal_resource) || 'hi'
|
155
|
+
# => #<Dry::Types::Result::Failure input=:internal_resource error=...
|
156
|
+
# ```
|
157
|
+
cc.respond_to?(:internal_resource) ? cc.internal_resource : cc.to_s
|
158
|
+
end.uniq
|
122
159
|
end
|
123
160
|
|
124
161
|
attr_writer :ingest_queue_name
|
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: 8.2.
|
4
|
+
version: 8.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: 2024-
|
11
|
+
date: 2024-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -134,14 +134,14 @@ dependencies:
|
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
137
|
+
version: '5.0'
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version:
|
144
|
+
version: '5.0'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: loofah
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -518,7 +518,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
518
518
|
- !ruby/object:Gem::Version
|
519
519
|
version: '0'
|
520
520
|
requirements: []
|
521
|
-
rubygems_version: 3.4.
|
521
|
+
rubygems_version: 3.4.20
|
522
522
|
signing_key:
|
523
523
|
specification_version: 4
|
524
524
|
summary: Import and export tool for Hyrax and Hyku
|