trogdir_models 0.18.1 → 0.19.0
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 +3 -0
- data/lib/trogdir_models/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a5039792c8db9e98300be9049920edef89da93b
|
4
|
+
data.tar.gz: e3d132c694f21cf06a82d6eaa6777b4f54a39287
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4fda28ccdd574d364a9499ad79c9f53cb3751bab05b0c196a0273b98d5c44401f1f5f86844023fe75af8d908dea3201ba25b9684bfa040ace17a162650a4c43
|
7
|
+
data.tar.gz: 573e3476afa5a8f36fb60d0b922fb7039459509b2a06b4a2cdc4ae5436ad8c5595a8dee75db3a516681f2761b6e6e815f8deb4cbc281e229602c98e417318a61
|
data/lib/trogdir/syncinator.rb
CHANGED
@@ -65,6 +65,9 @@ class Syncinator
|
|
65
65
|
def start!(changeset)
|
66
66
|
return false unless change_sync = change_sync_for(changeset)
|
67
67
|
|
68
|
+
# delete old pending sync_logs before creating a new one
|
69
|
+
change_sync.sync_logs.where(succeeded_at: nil, errored_at: nil).delete
|
70
|
+
|
68
71
|
change_sync.sync_logs.create! started_at: Time.now
|
69
72
|
end
|
70
73
|
|
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.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Crownoble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api-auth
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: mongoid-history
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.5.0
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.5.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mongoid_userstamp
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
218
|
rubyforge_project:
|
219
|
-
rubygems_version: 2.
|
219
|
+
rubygems_version: 2.2.3
|
220
220
|
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: Shared models for the Trogdir directory
|