double_double 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,6 +54,7 @@ module DoubleDouble
54
54
  #
55
55
  # @return [DoubleDouble::Transaction] A Transaction with built credit and debit objects ready for saving
56
56
  def self.build args
57
+ args.merge!({credits: args[:debits], debits: args[:credits]}) if args[:reversed]
57
58
  t = Transaction.new()
58
59
  t.description = args[:description]
59
60
  t.transaction_type = args[:transaction_type] if args.has_key? :transaction_type
@@ -1,3 +1,3 @@
1
1
  module DoubleDouble
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: double_double
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: