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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df5ca5211642e20d9091bea477674a46296b275e
4
- data.tar.gz: 4679183d43d0e5a81ae2f39e8cb3858b0c581609
3
+ metadata.gz: c688625355f1718c0457d10059bdb027d7944ddb
4
+ data.tar.gz: 44d3968522b57fe13747b472da08713cbe8bdcd3
5
5
  SHA512:
6
- metadata.gz: 281c26fa8dee4d9494f6a6846858ea57923a251e310a27abb3ecb10d33c439e483d5170a829b6ff34521ea0c98f5ae46c98ee679a952241f404358c62267af6f
7
- data.tar.gz: c747ae98799fc307d5ef5aba2020c0a81f1dcc9372eb72a55e52afa133854c2afc0abf26566d03e013b806242afe35c3380dc5d5c1fd28d594abbdbba4afa7e0
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?
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Batch
3
- VERSION = "1.4.1"
3
+ VERSION = "1.5.0.rc1"
4
4
  end
5
5
  end
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.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-06-29 00:00:00.000000000 Z
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: '0'
250
+ version: 1.3.1
237
251
  requirements: []
238
252
  rubyforge_project:
239
253
  rubygems_version: 2.6.11