formatos-febraban 0.2.21 → 0.2.23

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: 25bf282dc098733014bb51215dcf2d5bb4b8db8e
4
- data.tar.gz: 48b1658b38d7a281ea933b1b700add9adef46d14
3
+ metadata.gz: e76cea7520b90135426461843be0950414e89653
4
+ data.tar.gz: 73d17c9d4d27464d5e6794270a525f4399b33e89
5
5
  SHA512:
6
- metadata.gz: b9e2885a776fc3ed0ea6dc3d747414ef4d115ad5a43aebe850bae01fc02aca53a20da619ef32ce419b72d38d3e1441d679e7a736ee28bab32575bd412cf47472
7
- data.tar.gz: 31a6e03e73a6310a6c44eb055c619fecd3a578cd9467af6bc03ba11a10ebde74b7f644e094de624088b7c62630302bbdc1392cd8a4e39a0fcc2089f692f040cc
6
+ metadata.gz: 193487da4f27089eebfe5f9cad115bdaabe932a4e47f79f91b5515648559fa10c901d3702e8bf9ee9a798fcfdca1493d3bfc43ed6fb27c08dd32e0df2e10d953
7
+ data.tar.gz: 79085afd4aa2574bf096052a75acfd15fc89784ca4552b3e0fd3c38fe9652784519410073dce8bef6d356b71693b3a44f24bd697a160a524aa0cbf50e80cf8a8
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /.idea
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.9"
23
- spec.add_development_dependency "rake", "~> 10.0"
22
+ spec.add_development_dependency "bundler"
23
+ spec.add_development_dependency "rake"
24
24
  end
@@ -158,6 +158,7 @@ class Cnab4000 < FormatSection
158
158
 
159
159
  def set_data_geracao data
160
160
  begin
161
+ data = Date.strptime(data, "%Y%m%d") if data.is_a?(String)
161
162
  real_data = data.strftime("%Y%m%d")
162
163
 
163
164
  if real_data.length == 8
@@ -1,5 +1,5 @@
1
1
  module Formatos
2
2
  module Febraban
3
- VERSION = "0.2.21"
3
+ VERSION = "0.2.23"
4
4
  end
5
5
  end
@@ -102,6 +102,7 @@ class Febraban150B < FormatSection
102
102
  end
103
103
 
104
104
  def set_data_opcao_exclusao data_opcao_exclusao
105
+ data_opcao_exclusao = Date.strptime(data_opcao_exclusao, "%Y%m%d") if data_opcao_exclusao.is_a?(String)
105
106
  real_data = data_opcao_exclusao.strftime("%Y%m%d")
106
107
 
107
108
  if real_data.length == 8
@@ -137,6 +137,7 @@ class Febraban150E < FormatSection
137
137
  end
138
138
 
139
139
  def set_data_vencimento data_vencimento
140
+ data_vencimento = Date.strptime(data_vencimento, "%Y%m%d") if data_vencimento.is_a?(String)
140
141
  real_data = data_vencimento.strftime("%Y%m%d")
141
142
 
142
143
  if real_data.length == 8
@@ -182,6 +182,7 @@ class Febraban150F < FormatSection
182
182
  end
183
183
 
184
184
  def set_data_vencimento_debito data_vencimento
185
+ data_vencimento = Date.strptime(data_vencimento, "%Y%m%d") if data_vencimento.is_a?(String)
185
186
  real_data = data_vencimento.strftime("%Y%m%d")
186
187
 
187
188
  if real_data.length == 8
@@ -80,6 +80,7 @@ class Febraban150J < FormatSection
80
80
  end
81
81
 
82
82
  def set_data_geracao data
83
+ data = Date.strptime(data, "%Y%m%d") if data.is_a?(String)
83
84
  real_data = data.strftime("%Y%m%d")
84
85
 
85
86
  if real_data.length == 8
@@ -113,6 +114,7 @@ class Febraban150J < FormatSection
113
114
  end
114
115
 
115
116
  def set_data_processamento data
117
+ data = Date.strptime(data, "%Y%m%d") if data.is_a?(String)
116
118
  real_data = data.strftime("%Y%m%d")
117
119
 
118
120
  if real_data.length == 8
@@ -64,6 +64,7 @@ class Febraban150L < FormatSection
64
64
  #-------------------------------------------------------------------
65
65
  # Setters
66
66
  def set_data_faturamento data
67
+ data = Date.strptime(data, "%Y%m%d") if data.is_a?(String)
67
68
  real_data = data.strftime("%Y%m%d")
68
69
 
69
70
  if real_data.length == 8
@@ -75,6 +76,7 @@ class Febraban150L < FormatSection
75
76
  end
76
77
 
77
78
  def set_data_vencimento_fatura data
79
+ data = Date.strptime(data, "%Y%m%d") if data.is_a?(String)
78
80
  real_data = data.strftime("%Y%m%d")
79
81
 
80
82
  if real_data.length == 8
@@ -86,6 +88,7 @@ class Febraban150L < FormatSection
86
88
  end
87
89
 
88
90
  def set_data_remessa_banco data
91
+ data = Date.strptime(data, "%Y%m%d") if data.is_a?(String)
89
92
  real_data = data.strftime("%Y%m%d")
90
93
 
91
94
  if real_data.length == 8
