formatos-febraban 0.3.10 → 0.3.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4a15a2ce26f997b84c8bb12ff7163bb634af3c6
|
4
|
+
data.tar.gz: aa9d77ba2cfce221d85a52e5875c738205d97541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24c14c725be62600bfc2c39c531d1eb170f13e7dc5da2717b9d8008dfbdd17d27d5a9d2a8286a75d75ed5920af13de574abf66f6f1aaaaa94df8e3cedf8c2fda
|
7
|
+
data.tar.gz: 72745f6abd49616ab2c40ca6cea47c5f6ff9df33db4e640603c6cd57ca381976ecb3f18bf4eaeaa9a18ef7ffe10af01a4f9efd4ac559a593897912e7756f3e12
|
@@ -482,8 +482,7 @@ class Febraban150
|
|
482
482
|
#--------------------------------------------------------------------------------------
|
483
483
|
# Carregamento de Arquivo
|
484
484
|
protected
|
485
|
-
|
486
|
-
file = File.new(location, "r")
|
485
|
+
file = File.new(location, 'r')
|
487
486
|
|
488
487
|
while (line = file.gets)
|
489
488
|
process_string line
|
@@ -495,7 +494,7 @@ class Febraban150
|
|
495
494
|
def process_string file
|
496
495
|
section_type = file[0,1]
|
497
496
|
|
498
|
-
section = get_new_section
|
497
|
+
section = get_new_section(section_type)
|
499
498
|
section.process_section(file)
|
500
499
|
|
501
500
|
self.add_section section
|
@@ -10,13 +10,15 @@ class Febraban150A < FormatSection
|
|
10
10
|
def initialize(master, versao = Febraban150::VERSAO)
|
11
11
|
super(master, true, true, false)
|
12
12
|
|
13
|
-
@
|
13
|
+
@versao = versao
|
14
14
|
|
15
15
|
case @versao
|
16
16
|
when '04'
|
17
17
|
self.monta_versao_04
|
18
18
|
when '05'
|
19
19
|
self.monta_versao_05
|
20
|
+
else
|
21
|
+
raise "Seção A: Versão não suportada: #{@versao}"
|
20
22
|
end
|
21
23
|
end
|
22
24
|
|
@@ -6,13 +6,15 @@ class Febraban150Z < FormatSection
|
|
6
6
|
def initialize(master, versao = Febraban150::VERSAO)
|
7
7
|
super(master, true, true, false)
|
8
8
|
|
9
|
-
@
|
9
|
+
@versao = versao
|
10
10
|
|
11
11
|
case versao
|
12
12
|
when '04'
|
13
13
|
self.monta_versao_04
|
14
14
|
when '05'
|
15
15
|
self.monta_versao_05
|
16
|
+
else
|
17
|
+
raise "Seção Z: Versão não suportada: #{@versao}"
|
16
18
|
end
|
17
19
|
end
|
18
20
|
|