trogdir_models 0.11.4 → 0.11.5

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: e0258ad4a0db61afd9cbb30f8d82c42394b35e09
4
- data.tar.gz: aa9aaf578134660343ced59c4dcc8f903c427867
3
+ metadata.gz: b26c9b90d1e9bfbd4906151b83e1ab373e0ab4fd
4
+ data.tar.gz: 5173ad78e35e701ad98d5bf354cbd2a68a74558b
5
5
  SHA512:
6
- metadata.gz: 1c465e672b805f9f04bd2951aa495bc517cba54a4b19b0def863fc8395060dd351f6038471a76299ea675f2d114c91dd455d2e280b8a3bb02d156df34eba6ef3
7
- data.tar.gz: fd639db3e5afd352be4e7fa08a7a222c72c07b4c02a82cbdba81492441d7f3092f7af9e087cbfd799a77bb9bfeab26beb4024c98461f73577471b67c6e3dde14
6
+ metadata.gz: 5c6a44a1ab75bc679174493713f6818ca73a49ff6d5a01609a3eb0cf05bd3081f7a5a16cb714c03dae11bdd11ce6090e90bbb9df92de221c727bb2ff9a1e1c39
7
+ data.tar.gz: d5855dadfc638f241953bdac5edb61b014b2c5a53812a1b1461362ee0cf2efb0f0ee6f6dd111bb980139f8e108dbec503cea9f49254bca23e520e6ac1eb8c9bc
@@ -68,7 +68,11 @@ class Syncinator
68
68
  def error!(sync_log, message)
69
69
  sync_log.errored_at = Time.now
70
70
  sync_log.message = message
71
- sync_log.save!
71
+ # There seems to be a bug in mongoid 4.0.2 that saves two records if you call just
72
+ # sync_log.save!. Calling save on the ChangeSync seems to be the best work-around for now.
73
+ # Thanks to Michael for finding the least-stupid workaround.
74
+ # TODO: do a simple sync_log.save! when this issue gets fixed.
75
+ sync_log.change_sync.save!
72
76
 
73
77
  sync_log
74
78
  end
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.11.4'
2
+ VERSION = '0.11.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trogdir_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-23 00:00:00.000000000 Z
11
+ date: 2015-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api-auth