ddr-batch 1.2.0.rc4 → 1.2.0.rc5

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: ca0eca746d652082acbf7faecb014965fdc9d86d
4
- data.tar.gz: ce21f71b13eb85e945da930ad84e4367a6121fd3
3
+ metadata.gz: fa7c749e7a4d5890af0a5361686efb35b6e14a25
4
+ data.tar.gz: e9b9bc82f92990cd7f1c47f20c384ee9cf375b4f
5
5
  SHA512:
6
- metadata.gz: f1872759372d0369f24c215c129b87f252f7183322cfb9c44493290baa40c52cd5985c99e174cb2dd240cba09243601b99451409cbe7d4c66b886cf2aea7c1ed
7
- data.tar.gz: 300c46a56f19e811c31cf727f3247f3dc048458015f8297367c13048c0072c49ee4e8308c69b901a0998df3f2fbfdad8a84a780b8ef2dc0b3e010695fa03e05d
6
+ metadata.gz: a6d004c54939cd8494bd24270c0dd9dbbd2307bc5a99b44d27f7c8f07c89ac3215e9b46022b205ac48c14526319912ddb1de0ab3245a2f429380294f14e9f51d
7
+ data.tar.gz: 3c689cb6e24dce70e3325e3414804c422049d8b18125457842bc5b156bc0ae0ec1917a3e512ab8fe3e8e517c269444337f34302c69c588ab5475293165ed7371
@@ -13,6 +13,7 @@ module Ddr::Batch
13
13
 
14
14
  def batch_object_handled(batch_object, batch)
15
15
  log_batch_object_messages(batch_object, batch.id)
16
+ batch_object.update!(handled: true)
16
17
  unless batch.unhandled_objects?
17
18
  ActiveSupport::Notifications.instrument('finished.batch.batch.ddr', batch_id: batch.id)
18
19
  end
@@ -12,8 +12,6 @@ module Ddr::Batch
12
12
  ActiveSupport::Notifications.instrument("handled.batchobject.batch.ddr",
13
13
  batch_object_id: batch_object_id) do |payload|
14
14
  batch_object = BatchObject.find(batch_object_id)
15
- # Mark batch object as 'handled'
16
- batch_object.update!(handled: true)
17
15
  # Validate batch object
18
16
  errors = batch_object.validate
19
17
  # Process batch object or record validation errors
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Batch
3
- VERSION = "1.2.0.rc4"
3
+ VERSION = "1.2.0.rc5"
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.2.0.rc4
4
+ version: 1.2.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble