ach 0.5.9 → 0.5.10

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: dfba1e73ff9e717595c8a89963037d6ff9050154
4
- data.tar.gz: a7a1135e8f322c06fb0c23f452190b287fd17af2
3
+ metadata.gz: e56e1b5b6a2688a30cdc85718f127c53892b3780
4
+ data.tar.gz: ad2e971e990c22a353f61d980681dda1e58f1293
5
5
  SHA512:
6
- metadata.gz: 8158075a55fd57e1dc2ac5fcfe38e9b750f7f62e530a8d20800f1080a32e89446f2d0535ce11f45fe99ed0b0d0aa8828f00ccd05875756662d08c3aa24163fd1
7
- data.tar.gz: d911f6afddedcf1401cf8416e46c496ef54c1b367f7c3e5346be5f60bb60a27dc9ceddf29dbf06ec75647994269a8cde06aa918f1406d7fc07a49af7f264a497
6
+ metadata.gz: efff82a733ff2d8c75b48b96cb0f89b78f38362ba2a995ee039da208ebe49f5484edcc92ed7dc44ad61534dcafd9497f17ed9c20d4d0aab9282306252afac363
7
+ data.tar.gz: fbfa670c2c885973a3cdbf86318003ff37ed5b17fa0a51c38a2f210b10eef827ff347835dd2e53ea3c7a76379f7fbc778374bc520847ab301a95f43c6cf6cb1b
@@ -22,7 +22,8 @@ module ACH
22
22
  end
23
23
  end
24
24
 
25
- def to_s
25
+ # @param eol [String] Line ending, default to CRLF
26
+ def to_s eol = "\r\n"
26
27
  records = []
27
28
  records << @header
28
29
 
@@ -51,7 +52,7 @@ module ACH
51
52
  @control.entry_hash += batch.control.entry_hash
52
53
  end
53
54
 
54
- records.collect { |r| r.to_ach }.join("\r\n") + "\r\n"
55
+ records.collect { |r| r.to_ach }.join(eol) + eol
55
56
  end
56
57
 
57
58
  def report
@@ -1,3 +1,3 @@
1
1
  module ACH
2
- VERSION = '0.5.9'.freeze
2
+ VERSION = '0.5.10'.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.9
4
+ version: 0.5.10
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-09-08 00:00:00.000000000 Z
12
+ date: 2017-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: appraisal