@@ -97,6 +100,7 @@ class Febraban150L < FormatSection
97
100
  end
98
101
 
99
102
  def set_data_remessa_fisica data
103
+ data = Date.strptime(data, "%Y%m%d") if data.is_a?(String)
100
104
  real_data = data.strftime("%Y%m%d")
101
105
 
102
106
  if real_data.length == 8
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.2.21
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - josé Ricardo Almeida
@@ -14,30 +14,30 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.9'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '0'
41
41
  description: Formatos para envido de dados bancários da FEBRABAN
42
42
  email:
43
43
  - jose@trackmob.com.br
@@ -46,14 +46,6 @@ extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
48
  - ".gitignore"
49
- - ".idea/.rakeTasks"
50
- - ".idea/encodings.xml"
51
- - ".idea/formatos-febraban.iml"
52
- - ".idea/misc.xml"
53
- - ".idea/modules.xml"
54
- - ".idea/scopes/scope_settings.xml"
55
- - ".idea/vcs.xml"
56
- - ".idea/workspace.xml"
57
49
  - ".rspec"
58
50
  - ".travis.yml"
59
51
  - CODE_OF_CONDUCT.md
data/.idea/.rakeTasks DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build formatos-febraban-0.2.20.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install formatos-febraban-0.2.20.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.2.20 and build and push formatos-febraban-0.2.20.gem to Rubygems" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
data/.idea/encodings.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
- </project>
@@ -1,18 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="RUBY_MODULE" version="4">
3
- <component name="FacetManager">
4
- <facet type="gem" name="Ruby Gem">
5
- <configuration>
6
- <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
7
- <option name="GEM_APP_TEST_PATH" value="" />
8
- <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
9
- </configuration>
10
- </facet>
11
- </component>
12
- <component name="NewModuleRootManager">
13
- <content url="file://$MODULE_DIR$" />
14
- <orderEntry type="inheritedJdk" />
15
- <orderEntry type="sourceFolder" forTests="false" />
16
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, rbenv: 2.0.0-p643) [gem]" level="application" />
17
- </component>
18
- </module>
data/.idea/misc.xml DELETED
@@ -1,27 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="DaemonCodeAnalyzer">
4
- <disable_hints />
5
- </component>
6
- <component name="DependencyValidationManager">
7
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
8
- </component>
9
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
10
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
11
- <OptionsSetting value="true" id="Add" />
12
- <OptionsSetting value="true" id="Remove" />
13
- <OptionsSetting value="true" id="Checkout" />
14
- <OptionsSetting value="true" id="Update" />
15
- <OptionsSetting value="true" id="Status" />
16
- <OptionsSetting value="true" id="Edit" />
17
- <ConfirmationsSetting value="0" id="Add" />
18
- <ConfirmationsSetting value="0" id="Remove" />
19
- </component>
20
- <component name="ProjectModuleManager">
21
- <modules />
22
- </component>
23
- <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.0.0-p643" project-jdk-type="RUBY_SDK" />
24
- <component name="RunManager">
25
- <list size="0" />
26
- </component>
27
- </project>
data/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/formatos-febraban.iml" filepath="$PROJECT_DIR$/.idea/formatos-febraban.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,5 +0,0 @@
1
- <component name="DependencyValidationManager">
2
- <state>
3
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
- </state>
5
- </component>
data/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="" />
5
- </component>
6
- </project>
data/.idea/workspace.xml DELETED
@@ -1,49 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ChangeListManager">
4
- <option name="TRACKING_ENABLED" value="true" />
5
- <option name="SHOW_DIALOG" value="false" />
6
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
8
- <option name="LAST_RESOLUTION" value="IGNORE" />
9
- </component>
10
- <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
11
- <component name="CreatePatchCommitExecutor">
12
- <option name="PATCH_PATH" value="" />
13
- </component>
14
- <component name="DaemonCodeAnalyzer">
15
- <disable_hints />
16
- </component>
17
- <component name="ProjectLevelVcsManager" settingsEditedManually="false">
18
- <OptionsSetting value="true" id="Add" />
19
- <OptionsSetting value="true" id="Remove" />
20
- <OptionsSetting value="true" id="Checkout" />
21
- <OptionsSetting value="true" id="Update" />
22
- <OptionsSetting value="true" id="Status" />
23
- <OptionsSetting value="true" id="Edit" />
24
- <ConfirmationsSetting value="0" id="Add" />
25
- <ConfirmationsSetting value="0" id="Remove" />
26
- </component>
27
- <component name="RunManager">
28
- <list size="0" />
29
- </component>
30
- <component name="ShelveChangesManager" show_recycled="false" />
31
- <component name="TaskManager">
32
- <task active="true" id="Default" summary="Default task">
33
- <option name="number" value="Default" />
34
- </task>
35
- <servers />
36
- </component>
37
- <component name="VcsContentAnnotationSettings">
38
- <option name="myLimit" value="2678400000" />
39
- </component>
40
- <component name="VcsManagerConfiguration">
41
- <option name="myTodoPanelSettings">
42
- <TodoPanelSettings />
43
- </option>
44
- </component>
45
- <component name="XDebuggerManager">
46
- <breakpoint-manager />
47
- <watches-manager />
48
- </component>
49
- </project>