trogdir_models 0.11.3 → 0.11.4
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 +9 -2
- 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: e0258ad4a0db61afd9cbb30f8d82c42394b35e09
|
4
|
+
data.tar.gz: aa9aaf578134660343ced59c4dcc8f903c427867
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c465e672b805f9f04bd2951aa495bc517cba54a4b19b0def863fc8395060dd351f6038471a76299ea675f2d114c91dd455d2e280b8a3bb02d156df34eba6ef3
|
7
|
+
data.tar.gz: fd639db3e5afd352be4e7fa08a7a222c72c07b4c02a82cbdba81492441d7f3092f7af9e087cbfd799a77bb9bfeab26beb4024c98461f73577471b67c6e3dde14
|
data/lib/trogdir/syncinator.rb
CHANGED
@@ -66,12 +66,19 @@ class Syncinator
|
|
66
66
|
end
|
67
67
|
|
68
68
|
def error!(sync_log, message)
|
69
|
-
sync_log.
|
69
|
+
sync_log.errored_at = Time.now
|
70
|
+
sync_log.message = message
|
71
|
+
sync_log.save!
|
72
|
+
|
70
73
|
sync_log
|
71
74
|
end
|
72
75
|
|
73
76
|
def finish!(sync_log, action, message = nil)
|
74
|
-
sync_log.
|
77
|
+
sync_log.succeeded_at = Time.now
|
78
|
+
sync_log.action = action
|
79
|
+
sync_log.message = message
|
80
|
+
sync_log.save!
|
81
|
+
|
75
82
|
sync_log
|
76
83
|
end
|
77
84
|
|
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.4
|
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-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api-auth
|