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 +4 -4
- data/lib/trogdir/syncinator.rb +5 -1
- data/lib/trogdir_models/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b26c9b90d1e9bfbd4906151b83e1ab373e0ab4fd
|
4
|
+
data.tar.gz: 5173ad78e35e701ad98d5bf354cbd2a68a74558b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c6a44a1ab75bc679174493713f6818ca73a49ff6d5a01609a3eb0cf05bd3081f7a5a16cb714c03dae11bdd11ce6090e90bbb9df92de221c727bb2ff9a1e1c39
|
7
|
+
data.tar.gz: d5855dadfc638f241953bdac5edb61b014b2c5a53812a1b1461362ee0cf2efb0f0ee6f6dd111bb980139f8e108dbec503cea9f49254bca23e520e6ac1eb8c9bc
|
data/lib/trogdir/syncinator.rb
CHANGED
@@ -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
|
-
|
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
|
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
|
+
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-
|
11
|
+
date: 2015-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api-auth
|