nacha 0.1.14 → 0.1.16

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 986181f9dfa47368890ac283705b188bfef4733adff641590cc889f491cf5ed2
4
- data.tar.gz: 1aff3dd6aedd49cf8f1e9d2562131b28832452fd0332a71429f49955aa19e858
3
+ metadata.gz: 6a66687bb4245eac899ef5e7df5668eab390a7313622ef95a00369b4e8566e18
4
+ data.tar.gz: 3e6aad6ce4fb40875cc6d712c95e0d140ab7808cbd3874407254b3668213e07c
5
5
  SHA512:
6
- metadata.gz: f743d90e6aba9464d81f04a9d416ac6fa13a947e2a5f42c9727a0ebda1f484b55ebdf335a0c2daf857a4bb353d079a8f853b8f9af73c0b65abd1b2d6d8802bf2
7
- data.tar.gz: 23259ac90baaf2e6f0a31b41a5e66ffe7a952d2b42a99ca81945a90ea065ed1a1bbe2d9658403574353750dc985f57509e505b281d91a89696e81a78b43dc21a
6
+ metadata.gz: e8721ff7bb46a2f981f4e667dbdcf6dd5f78869f7f8fa71ae5029fa54b1eff30804a47ffc384c5736a469bb4da4d33a93ccc8374a8fe6fe441ec79323ada65db
7
+ data.tar.gz: e74d56a05bd2f2b5b6cba9d59df4ebc40654a49dfef873c02b1c27faa2a4609da53131fc2ad9328b291d81f609055466d2f99a6cc51a34458fc3163d9b64804c
data/CHANGELOG.md CHANGED
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.1.16] - 2025-07-22
11
+
12
+ - `Nacha::Record::BatchHeader` would blissfully attempt to add a
13
+ `child_record_type` that referenced `Nacha::Record::000EntryDetail` even though
14
+ no such record type exists. Now `standard_entry_class_code` must be valid to
15
+ create a `child_record_type`
16
+
17
+ ## [0.1.15] - 2025-07-21
18
+
19
+ - Added back `Nacha::Field#to_json_output` that got removed in some of the
20
+ recent AI developemnt
21
+
10
22
  ## [0.1.14] - 2025-07-19
11
23
 
12
24
  - Added markdown and github flavored markdown output
data/lib/nacha/field.rb CHANGED
@@ -123,7 +123,19 @@ class Nacha::Field
123
123
  errors << err_string
124
124
  end
125
125
 
126
- def to_ach
126
+ def to_json_output
127
+ if @json_output
128
+ @json_output.reduce(@data) do |memo, operation|
129
+ # rubocop:disable GitlabSecurity/PublicSend
130
+ memo&.public_send(*operation)
131
+ # rubocop:enable GitlabSecurity/PublicSend
132
+ end
133
+ else
134
+ to_s
135
+ end
136
+ end
137
+
138
+ def to_ach
127
139
  str = to_s
128
140
  fill_char = @fill_character
129
141
  fill_char = ' ' unless str
@@ -16,6 +16,8 @@ module Nacha
16
16
  end
17
17
 
18
18
  def child_record_types
19
+ return self.class.child_record_types unless standard_entry_class_code.valid?
20
+
19
21
  sec = standard_entry_class_code.to_s.capitalize
20
22
  [
21
23
  "Nacha::Record::#{sec}EntryDetail"
data/lib/nacha/version.rb CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Nacha
4
4
  module Version
5
- STRING = '0.1.14'
5
+ STRING = '0.1.16'
6
6
  end
7
7
  VERSION = Version::STRING
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nacha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - David H. Wilkins
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-07-20 00:00:00.000000000 Z
11
+ date: 2025-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal