formatos-febraban 0.3.10 → 0.3.11

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
  SHA1:
3
- metadata.gz: d46b242370c1c7229cc98c62581e4bc36729b5f2
4
- data.tar.gz: 21e64b390cdab99f902be1145162e789f65c5c22
3
+ metadata.gz: e4a15a2ce26f997b84c8bb12ff7163bb634af3c6
4
+ data.tar.gz: aa9d77ba2cfce221d85a52e5875c738205d97541
5
5
  SHA512:
6
- metadata.gz: 5b4f1263ac58f538c37889f1f6225072ea9f377833d67c54217b49e99adefa008317dc41143f78253e4e16492de233f32a24170fc4ee83893494d324cc87694b
7
- data.tar.gz: 0e23bcdab79cf50b34a4a0bbb5416b3bef39119ff341f597d793f0e4cd5ea519be9caee15b06585276f791262017e18ae6af2babcd3dbc2fa7e671e20ca14e03
6
+ metadata.gz: 24c14c725be62600bfc2c39c531d1eb170f13e7dc5da2717b9d8008dfbdd17d27d5a9d2a8286a75d75ed5920af13de574abf66f6f1aaaaa94df8e3cedf8c2fda
7
+ data.tar.gz: 72745f6abd49616ab2c40ca6cea47c5f6ff9df33db4e640603c6cd57ca381976ecb3f18bf4eaeaa9a18ef7ffe10af01a4f9efd4ac559a593897912e7756f3e12
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = '0.3.10'
3
+ VERSION = '0.3.11'
4
4
  end
5
5
  end
@@ -482,8 +482,7 @@ class Febraban150
482
482
  #--------------------------------------------------------------------------------------
483
483
  # Carregamento de Arquivo
484
484
  protected
485
- def process_file location
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 section_type
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
- @varsao = versao
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
 
@@ -8,11 +8,13 @@ class Febraban150E < FormatSection
8
8
 
9
9
  @versao = versao
10
10
 
11
- case versao
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 E: Versão não suportada: #{@versao}"
16
18
  end
17
19
  end
18
20
 
@@ -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
- @varsao = versao
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formatos-febraban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Ricardo Almeida