cnab 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cnab.rb +8 -0
- data/lib/cnab/definition.rb +1 -1
- data/lib/cnab/definitions/header_arquivo.rb +1 -1
- data/lib/cnab/definitions/header_lote.rb +1 -1
- data/lib/cnab/definitions/segmento_t.rb +1 -1
- data/lib/cnab/definitions/segmento_u.rb +1 -1
- data/lib/cnab/definitions/trailer_arquivo.rb +1 -1
- data/lib/cnab/definitions/trailer_lote.rb +1 -1
- data/lib/cnab/version.rb +1 -1
- metadata +4 -4
data/lib/cnab.rb
CHANGED
data/lib/cnab/definition.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Cnab
|
2
2
|
class Definition
|
3
3
|
def initialize(version)
|
4
|
-
raise Exceptions::VersionNotImplemented unless File.directory?("
|
4
|
+
raise Exceptions::VersionNotImplemented unless File.directory?("#{Cnab.lib_path}/cnab/versions/#{version}")
|
5
5
|
|
6
6
|
@header_arquivo = Definitions::HeaderArquivo.new(version)
|
7
7
|
@header_lote = Definitions::HeaderLote.new(version)
|
@@ -2,7 +2,7 @@ module Cnab
|
|
2
2
|
module Definitions
|
3
3
|
class HeaderArquivo
|
4
4
|
def initialize(version)
|
5
|
-
@definition = YAML.load_file("
|
5
|
+
@definition = YAML.load_file("#{Cnab.lib_path}/cnab/versions/#{version}/header_arquivo.yml")
|
6
6
|
end
|
7
7
|
|
8
8
|
def method_missing(method)
|
@@ -2,7 +2,7 @@ module Cnab
|
|
2
2
|
module Definitions
|
3
3
|
class HeaderLote
|
4
4
|
def initialize(version)
|
5
|
-
@definition = YAML.load_file("
|
5
|
+
@definition = YAML.load_file("#{Cnab.lib_path}/cnab/versions/#{version}/header_lote.yml")
|
6
6
|
end
|
7
7
|
|
8
8
|
def method_missing(method)
|
@@ -2,7 +2,7 @@ module Cnab
|
|
2
2
|
module Definitions
|
3
3
|
class SegmentoT
|
4
4
|
def initialize(version)
|
5
|
-
@definition = YAML.load_file("
|
5
|
+
@definition = YAML.load_file("#{Cnab.lib_path}/cnab/versions/#{version}/segmento_t.yml")
|
6
6
|
end
|
7
7
|
|
8
8
|
def method_missing(method)
|
@@ -2,7 +2,7 @@ module Cnab
|
|
2
2
|
module Definitions
|
3
3
|
class SegmentoU
|
4
4
|
def initialize(version)
|
5
|
-
@definition = YAML.load_file("
|
5
|
+
@definition = YAML.load_file("#{Cnab.lib_path}/cnab/versions/#{version}/segmento_u.yml")
|
6
6
|
end
|
7
7
|
|
8
8
|
def method_missing(method)
|
@@ -2,7 +2,7 @@ module Cnab
|
|
2
2
|
module Definitions
|
3
3
|
class TrailerArquivo
|
4
4
|
def initialize(version)
|
5
|
-
@definition = YAML.load_file("
|
5
|
+
@definition = YAML.load_file("#{Cnab.lib_path}/cnab/versions/#{version}/trailer_arquivo.yml")
|
6
6
|
end
|
7
7
|
|
8
8
|
def method_missing(method)
|
@@ -2,7 +2,7 @@ module Cnab
|
|
2
2
|
module Definitions
|
3
3
|
class TrailerLote
|
4
4
|
def initialize(version)
|
5
|
-
@definition = YAML.load_file("
|
5
|
+
@definition = YAML.load_file("#{Cnab.lib_path}/cnab/versions/#{version}/trailer_lote.yml")
|
6
6
|
end
|
7
7
|
|
8
8
|
def method_missing(method)
|
data/lib/cnab/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cnab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-04-
|
13
|
+
date: 2013-04-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -148,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
segments:
|
150
150
|
- 0
|
151
|
-
hash: -
|
151
|
+
hash: -1160814427250196255
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
none: false
|
154
154
|
requirements:
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
version: '0'
|
158
158
|
segments:
|
159
159
|
- 0
|
160
|
-
hash: -
|
160
|
+
hash: -1160814427250196255
|
161
161
|
requirements: []
|
162
162
|
rubyforge_project:
|
163
163
|
rubygems_version: 1.8.25
|