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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c24971e8491fd780edcb6ae105dce572a5b63d4b
4
- data.tar.gz: 459b293c13b38f5c610b0baea759587c32779a7f
3
+ metadata.gz: e0258ad4a0db61afd9cbb30f8d82c42394b35e09
4
+ data.tar.gz: aa9aaf578134660343ced59c4dcc8f903c427867
5
5
  SHA512:
6
- metadata.gz: 50b73d045baae3e288885a46d8b64f6263bf208c875675e3c101133861bffb83b48d5499249102bb74a4129bf2690a09ab0fa00cb7d7fcf2763c256090dc78ae
7
- data.tar.gz: ab094e58e758ef7a59a098af16196a7b9346bdb7b4c47d5f6395e8c4b43dbf4c346cc7ba434e6a5ec5354c20b1d1a4abd0d93e145a2fcde3abb2752464040e6f
6
+ metadata.gz: 1c465e672b805f9f04bd2951aa495bc517cba54a4b19b0def863fc8395060dd351f6038471a76299ea675f2d114c91dd455d2e280b8a3bb02d156df34eba6ef3
7
+ data.tar.gz: fd639db3e5afd352be4e7fa08a7a222c72c07b4c02a82cbdba81492441d7f3092f7af9e087cbfd799a77bb9bfeab26beb4024c98461f73577471b67c6e3dde14
@@ -66,12 +66,19 @@ class Syncinator
66
66
  end
67
67
 
68
68
  def error!(sync_log, message)
69
- sync_log.update_attributes errored_at: Time.now, message: message
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.update_attributes succeeded_at: Time.now, action: action, message: message
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
 
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.11.3'
2
+ VERSION = '0.11.4'
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.11.3
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-19 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api-auth