trogdir_models 0.11.5 → 0.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/trogdir/syncinator.rb +5 -1
- data/lib/trogdir_models/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 277860888e824ed5b7c0afc168ad05139041e318
|
4
|
+
data.tar.gz: 9d7a3d280274887346be62bbaa0ed4eb190e00f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0033b8c45a72589c0f3fcfd9149e76cbbb8f8eb1be65c3c388c5e678b8ff24b0b73ea2adb8ab78316cd810e8f11f6b6c1d58d7c8f87f9720bcbcf2d731978e38
|
7
|
+
data.tar.gz: dcee29b97cef7d763507c6a2113e407ced3a3492789afc046e4a8c8de518dd0af56f63e6c76bb1e6b0e935e996029cda1d60562630bf32dd94f487d944313486
|
data/lib/trogdir/syncinator.rb
CHANGED
@@ -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
|
-
|
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
|