deb 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/deb/transaction.rb +2 -2
- data/lib/deb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MzkyYjMwNTE1ZDY2YzdkYmJhMjNhZTA1YmMzOGJlNjUzNTMyYzI1Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWZlMTc3NmEwMjA2NDI5YzQ1YTQ4MTcyN2Q3MDQ0ODZiZmM0ODViZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2FiN2ZlZWQwZDE1YjBjNDhmYjgyYzlkOTVhZjUwYmY4NmJjODQ3OTA4ZTY0
|
10
|
+
MDgxYzU3YzkxMzY1NTI4YTI5ZWZjY2E2NDU5MTFhNGZjZmUzNWM2N2QwNDJm
|
11
|
+
YzgyYThiMDE4YmUzNmE4ZDQ1OThkOTMzN2Y3ZjRhNTE4YWY4NzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjNiZjliOWU1N2Q5MTY2NTg1ZTRjMDU3ZmJiZmUyODBmOTNjYTViOTE2NmU3
|
14
|
+
YjdmYjY2MTM4ZjAyNzUyNTg2NTFkZWY0MzEzZTE1M2RkZDVkOWMyMTUyM2Uz
|
15
|
+
NmJlYmQ4MjFhYTEwM2NkMWVhNTAzNDRkZTZlYWU0ZjE0ZjI4MjQ=
|
@@ -18,12 +18,12 @@ module Deb
|
|
18
18
|
Docile.dsl_eval(Deb::Builder.new, &block).build
|
19
19
|
end
|
20
20
|
|
21
|
-
def rollback!
|
21
|
+
def rollback!(ref = nil)
|
22
22
|
tran = self
|
23
23
|
self.class.start! do
|
24
24
|
tran.debit_items.each { |di| credit(di.account, di.amount) }
|
25
25
|
tran.credit_items.each { |ci| debit(ci.account, ci.amount) }
|
26
|
-
reference(tran)
|
26
|
+
reference(ref || tran)
|
27
27
|
kind(tran.kind)
|
28
28
|
description("Rollback of #{tran.description}")
|
29
29
|
end
|
data/lib/deb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Nadion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|