hekenga 0.2.0 → 0.2.1

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: ada2d751dad24dfabc63bc15116d3f0716ca86af
4
- data.tar.gz: 625d792a4d30c70410b9e2211ef5e42b2473781e
3
+ metadata.gz: 35c1fbccf2bd601d681d2803ad8b35211d14dc79
4
+ data.tar.gz: 989ed14b5c1c0fdd91fed77eea714d42d10c7e90
5
5
  SHA512:
6
- metadata.gz: c5954d9417a8841b68fdf45555f3e2685fe8469e2aac72767f34d58ecc7a11ea4f44fad05bae5dbeb789a094b0cf2cef9804ff315c55fd7a3fb70c984cf7658e
7
- data.tar.gz: 4ec78aa0ccee0ccb5df3cb013604989b52e9e0ddafc5ee5ee10adb4635c37a55517dd8b5c49341afc6b5861fa6384a22d4190eebe8292f4b05693a776dffa40c
6
+ metadata.gz: f26baf56f54169f2735f3fbb21ad68ccb234f8220e3a261a218ebb4b9f2eab390826ab3fc8ab8931933c97918c390bfc6f76028ae37061d7a566b7802c964016
7
+ data.tar.gz: e20a04f148c19b1430693f6becf200c8d0f3fecd4fb5cc7cc75318a6370530c1eec23086ab61a46d2d43fe9f7455f5859da9e9fcdff0d9a3ee5883301d51ecc2
@@ -398,7 +398,7 @@ module Hekenga
398
398
  log.add_failure({
399
399
  message: error.to_s,
400
400
  backtrace: error.backtrace,
401
- document: Marshal.load(Marshal.dump(record.as_document)),
401
+ document: deep_clone(record),
402
402
  batch_start: batch_start_id
403
403
  }, Hekenga::Failure::Error)
404
404
  log_cancel!
@@ -420,7 +420,7 @@ module Hekenga
420
420
  log.add_failure({
421
421
  doc_id: record.id,
422
422
  errs: record.errors.full_messages,
423
- document: Marshal.load(Marshal.dump(record.as_document))
423
+ document: deep_clone(record),
424
424
  }, Hekenga::Failure::Validation)
425
425
  log.set(error: true)
426
426
  log.incr_and_return(processed: 1, unvalid: 1)
@@ -1,3 +1,3 @@
1
1
  module Hekenga
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hekenga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tapio Saarinen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2017-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler