formatos-febraban 0.2.16 → 0.2.17
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 +4 -4
- data/lib/formatos/febraban/version.rb +1 -1
- data/lib/formatos/febraban150/febraban_150.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 218f26ed33811c96527d46345472741cead4c519
|
4
|
+
data.tar.gz: 303cc6ec5295132518aa77c2eddf0906050552f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7b3b1969d620ca6a012248ce85b40fbc63a74bb247c1a7325c8f9dda69e51b237478a04f780d2eb44c6e3bfca70b52501c194734b162656b742b60b7b3849f8
|
7
|
+
data.tar.gz: 4e12b3f5748fb1363e11b97eee90ffd58147c88a2f09253e5732acdf07d35428ca234ef640446269ee23433c3314076bf79bbb21048d329af167d417cdcadade
|
@@ -326,6 +326,8 @@ class Febraban150
|
|
326
326
|
raise "Seção B inválida para Empresas" if self.get_section("B").length > 0
|
327
327
|
raise "Seção F inválida para Empresas" if self.get_section("F").length > 0
|
328
328
|
raise "Seção H inválida para Empresas" if self.get_section("H").length > 0
|
329
|
+
|
330
|
+
true
|
329
331
|
end
|
330
332
|
|
331
333
|
def is_banco_valid?
|
@@ -337,6 +339,8 @@ class Febraban150
|
|
337
339
|
raise "Seção C inválida para Bancos" if self.get_section("C").length > 0
|
338
340
|
raise "Seção D inválida para Bancos" if self.get_section("D").length > 0
|
339
341
|
raise "Seção E inválida para Bancos" if self.get_section("E").length > 0
|
342
|
+
|
343
|
+
true
|
340
344
|
end
|
341
345
|
|
342
346
|
public
|
@@ -387,7 +391,7 @@ class Febraban150
|
|
387
391
|
end
|
388
392
|
|
389
393
|
def is_sections_valid?
|
390
|
-
self.sections.select {|b| b.is_valid? == false }.length
|
394
|
+
self.sections.select {|b| b.is_valid? == false }.length == 0
|
391
395
|
end
|
392
396
|
|
393
397
|
def to_s
|