ach 0.4.3 → 0.4.4

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4f637e1475effbf55c14300de4a414c55cd96e16
4
+ data.tar.gz: 6fc781f5e0de8c20771b2143f9b874d846fb556a
5
+ SHA512:
6
+ metadata.gz: e81c997fb30d1c0d316c891c75533c3d199b0b1684817b2c729e7b43ff57fd30ac245f9775f64c7b4d2f4b59195cc547a672b2ba76da7882663a7747cc4af350
7
+ data.tar.gz: 24c6ca567010d7a84a8b398bd04acc48c4e27e9ce15bd79cb175f0bca8bb88c30de3f6d8129e118d65a73079d8ac4841a26fc8db774db63be2fdac2c13ad810a
@@ -7,6 +7,12 @@ describe "Parse" do
7
7
  @data = File.read('examples/ach/fixtures/return_noc.txt')
8
8
  end
9
9
 
10
+ it 'should produce the same number of entries as the original ACH file' do
11
+ entries = ACH::ACHFile.new(@data).batches.reduce([]) { |entries, batch| entries << batch.entries }
12
+
13
+ entries.flatten.size.should == 3
14
+ end
15
+
10
16
  it "should parse return/notification of change file" do
11
17
  ach = ACH::ACHFile.new(@data)
12
18
  fh = ach.header
data/lib/ach/ach_file.rb CHANGED
@@ -130,7 +130,6 @@ module ACH
130
130
  end
131
131
  end
132
132
 
133
- batch.entries << ed unless ed.nil?
134
133
  self.batches << batch unless batch.nil?
135
134
  batch.entries.each{ |entry| entry.trace_number = (trace_number += 1) }
136
135
  to_s
data/lib/ach/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ACH
2
- VERSION = '0.4.3'.freeze
2
+ VERSION = '0.4.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
5
- prerelease:
4
+ version: 0.4.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jared Morgan
@@ -10,19 +9,22 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-01-19 00:00:00.000000000 Z
12
+ date: 2013-03-30 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: micronaut
17
- requirement: &72084880 !ruby/object:Gem::Requirement
18
- none: false
16
+ requirement: !ruby/object:Gem::Requirement
19
17
  requirements:
20
18
  - - ! '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :development
24
22
  prerelease: false
25
- version_requirements: *72084880
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ! '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
26
28
  description: ach is a Ruby helper for building and parsing ACH files. In particular,
27
29
  it helps with field order and alignment, and adds padding lines to end of file.
28
30
  email: jmorgan@morgancreative.net
@@ -61,27 +63,26 @@ files:
61
63
  - examples/ach/field_identifiers_example.rb
62
64
  homepage: https://github.com/jm81/ach
63
65
  licenses: []
66
+ metadata: {}
64
67
  post_install_message:
65
68
  rdoc_options: []
66
69
  require_paths:
67
70
  - lib
68
71
  required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
72
  requirements:
71
73
  - - ! '>='
72
74
  - !ruby/object:Gem::Version
73
75
  version: '0'
74
76
  required_rubygems_version: !ruby/object:Gem::Requirement
75
- none: false
76
77
  requirements:
77
78
  - - ! '>='
78
79
  - !ruby/object:Gem::Version
79
80
  version: '0'
80
81
  requirements: []
81
82
  rubyforge_project:
82
- rubygems_version: 1.8.10
83
+ rubygems_version: 2.0.0
83
84
  signing_key:
84
- specification_version: 3
85
+ specification_version: 4
85
86
  summary: Helper for building ACH files
86
87
  test_files:
87
88
  - examples/example_helper.rb