ach 0.5.8 → 0.5.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cdfbff0d393a2b83b3b5af6665345f3a5940471
4
- data.tar.gz: '092e3566f312d5f195e44df6c2661d819944ee9c'
3
+ metadata.gz: dfba1e73ff9e717595c8a89963037d6ff9050154
4
+ data.tar.gz: a7a1135e8f322c06fb0c23f452190b287fd17af2
5
5
  SHA512:
6
- metadata.gz: 163353019d3e7b6385b1bfe8a002cd7821906ea4ad2dd849e09995a128c0118d49eacc0e708927a29cf6030eca4824142dcef0d96e58b38b20d6cabdaf97f144
7
- data.tar.gz: 44d7a527bc37bcce287b6f1d089c0dec6aadbe684a2f3fc49bb31864ffea8ec95da7b02c72cc244b4847a8af174da550007ea14bd01d55f8893f952822915181
6
+ metadata.gz: 8158075a55fd57e1dc2ac5fcfe38e9b750f7f62e530a8d20800f1080a32e89446f2d0535ce11f45fe99ed0b0d0aa8828f00ccd05875756662d08c3aa24163fd1
7
+ data.tar.gz: d911f6afddedcf1401cf8416e46c496ef54c1b367f7c3e5346be5f60bb60a27dc9ceddf29dbf06ec75647994269a8cde06aa918f1406d7fc07a49af7f264a497
data/lib/ach.rb CHANGED
@@ -20,13 +20,11 @@ module ACH
20
20
  225, # ACH Debits Only
21
21
  280 # ACH Automated Accounting Advices
22
22
  ]
23
-
24
- class InvalidError < RuntimeError
25
- end
26
23
  end
27
24
 
28
25
  require 'time'
29
26
  require 'iconv' if RUBY_VERSION < '1.9'
27
+ require 'ach/errors'
30
28
  require 'ach/field_identifiers'
31
29
  require 'ach/ach_file'
32
30
  require 'ach/batch'
@@ -143,7 +143,7 @@ module ACH
143
143
  when '9'
144
144
  # skip
145
145
  else
146
- raise "Didn't recognize type code #{type} for this line:\n#{line}"
146
+ raise UnrecognizedTypeCode, "Didn't recognize type code #{type} for this line:\n#{line}"
147
147
  end
148
148
  end
149
149
 
@@ -0,0 +1,5 @@
1
+ module ACH
2
+ class Error < RuntimeError; end
3
+ class InvalidError < Error; end
4
+ class UnrecognizedTypeCode < Error; end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module ACH
2
- VERSION = '0.5.8'.freeze
2
+ VERSION = '0.5.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ach
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared Morgan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-06-02 00:00:00.000000000 Z
12
+ date: 2017-09-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appraisal
@@ -100,6 +100,7 @@ files:
100
100
  - lib/ach.rb
101
101
  - lib/ach/ach_file.rb
102
102
  - lib/ach/batch.rb
103
+ - lib/ach/errors.rb
103
104
  - lib/ach/field_identifiers.rb
104
105
  - lib/ach/next_federal_reserve_effective_date.rb
105
106
  - lib/ach/records/addendum.rb