trogdir_models 0.11.5 → 0.11.6

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: b26c9b90d1e9bfbd4906151b83e1ab373e0ab4fd
4
- data.tar.gz: 5173ad78e35e701ad98d5bf354cbd2a68a74558b
3
+ metadata.gz: 277860888e824ed5b7c0afc168ad05139041e318
4
+ data.tar.gz: 9d7a3d280274887346be62bbaa0ed4eb190e00f9
5
5
  SHA512:
6
- metadata.gz: 5c6a44a1ab75bc679174493713f6818ca73a49ff6d5a01609a3eb0cf05bd3081f7a5a16cb714c03dae11bdd11ce6090e90bbb9df92de221c727bb2ff9a1e1c39
7
- data.tar.gz: d5855dadfc638f241953bdac5edb61b014b2c5a53812a1b1461362ee0cf2efb0f0ee6f6dd111bb980139f8e108dbec503cea9f49254bca23e520e6ac1eb8c9bc
6
+ metadata.gz: 0033b8c45a72589c0f3fcfd9149e76cbbb8f8eb1be65c3c388c5e678b8ff24b0b73ea2adb8ab78316cd810e8f11f6b6c1d58d7c8f87f9720bcbcf2d731978e38
7
+ data.tar.gz: dcee29b97cef7d763507c6a2113e407ced3a3492789afc046e4a8c8de518dd0af56f63e6c76bb1e6b0e935e996029cda1d60562630bf32dd94f487d944313486
@@ -81,7 +81,11 @@ class Syncinator
81
81
  sync_log.succeeded_at = Time.now
82
82
  sync_log.action = action
83
83
  sync_log.message = message
84
- sync_log.save!
84
+ # There seems to be a bug in mongoid 4.0.2 that saves two records if you call just
85
+ # sync_log.save!. Calling save on the ChangeSync seems to be the best work-around for now.
86
+ # Thanks to Michael for finding the least-stupid workaround.
87
+ # TODO: do a simple sync_log.save! when this issue gets fixed.
88
+ sync_log.change_sync.save!
85
89
 
86
90
  sync_log
87
91
  end
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.11.5'
2
+ VERSION = '0.11.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trogdir_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.5
4
+ version: 0.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble