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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTNlNWFmOWU4YjJlZDc2YjZkMmJjYmNkOWYwZDU5ODUwZmNiZjI1ZQ==
4
+ MzkyYjMwNTE1ZDY2YzdkYmJhMjNhZTA1YmMzOGJlNjUzNTMyYzI1Ng==
5
5
  data.tar.gz: !binary |-
6
- OWJiNGVmZDdmY2I0NjQxODE2MzYwZDZmYWExZmY4MTk4OGZmZWEzNg==
6
+ ZWZlMTc3NmEwMjA2NDI5YzQ1YTQ4MTcyN2Q3MDQ0ODZiZmM0ODViZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjFlY2U3YzdhNzJmYzY0MjdhMDhiOGVkZGQyY2Y4YjUxMTQxN2Y4NThlZDU4
10
- N2JiMTljMTE3OGRiMzRmZTgzMTZjMzQ2OGM2NzkzM2VmMjg0MjA3MTdiZDYw
11
- YzNkMzgxZmQ1MmZmMGU1NDFiNzBmNDZkYjc0YjU3NTI4NDc2Y2M=
9
+ M2FiN2ZlZWQwZDE1YjBjNDhmYjgyYzlkOTVhZjUwYmY4NmJjODQ3OTA4ZTY0
10
+ MDgxYzU3YzkxMzY1NTI4YTI5ZWZjY2E2NDU5MTFhNGZjZmUzNWM2N2QwNDJm
11
+ YzgyYThiMDE4YmUzNmE4ZDQ1OThkOTMzN2Y3ZjRhNTE4YWY4NzE=
12
12
  data.tar.gz: !binary |-
13
- NzUzNWQ4MGNhYzU4YzA1MzVjZWZkNjU1NGVjZTYwNzM1OTM4NTVjZWE1NmQw
14
- NGE3NmJiMGViNzA1ZmY1NTQxM2Q2MTAyM2NiY2YyMTMxNDhiYmI1YjY5ZWZh
15
- MDE1MmQyNGI5NDk3MjAyYTdlZDA1MDk0NjBjNjVlZTA4MGQ3ZTc=
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
@@ -1,3 +1,3 @@
1
1
  module Deb
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
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.9
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-01 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails