deb 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/deb/builder.rb +4 -2
  2. data/lib/deb/version.rb +1 -1
  3. metadata +3 -3
data/lib/deb/builder.rb CHANGED
@@ -4,12 +4,14 @@ module Deb
4
4
 
5
5
  def debit(account, amount)
6
6
  @debits ||= {}
7
- @debits[account] = amount
7
+ @debits[account] ||= 0
8
+ @debits[account] += amount
8
9
  end
9
10
 
10
11
  def credit(account, amount)
11
12
  @credits ||= {}
12
- @credits[account] = amount
13
+ @credits[account] ||= 0
14
+ @credits[account] += amount
13
15
  end
14
16
 
15
17
  def description(desc)
data/lib/deb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Deb
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
142
142
  version: '0'
143
143
  segments:
144
144
  - 0
145
- hash: -1408888727359197018
145
+ hash: -2892039350782519680
146
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  none: false
148
148
  requirements:
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: '0'
152
152
  segments:
153
153
  - 0
154
- hash: -1408888727359197018
154
+ hash: -2892039350782519680
155
155
  requirements: []
156
156
  rubyforge_project:
157
157
  rubygems_version: 1.8.25