From b42f3eda2ba53b6d10c41156eda9415a8e7a1247 Mon Sep 17 00:00:00 2001 From: liviazimermann Date: Fri, 16 May 2025 15:28:30 -0300 Subject: [PATCH 1/2] Add transaction types --- lib/ofx/parser/ofx102.rb | 2 +- spec/ofx/ofx102_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ofx/parser/ofx102.rb b/lib/ofx/parser/ofx102.rb index 4837a36..eb40283 100644 --- a/lib/ofx/parser/ofx102.rb +++ b/lib/ofx/parser/ofx102.rb @@ -14,7 +14,7 @@ class OFX102 TRANSACTION_TYPES = %w[ ATM CASH CHECK CREDIT DEBIT DEP DIRECTDEBIT DIRECTDEP DIV - FEE INT OTHER PAYMENT POS REPEATPMT SRVCHG XFER + FEE INT OTHER PAYMENT POS REPEATPMT SRVCHG XFER IN OUT ].each_with_object({}) do |tran_type, hash| hash[tran_type] = tran_type.downcase.to_sym end diff --git a/spec/ofx/ofx102_spec.rb b/spec/ofx/ofx102_spec.rb index c636aee..4adc41e 100644 --- a/spec/ofx/ofx102_spec.rb +++ b/spec/ofx/ofx102_spec.rb @@ -39,7 +39,7 @@ it "knows about all transaction types" do valid_types = [ 'CREDIT', 'DEBIT', 'INT', 'DIV', 'FEE', 'SRVCHG', 'DEP', 'ATM', 'POS', 'XFER', - 'CHECK', 'PAYMENT', 'CASH', 'DIRECTDEP', 'DIRECTDEBIT', 'REPEATPMT', 'OTHER' + 'CHECK', 'PAYMENT', 'CASH', 'DIRECTDEP', 'DIRECTDEBIT', 'REPEATPMT', 'OTHER', 'IN', 'OUT' ] expect(valid_types.sort).to eql OFX::Parser::OFX102::TRANSACTION_TYPES.keys.sort From 70bed86e8de9add52b468a4204a17ea7210b2814 Mon Sep 17 00:00:00 2001 From: liviazimermann Date: Fri, 16 May 2025 15:31:06 -0300 Subject: [PATCH 2/2] gemfile --- Gemfile.lock | 2 +- lib/ofx/version.rb | 2 +- spec/ofx/ofx103_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 44376d9..a244f6b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ofx (0.4.1) + ofx (0.5.2) bigdecimal (= 3.1.8) nkf (= 0.2.0) nokogiri (>= 1.14.5) diff --git a/lib/ofx/version.rb b/lib/ofx/version.rb index b3577e6..8dfde40 100644 --- a/lib/ofx/version.rb +++ b/lib/ofx/version.rb @@ -1,3 +1,3 @@ module OFX - VERSION = '0.4.1'.freeze + VERSION = '0.5.2'.freeze end diff --git a/spec/ofx/ofx103_spec.rb b/spec/ofx/ofx103_spec.rb index 754353c..aebb822 100644 --- a/spec/ofx/ofx103_spec.rb +++ b/spec/ofx/ofx103_spec.rb @@ -40,7 +40,7 @@ it "knows about all transaction types" do valid_types = [ 'CREDIT', 'DEBIT', 'INT', 'DIV', 'FEE', 'SRVCHG', 'DEP', 'ATM', 'POS', 'XFER', - 'CHECK', 'PAYMENT', 'CASH', 'DIRECTDEP', 'DIRECTDEBIT', 'REPEATPMT', 'OTHER' + 'CHECK', 'PAYMENT', 'CASH', 'DIRECTDEP', 'DIRECTDEBIT', 'REPEATPMT', 'OTHER', 'IN', 'OUT' ] expect(valid_types.sort).to eql OFX::Parser::OFX103::TRANSACTION_TYPES.keys.sort