ddr-batch 1.4.1 → 1.5.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ddr/batch/ingest_batch_object.rb +2 -2
- data/lib/ddr/batch/version.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c688625355f1718c0457d10059bdb027d7944ddb
|
4
|
+
data.tar.gz: 44d3968522b57fe13747b472da08713cbe8bdcd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 350292e876260b27bcc86260ff95f972ace84d828e7cd4b39e2390e21a4125959e42a773c323653b80aacd79e7ea4a0208c606eaf179491cb4ad8d183eb1ff78
|
7
|
+
data.tar.gz: cc599ffc4da6fd0af389659ce1ddaef07bc4396b98857e37132f20b993469111f41c01ab4be040b5aae0a4c15127e70d6a8ff30221d816ac1421611d660b0188
|
@@ -97,11 +97,11 @@ module Ddr::Batch
|
|
97
97
|
repo_object = model.constantize.new(:pid => repo_pid)
|
98
98
|
repo_object.label = label if label
|
99
99
|
batch_object_attributes.each { |a| repo_object = add_attribute(repo_object, a) }
|
100
|
-
repo_object.save(validate: false)
|
100
|
+
repo_object.save(validate: false, skip_structure_updates: true)
|
101
101
|
batch_object_datastreams.each { |d| repo_object = populate_datastream(repo_object, d) }
|
102
102
|
batch_object_relationships.each { |r| repo_object = add_relationship(repo_object, r) }
|
103
103
|
batch_object_roles.each { |r| repo_object = add_role(repo_object, r) }
|
104
|
-
repo_object.save!
|
104
|
+
repo_object.save!(skip_structure_updates: true)
|
105
105
|
rescue Exception => e1
|
106
106
|
logger.fatal("Error in creating repository object #{repo_object.pid} for #{identifier} : #{e1}")
|
107
107
|
if repo_object && !repo_object.new_record?
|
data/lib/ddr/batch/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Coble
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -165,6 +165,20 @@ dependencies:
|
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: byebug
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
type: :development
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
168
182
|
description: Batch processing for Duke Digital Repository
|
169
183
|
email:
|
170
184
|
- lib-drs@duke.edu
|
@@ -231,9 +245,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
245
|
version: '0'
|
232
246
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
233
247
|
requirements:
|
234
|
-
- - "
|
248
|
+
- - ">"
|
235
249
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
250
|
+
version: 1.3.1
|
237
251
|
requirements: []
|
238
252
|
rubyforge_project:
|
239
253
|
rubygems_version: 2.6.11
|