tulios-brcobranca-rails2 2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +29 -0
- data/Manifest.txt +54 -0
- data/PostInstall.txt +4 -0
- data/README.rdoc +75 -0
- data/Rakefile +41 -0
- data/brcobranca.gemspec +43 -0
- data/lib/brcobranca/arquivos/logos/banespa.jpg +0 -0
- data/lib/brcobranca/arquivos/logos/bb.jpg +0 -0
- data/lib/brcobranca/arquivos/logos/bradesco.jpg +0 -0
- data/lib/brcobranca/arquivos/logos/caixa.jpg +0 -0
- data/lib/brcobranca/arquivos/logos/hsbc.jpg +0 -0
- data/lib/brcobranca/arquivos/logos/itau.jpg +0 -0
- data/lib/brcobranca/arquivos/logos/real.jpg +0 -0
- data/lib/brcobranca/arquivos/logos/unibanco.jpg +0 -0
- data/lib/brcobranca/arquivos/templates/modelo_generico.eps +0 -0
- data/lib/brcobranca/boleto/banco_banespa.rb +85 -0
- data/lib/brcobranca/boleto/banco_bradesco.rb +44 -0
- data/lib/brcobranca/boleto/banco_brasil.rb +88 -0
- data/lib/brcobranca/boleto/banco_caixa.rb +118 -0
- data/lib/brcobranca/boleto/banco_hsbc.rb +77 -0
- data/lib/brcobranca/boleto/banco_itau.rb +115 -0
- data/lib/brcobranca/boleto/banco_real.rb +70 -0
- data/lib/brcobranca/boleto/banco_unibanco.rb +79 -0
- data/lib/brcobranca/boleto/base.rb +154 -0
- data/lib/brcobranca/boleto/template/rghost.rb +153 -0
- data/lib/brcobranca/boleto/template/util.rb +34 -0
- data/lib/brcobranca/config.rb +9 -0
- data/lib/brcobranca/core_ext.rb +287 -0
- data/lib/brcobranca/currency.rb +67 -0
- data/lib/brcobranca/retorno/base.rb +43 -0
- data/lib/brcobranca/retorno/retorno_cbr643.rb +44 -0
- data/lib/brcobranca.rb +43 -0
- data/spec/arquivos/CBR64310.RET +28 -0
- data/spec/brcobranca/banco_banespa_spec.rb +195 -0
- data/spec/brcobranca/banco_bradesco_spec.rb +179 -0
- data/spec/brcobranca/banco_brasil_spec.rb +353 -0
- data/spec/brcobranca/banco_caixa_spec.rb +192 -0
- data/spec/brcobranca/banco_hsbc_spec.rb +216 -0
- data/spec/brcobranca/banco_itau_spec.rb +202 -0
- data/spec/brcobranca/banco_real_spec.rb +145 -0
- data/spec/brcobranca/banco_unibanco_spec.rb +193 -0
- data/spec/brcobranca/base_spec.rb +240 -0
- data/spec/brcobranca/core_ext_spec.rb +275 -0
- data/spec/brcobranca/currency_spec.rb +81 -0
- data/spec/brcobranca/retorno_cbr643_spec.rb +69 -0
- data/spec/brcobranca/rghost_spec.rb +36 -0
- data/spec/brcobranca/template/rghost_spec.rb +65 -0
- data/spec/brcobranca/template/util_spec.rb +42 -0
- data/spec/brcobranca_spec.rb +8 -0
- data/spec/rcov.opts +2 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +10 -0
- data/tasks/rcov.rake +12 -0
- data/tasks/rspec.rake +21 -0
- metadata +202 -0
@@ -0,0 +1,81 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper.rb'
|
2
|
+
|
3
|
+
module Brcobranca #:nodoc:[all]
|
4
|
+
module Currency #:nodoc:[all]
|
5
|
+
describe String do
|
6
|
+
it "should return true if value seted is a valid ruby number" do
|
7
|
+
"1234".numeric?.should be_true
|
8
|
+
"123.4".numeric?.should be_true
|
9
|
+
"123,4".numeric?.should be_true
|
10
|
+
"1234.03".numeric?.should be_true
|
11
|
+
"1234,03".numeric?.should be_true
|
12
|
+
"-1234".numeric?.should be_true
|
13
|
+
"-123.4".numeric?.should be_true
|
14
|
+
"-123,4".numeric?.should be_true
|
15
|
+
"-1234.03".numeric?.should be_true
|
16
|
+
"-1234,03".numeric?.should be_true
|
17
|
+
"+1234".numeric?.should be_true
|
18
|
+
"+123.4".numeric?.should be_true
|
19
|
+
"+123,4".numeric?.should be_true
|
20
|
+
"+1234.03".numeric?.should be_true
|
21
|
+
"+1234,03".numeric?.should be_true
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should return false if value seted is NOT a valid ruby number" do
|
25
|
+
"1234,".numeric?.should be_false
|
26
|
+
"1234.".numeric?.should be_false
|
27
|
+
"1,234.03".numeric?.should be_false
|
28
|
+
"1.234.03".numeric?.should be_false
|
29
|
+
"1,234,03".numeric?.should be_false
|
30
|
+
"12.340,03".numeric?.should be_false
|
31
|
+
"1234ab".numeric?.should be_false
|
32
|
+
"ab1213".numeric?.should be_false
|
33
|
+
"ffab".numeric?.should be_false
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should convert value seted to valid ruby number" do
|
37
|
+
"1234".to_number.should eql(1234.0)
|
38
|
+
"123.4".to_number.should eql(123.4)
|
39
|
+
"123,4".to_number.should eql(123.4)
|
40
|
+
"1234.03".to_number.should eql(1234.03)
|
41
|
+
"1234,03".to_number.should eql(1234.03)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should return nil when is not possible convert value seted" do
|
45
|
+
"1234,".to_number.should be_nil
|
46
|
+
"1234.".to_number.should be_nil
|
47
|
+
"1,234.03".to_number.should be_nil
|
48
|
+
"1.234.03".to_number.should be_nil
|
49
|
+
"1,234,03".to_number.should be_nil
|
50
|
+
"12.340,03".to_number.should be_nil
|
51
|
+
"1234ab".to_number.should be_nil
|
52
|
+
"ab1213".to_number.should be_nil
|
53
|
+
"ffab".to_number.should be_nil
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe Number do
|
58
|
+
it "should convert value seted to currency value" do
|
59
|
+
1234.to_currency.should eql("1.234,00")
|
60
|
+
123.4.to_currency.should eql("123,40")
|
61
|
+
1234.03.to_currency.should eql("1.234,03")
|
62
|
+
1234.03.to_currency(options = {:unit => "R$ "}).should eql("R$ 1.234,03")
|
63
|
+
1234.03.to_currency(options = {:unit => "R$ ",:separator => "."}).should eql("R$ 1.234.03")
|
64
|
+
1234.03.to_currency(options = {:unit => "R$ ",:separator => ".",:delimiter => ','}).should eql("R$ 1,234.03")
|
65
|
+
1234.03.to_currency(options = {:unit => "R$ ", :precision => 3}).should eql("R$ 1.234,030")
|
66
|
+
end
|
67
|
+
|
68
|
+
it "should convert value seted using delimiter and separator" do
|
69
|
+
1234.with_delimiter.should eql("1,234")
|
70
|
+
123.4.with_delimiter.should eql("123.4")
|
71
|
+
1234.03.with_delimiter.should eql("1,234.03")
|
72
|
+
end
|
73
|
+
|
74
|
+
it "should convert value seted using precision " do
|
75
|
+
1234.with_precision.should eql("1234.000")
|
76
|
+
123.4.with_precision.should eql("123.400")
|
77
|
+
1234.03.with_precision.should eql("1234.030")
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
2
|
+
|
3
|
+
describe RetornoCbr643 do
|
4
|
+
|
5
|
+
before(:each) do
|
6
|
+
@arquivo = File.join(File.dirname(__FILE__),'..','arquivos','CBR64310.RET')
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should read correctly values from file" do
|
10
|
+
pagamentos = RetornoCbr643.load_lines(@arquivo)
|
11
|
+
pagamentos.first.sequencial.should eql("000001")
|
12
|
+
pagamentos.first.agencia_com_dv.should eql("CA")
|
13
|
+
pagamentos.first.cedente_com_dv.should eql("33251")
|
14
|
+
pagamentos.first.convenio.should eql("0002893")
|
15
|
+
pagamentos.first.data_liquidacao.should eql("")
|
16
|
+
pagamentos.first.data_credito.should eql("")
|
17
|
+
pagamentos.first.valor_recebido.should eql("")
|
18
|
+
pagamentos.first.nosso_numero.should eql("OSSENSE DO AL001B")
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should read correctly values from file with option :except in number" do
|
22
|
+
pagamentos = RetornoCbr643.load_lines(@arquivo,{:except => [1]})
|
23
|
+
pagamentos.first.sequencial.should eql("000002")
|
24
|
+
pagamentos.first.agencia_com_dv.should eql("33251")
|
25
|
+
pagamentos.first.cedente_com_dv.should eql("000289353")
|
26
|
+
pagamentos.first.convenio.should eql("1622420")
|
27
|
+
pagamentos.first.data_liquidacao.should eql("200109")
|
28
|
+
pagamentos.first.data_credito.should eql("220109")
|
29
|
+
pagamentos.first.valor_recebido.should eql("0000000009064")
|
30
|
+
pagamentos.first.nosso_numero.should eql("16224200000000003")
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should read correctly values from file with option :except in number and :length" do
|
34
|
+
pagamentos = RetornoCbr643.load_lines(@arquivo,{:except => [1], :length => 400})
|
35
|
+
pagamentos.first.sequencial.should eql("000002")
|
36
|
+
pagamentos.first.agencia_com_dv.should eql("33251")
|
37
|
+
pagamentos.first.cedente_com_dv.should eql("000289353")
|
38
|
+
pagamentos.first.convenio.should eql("1622420")
|
39
|
+
pagamentos.first.data_liquidacao.should eql("200109")
|
40
|
+
pagamentos.first.data_credito.should eql("220109")
|
41
|
+
pagamentos.first.valor_recebido.should eql("0000000009064")
|
42
|
+
pagamentos.first.nosso_numero.should eql("16224200000000003")
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should read correctly values from file with option :except in regex" do
|
46
|
+
pagamentos = RetornoCbr643.load_lines(@arquivo,{:except => /^[^7]/})
|
47
|
+
pagamentos.first.sequencial.should eql("000002")
|
48
|
+
pagamentos.first.agencia_com_dv.should eql("33251")
|
49
|
+
pagamentos.first.cedente_com_dv.should eql("000289353")
|
50
|
+
pagamentos.first.convenio.should eql("1622420")
|
51
|
+
pagamentos.first.data_liquidacao.should eql("200109")
|
52
|
+
pagamentos.first.data_credito.should eql("220109")
|
53
|
+
pagamentos.first.valor_recebido.should eql("0000000009064")
|
54
|
+
pagamentos.first.nosso_numero.should eql("16224200000000003")
|
55
|
+
end
|
56
|
+
|
57
|
+
it "should read correctly values from file with option :except in regex and :length" do
|
58
|
+
pagamentos = RetornoCbr643.load_lines(@arquivo,{:except => /^[^7]/, :length => 400})
|
59
|
+
pagamentos.first.sequencial.should eql("000002")
|
60
|
+
pagamentos.first.agencia_com_dv.should eql("33251")
|
61
|
+
pagamentos.first.cedente_com_dv.should eql("000289353")
|
62
|
+
pagamentos.first.convenio.should eql("1622420")
|
63
|
+
pagamentos.first.data_liquidacao.should eql("200109")
|
64
|
+
pagamentos.first.data_credito.should eql("220109")
|
65
|
+
pagamentos.first.valor_recebido.should eql("0000000009064")
|
66
|
+
pagamentos.first.nosso_numero.should eql("16224200000000003")
|
67
|
+
end
|
68
|
+
|
69
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../spec_helper.rb'
|
2
|
+
require 'tempfile'
|
3
|
+
|
4
|
+
describe "RGhost test" do
|
5
|
+
|
6
|
+
before(:each) do
|
7
|
+
@valid_attributes = {
|
8
|
+
:especie_documento => "DM",
|
9
|
+
:moeda => "9",
|
10
|
+
:banco => "001",
|
11
|
+
:data_documento => Date.today,
|
12
|
+
:dias_vencimento => 1,
|
13
|
+
:aceite => "S",
|
14
|
+
:quantidade => 1,
|
15
|
+
:valor => 0.0,
|
16
|
+
:local_pagamento => "QUALQUER BANCO ATÉ O VENCIMENTO",
|
17
|
+
:cedente => "Kivanio Barbosa",
|
18
|
+
:documento_cedente => "12345678912",
|
19
|
+
:sacado => "Claudio Pozzebom",
|
20
|
+
:sacado_documento => "12345678900",
|
21
|
+
:agencia => "4042",
|
22
|
+
:conta_corrente => "61900",
|
23
|
+
:convenio => 12387989,
|
24
|
+
:numero_documento => "777700168"
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should test gs presence" do
|
29
|
+
RGhost::Config.config_platform
|
30
|
+
File.exist?(RGhost::Config::GS[:path]).should be_true
|
31
|
+
File.executable?(RGhost::Config::GS[:path]).should be_true
|
32
|
+
s=`#{RGhost::Config::GS[:path]} -v`
|
33
|
+
s.should =~ /^GPL Ghostscript 8\.[6-9]/
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
module Brcobranca
|
4
|
+
module Boleto
|
5
|
+
module Template
|
6
|
+
describe Rghost do
|
7
|
+
|
8
|
+
before(:each) do
|
9
|
+
@valid_attributes = {
|
10
|
+
:especie_documento => "DM",
|
11
|
+
:moeda => "9",
|
12
|
+
:banco => "001",
|
13
|
+
:data_documento => Date.today,
|
14
|
+
:dias_vencimento => 1,
|
15
|
+
:aceite => "S",
|
16
|
+
:quantidade => 1,
|
17
|
+
:valor => 0.0,
|
18
|
+
:local_pagamento => "QUALQUER BANCO ATÉ O VENCIMENTO",
|
19
|
+
:cedente => "Kivanio Barbosa",
|
20
|
+
:documento_cedente => "12345678912",
|
21
|
+
:sacado => "Claudio Pozzebom",
|
22
|
+
:sacado_documento => "12345678900",
|
23
|
+
:agencia => "4042",
|
24
|
+
:conta_corrente => "61900",
|
25
|
+
:convenio => 12387989,
|
26
|
+
:numero_documento => "777700168"
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
it "should genarate a banck invoice" do
|
31
|
+
@valid_attributes[:valor] = 135.00
|
32
|
+
@valid_attributes[:data_documento] = Date.parse("2008-02-01")
|
33
|
+
@valid_attributes[:dias_vencimento] = 2
|
34
|
+
@valid_attributes[:convenio] = 1238798
|
35
|
+
@valid_attributes[:numero_documento] = "7777700168"
|
36
|
+
boleto_novo = BancoBrasil.new(@valid_attributes)
|
37
|
+
boleto_novo.should be_instance_of(BancoBrasil)
|
38
|
+
boleto_novo.monta_codigo_43_digitos.should eql("0019377100000135000000001238798777770016818")
|
39
|
+
boleto_novo.codigo_barras.should eql("00193377100000135000000001238798777770016818")
|
40
|
+
boleto_novo.codigo_barras.linha_digitavel.should eql("00190.00009 01238.798779 77700.168188 3 37710000013500")
|
41
|
+
boleto_novo.conta_corrente_dv.should eql(0)
|
42
|
+
#
|
43
|
+
# %w| pdf jpg tif png ps |.each do |format|
|
44
|
+
# file_body=boleto_novo.to(format.to_sym)
|
45
|
+
# tmp_file=Tempfile.new("foobar." << format)
|
46
|
+
# tmp_file.puts file_body
|
47
|
+
# tmp_file.close
|
48
|
+
# File.exist?(tmp_file.path).should be_true
|
49
|
+
# File.stat(tmp_file.path).zero?.should be_false
|
50
|
+
# File.delete(tmp_file.path).should eql(1)
|
51
|
+
# File.exist?(tmp_file.path).should be_false
|
52
|
+
# end
|
53
|
+
# file_body=boleto_novo.to
|
54
|
+
# tmp_file=Tempfile.new("foobar.")
|
55
|
+
# tmp_file.puts file_body
|
56
|
+
# tmp_file.close
|
57
|
+
# File.exist?(tmp_file.path).should be_true
|
58
|
+
# File.stat(tmp_file.path).zero?.should be_false
|
59
|
+
# File.delete(tmp_file.path).should eql(1)
|
60
|
+
# File.exist?(tmp_file.path).should be_false
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
|
2
|
+
|
3
|
+
module Brcobranca
|
4
|
+
module Boleto
|
5
|
+
module Template
|
6
|
+
describe Util do
|
7
|
+
it "should get correct file" do
|
8
|
+
boleto_novo = BancoBanespa.new
|
9
|
+
File.exist?(boleto_novo.monta_logo).should be_true
|
10
|
+
File.stat(boleto_novo.monta_logo).zero?.should be_false
|
11
|
+
|
12
|
+
boleto_novo = BancoBradesco.new
|
13
|
+
File.exist?(boleto_novo.monta_logo).should be_true
|
14
|
+
File.stat(boleto_novo.monta_logo).zero?.should be_false
|
15
|
+
|
16
|
+
boleto_novo = BancoBrasil.new
|
17
|
+
File.exist?(boleto_novo.monta_logo).should be_true
|
18
|
+
File.stat(boleto_novo.monta_logo).zero?.should be_false
|
19
|
+
|
20
|
+
boleto_novo = BancoHsbc.new
|
21
|
+
File.exist?(boleto_novo.monta_logo).should be_true
|
22
|
+
File.stat(boleto_novo.monta_logo).zero?.should be_false
|
23
|
+
|
24
|
+
boleto_novo = BancoItau.new
|
25
|
+
File.exist?(boleto_novo.monta_logo).should be_true
|
26
|
+
File.stat(boleto_novo.monta_logo).zero?.should be_false
|
27
|
+
|
28
|
+
boleto_novo = BancoReal.new
|
29
|
+
File.exist?(boleto_novo.monta_logo).should be_true
|
30
|
+
File.stat(boleto_novo.monta_logo).zero?.should be_false
|
31
|
+
|
32
|
+
boleto_novo = BancoUnibanco.new
|
33
|
+
File.exist?(boleto_novo.monta_logo).should be_true
|
34
|
+
File.stat(boleto_novo.monta_logo).zero?.should be_false
|
35
|
+
|
36
|
+
boleto_novo = Brcobranca::Boleto::Base.new
|
37
|
+
boleto_novo.monta_logo.should be_false
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
data/spec/rcov.opts
ADDED
data/spec/spec.opts
ADDED
data/spec/spec_helper.rb
ADDED
data/tasks/rcov.rake
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'spec/rake/spectask'
|
2
|
+
|
3
|
+
namespace :rcov do
|
4
|
+
Spec::Rake::SpecTask.new(:rspec) do |t|
|
5
|
+
t.spec_opts = ['--options', "spec/spec.opts"]
|
6
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
7
|
+
t.rcov = true
|
8
|
+
t.rcov_opts = lambda do
|
9
|
+
IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/tasks/rspec.rake
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
begin
|
2
|
+
require 'spec'
|
3
|
+
rescue LoadError
|
4
|
+
require 'rubygems' unless ENV['NO_RUBYGEMS']
|
5
|
+
require 'spec'
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'spec/rake/spectask'
|
9
|
+
rescue LoadError
|
10
|
+
puts <<-EOS
|
11
|
+
To use rspec for testing you must install rspec gem:
|
12
|
+
gem install rspec
|
13
|
+
EOS
|
14
|
+
exit(0)
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "Run the specs under spec/models"
|
18
|
+
Spec::Rake::SpecTask.new do |t|
|
19
|
+
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tulios-brcobranca-rails2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 31
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 8
|
10
|
+
version: 2.0.8
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Kivanio Barbosa
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-12-22 00:00:00 -02:00
|
19
|
+
default_executable:
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: rghost
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 49
|
30
|
+
segments:
|
31
|
+
- 0
|
32
|
+
- 8
|
33
|
+
- 7
|
34
|
+
version: 0.8.7
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: rghost_barcode
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 27
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 8
|
49
|
+
version: "0.8"
|
50
|
+
type: :runtime
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
53
|
+
name: parseline
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 17
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 0
|
64
|
+
- 3
|
65
|
+
version: 1.0.3
|
66
|
+
type: :runtime
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: rubyforge
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 7
|
77
|
+
segments:
|
78
|
+
- 2
|
79
|
+
- 0
|
80
|
+
- 4
|
81
|
+
version: 2.0.4
|
82
|
+
type: :development
|
83
|
+
version_requirements: *id004
|
84
|
+
- !ruby/object:Gem::Dependency
|
85
|
+
name: hoe
|
86
|
+
prerelease: false
|
87
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
88
|
+
none: false
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
hash: 19
|
93
|
+
segments:
|
94
|
+
- 2
|
95
|
+
- 6
|
96
|
+
- 2
|
97
|
+
version: 2.6.2
|
98
|
+
type: :development
|
99
|
+
version_requirements: *id005
|
100
|
+
description: "Gem que permite trabalhar com bloquetos de cobran\xC3\xA7a para bancos brasileiros.\n Fork de https://github.com/kivanio/brcobranca, tag 2.0.6 adicionando o banco Caixa.\n "
|
101
|
+
email:
|
102
|
+
- kivanio@gmail.com
|
103
|
+
executables: []
|
104
|
+
|
105
|
+
extensions: []
|
106
|
+
|
107
|
+
extra_rdoc_files:
|
108
|
+
- History.txt
|
109
|
+
- Manifest.txt
|
110
|
+
- PostInstall.txt
|
111
|
+
files:
|
112
|
+
- History.txt
|
113
|
+
- Manifest.txt
|
114
|
+
- PostInstall.txt
|
115
|
+
- README.rdoc
|
116
|
+
- Rakefile
|
117
|
+
- brcobranca.gemspec
|
118
|
+
- lib/brcobranca.rb
|
119
|
+
- lib/brcobranca/arquivos/logos/banespa.jpg
|
120
|
+
- lib/brcobranca/arquivos/logos/bb.jpg
|
121
|
+
- lib/brcobranca/arquivos/logos/bradesco.jpg
|
122
|
+
- lib/brcobranca/arquivos/logos/hsbc.jpg
|
123
|
+
- lib/brcobranca/arquivos/logos/itau.jpg
|
124
|
+
- lib/brcobranca/arquivos/logos/real.jpg
|
125
|
+
- lib/brcobranca/arquivos/logos/unibanco.jpg
|
126
|
+
- lib/brcobranca/arquivos/logos/caixa.jpg
|
127
|
+
- lib/brcobranca/arquivos/templates/modelo_generico.eps
|
128
|
+
- lib/brcobranca/boleto/banco_banespa.rb
|
129
|
+
- lib/brcobranca/boleto/banco_bradesco.rb
|
130
|
+
- lib/brcobranca/boleto/banco_brasil.rb
|
131
|
+
- lib/brcobranca/boleto/banco_hsbc.rb
|
132
|
+
- lib/brcobranca/boleto/banco_itau.rb
|
133
|
+
- lib/brcobranca/boleto/banco_real.rb
|
134
|
+
- lib/brcobranca/boleto/banco_unibanco.rb
|
135
|
+
- lib/brcobranca/boleto/banco_caixa.rb
|
136
|
+
- lib/brcobranca/boleto/base.rb
|
137
|
+
- lib/brcobranca/boleto/template/rghost.rb
|
138
|
+
- lib/brcobranca/boleto/template/util.rb
|
139
|
+
- lib/brcobranca/config.rb
|
140
|
+
- lib/brcobranca/core_ext.rb
|
141
|
+
- lib/brcobranca/currency.rb
|
142
|
+
- lib/brcobranca/retorno/base.rb
|
143
|
+
- lib/brcobranca/retorno/retorno_cbr643.rb
|
144
|
+
- spec/arquivos/CBR64310.RET
|
145
|
+
- spec/brcobranca/banco_banespa_spec.rb
|
146
|
+
- spec/brcobranca/banco_bradesco_spec.rb
|
147
|
+
- spec/brcobranca/banco_brasil_spec.rb
|
148
|
+
- spec/brcobranca/banco_hsbc_spec.rb
|
149
|
+
- spec/brcobranca/banco_itau_spec.rb
|
150
|
+
- spec/brcobranca/banco_real_spec.rb
|
151
|
+
- spec/brcobranca/banco_unibanco_spec.rb
|
152
|
+
- spec/brcobranca/banco_caixa_spec.rb
|
153
|
+
- spec/brcobranca/base_spec.rb
|
154
|
+
- spec/brcobranca/core_ext_spec.rb
|
155
|
+
- spec/brcobranca/currency_spec.rb
|
156
|
+
- spec/brcobranca/retorno_cbr643_spec.rb
|
157
|
+
- spec/brcobranca/rghost_spec.rb
|
158
|
+
- spec/brcobranca/template/rghost_spec.rb
|
159
|
+
- spec/brcobranca/template/util_spec.rb
|
160
|
+
- spec/brcobranca_spec.rb
|
161
|
+
- spec/rcov.opts
|
162
|
+
- spec/spec.opts
|
163
|
+
- spec/spec_helper.rb
|
164
|
+
- tasks/rcov.rake
|
165
|
+
- tasks/rspec.rake
|
166
|
+
has_rdoc: true
|
167
|
+
homepage: http://brcobranca.rubyforge.org
|
168
|
+
licenses: []
|
169
|
+
|
170
|
+
post_install_message: PostInstall.txt
|
171
|
+
rdoc_options:
|
172
|
+
- --main
|
173
|
+
- README.rdoc
|
174
|
+
require_paths:
|
175
|
+
- lib
|
176
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
hash: 3
|
182
|
+
segments:
|
183
|
+
- 0
|
184
|
+
version: "0"
|
185
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
|
+
none: false
|
187
|
+
requirements:
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
hash: 3
|
191
|
+
segments:
|
192
|
+
- 0
|
193
|
+
version: "0"
|
194
|
+
requirements: []
|
195
|
+
|
196
|
+
rubyforge_project: tulios-brcobranca-rails2
|
197
|
+
rubygems_version: 1.3.7
|
198
|
+
signing_key:
|
199
|
+
specification_version: 3
|
200
|
+
summary: "Gem que permite trabalhar com bloquetos de cobran\xC3\xA7a para bancos brasileiros. Fork de https://github.com/kivanio/brcobranca, tag 2.0.6 adicionando o banco Caixa."
|
201
|
+
test_files: []
|
202
|
+
|