double_double 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: