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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6f53c7c6bb79e40c6b298a6fd71be4d3a07b429
4
- data.tar.gz: 9b79a510d11e72d72be75e16985696b349c4f21b
3
+ metadata.gz: 8a5039792c8db9e98300be9049920edef89da93b
4
+ data.tar.gz: e3d132c694f21cf06a82d6eaa6777b4f54a39287
5
5
  SHA512:
6
- metadata.gz: 78242b8a7d929978fff64895ea017cf10799fb2295c572dafa3bb02309e74c35552d4ee2ea85bcbe98c812639318f56937062feb0572b867e1274eccd242ff6e
7
- data.tar.gz: acb1cfe6c0d09b842354d80782fc449776dc6b2fdb3fc77a76c49acafdba20e5bca7c6e32bb148c68d3c2abf7ec0843f6bd5a0b8cf448170daf683cc3fba51a1
6
+ metadata.gz: f4fda28ccdd574d364a9499ad79c9f53cb3751bab05b0c196a0273b98d5c44401f1f5f86844023fe75af8d908dea3201ba25b9684bfa040ace17a162650a4c43
7
+ data.tar.gz: 573e3476afa5a8f36fb60d0b922fb7039459509b2a06b4a2cdc4ae5436ad8c5595a8dee75db3a516681f2761b6e6e815f8deb4cbc281e229602c98e417318a61
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.18.1'
2
+ VERSION = '0.19.0'
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.18.1
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: 2016-08-26 00:00:00.000000000 Z
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: '0.5'
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: '0.5'
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.6.1
219
+ rubygems_version: 2.2.3
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Shared models for the Trogdir directory