abank 0.7.6 → 0.7.8
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 +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile.lock +65 -59
- data/abank.gemspec +1 -1
- data/lib/abank/folha.rb +4 -0
- data/lib/abank/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d038eac147643024bc3140393d817ddc712e1be48106021621c74b6df42825ca
|
|
4
|
+
data.tar.gz: e7f0648e06c5a72f3b3011acb96defc45cd3f922d79e706fcc826d477349556e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d70066049f34a6490ae908ea69a64d963143a1a1246793aede0b5232b32c4702c89fdbc068e9fcc0da5f2dc4a82acc367956b77bfa98dfb14b881400ed866922
|
|
7
|
+
data.tar.gz: 603b8557c212e2278c56592dfd3f43f2a9cbb264be90bb7536a9b5630140605e588111bf161ac0bda4c8ffe69c2fa6bbf1787c7eade1ff53688072aa661af57e
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
abank (0.7.
|
|
4
|
+
abank (0.7.8)
|
|
5
5
|
csv
|
|
6
6
|
google-cloud-bigquery
|
|
7
7
|
roo
|
|
@@ -10,15 +10,15 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
addressable (2.8.
|
|
14
|
-
public_suffix (>= 2.0.2, <
|
|
13
|
+
addressable (2.8.8)
|
|
14
|
+
public_suffix (>= 2.0.2, < 8.0)
|
|
15
15
|
ast (2.4.3)
|
|
16
16
|
backport (1.2.0)
|
|
17
|
-
base64 (0.
|
|
18
|
-
benchmark (0.
|
|
19
|
-
bigdecimal (3.1
|
|
17
|
+
base64 (0.3.0)
|
|
18
|
+
benchmark (0.5.0)
|
|
19
|
+
bigdecimal (3.3.1)
|
|
20
20
|
concurrent-ruby (1.3.5)
|
|
21
|
-
csv (3.3.
|
|
21
|
+
csv (3.3.5)
|
|
22
22
|
declarative (0.0.20)
|
|
23
23
|
diff-lcs (1.6.2)
|
|
24
24
|
dry-configurable (1.3.0)
|
|
@@ -43,58 +43,58 @@ GEM
|
|
|
43
43
|
dry-logic (~> 1.5)
|
|
44
44
|
dry-types (~> 1.8)
|
|
45
45
|
zeitwerk (~> 2.6)
|
|
46
|
-
dry-types (1.8.
|
|
46
|
+
dry-types (1.8.3)
|
|
47
47
|
bigdecimal (~> 3.0)
|
|
48
48
|
concurrent-ruby (~> 1.0)
|
|
49
49
|
dry-core (~> 1.0)
|
|
50
50
|
dry-inflector (~> 1.0)
|
|
51
51
|
dry-logic (~> 1.4)
|
|
52
52
|
zeitwerk (~> 2.6)
|
|
53
|
-
faraday (2.
|
|
53
|
+
faraday (2.14.0)
|
|
54
54
|
faraday-net_http (>= 2.0, < 3.5)
|
|
55
55
|
json
|
|
56
56
|
logger
|
|
57
|
-
faraday-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
faraday-follow_redirects (0.4.0)
|
|
58
|
+
faraday (>= 1, < 3)
|
|
59
|
+
faraday-net_http (3.4.2)
|
|
60
|
+
net-http (~> 0.5)
|
|
61
|
+
google-apis-bigquery_v2 (0.96.0)
|
|
60
62
|
google-apis-core (>= 0.15.0, < 2.a)
|
|
61
|
-
google-apis-core (0.
|
|
62
|
-
addressable (~> 2.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
google-apis-core (1.0.2)
|
|
64
|
+
addressable (~> 2.8, >= 2.8.7)
|
|
65
|
+
faraday (~> 2.13)
|
|
66
|
+
faraday-follow_redirects (~> 0.3)
|
|
67
|
+
googleauth (~> 1.14)
|
|
68
|
+
mini_mime (~> 1.1)
|
|
67
69
|
representable (~> 3.0)
|
|
68
|
-
retriable (
|
|
69
|
-
google-cloud-bigquery (1.
|
|
70
|
+
retriable (~> 3.1)
|
|
71
|
+
google-cloud-bigquery (1.61.1)
|
|
70
72
|
bigdecimal (~> 3.0)
|
|
71
73
|
concurrent-ruby (~> 1.0)
|
|
72
74
|
google-apis-bigquery_v2 (~> 0.71)
|
|
73
|
-
google-apis-core (
|
|
75
|
+
google-apis-core (>= 0.18, < 2)
|
|
74
76
|
google-cloud-core (~> 1.6)
|
|
75
77
|
googleauth (~> 1.9)
|
|
76
78
|
mini_mime (~> 1.0)
|
|
77
79
|
google-cloud-core (1.8.0)
|
|
78
80
|
google-cloud-env (>= 1.0, < 3.a)
|
|
79
81
|
google-cloud-errors (~> 1.0)
|
|
80
|
-
google-cloud-env (2.3.
|
|
82
|
+
google-cloud-env (2.3.1)
|
|
81
83
|
base64 (~> 0.2)
|
|
82
84
|
faraday (>= 1.0, < 3.a)
|
|
83
85
|
google-cloud-errors (1.5.0)
|
|
84
86
|
google-logging-utils (0.2.0)
|
|
85
|
-
googleauth (1.
|
|
87
|
+
googleauth (1.16.0)
|
|
86
88
|
faraday (>= 1.0, < 3.a)
|
|
87
89
|
google-cloud-env (~> 2.2)
|
|
88
90
|
google-logging-utils (~> 0.1)
|
|
89
|
-
jwt (>= 1.4, <
|
|
91
|
+
jwt (>= 1.4, < 4.0)
|
|
90
92
|
multi_json (~> 1.11)
|
|
91
93
|
os (>= 0.9, < 2.0)
|
|
92
94
|
signet (>= 0.16, < 2.a)
|
|
93
|
-
httpclient (2.9.0)
|
|
94
|
-
mutex_m
|
|
95
95
|
jaro_winkler (1.6.1)
|
|
96
|
-
json (2.
|
|
97
|
-
jwt (
|
|
96
|
+
json (2.16.0)
|
|
97
|
+
jwt (3.1.2)
|
|
98
98
|
base64
|
|
99
99
|
kramdown (2.5.1)
|
|
100
100
|
rexml (>= 3.3.9)
|
|
@@ -105,28 +105,27 @@ GEM
|
|
|
105
105
|
logger (1.7.0)
|
|
106
106
|
mini_mime (1.1.5)
|
|
107
107
|
mini_portile2 (2.8.9)
|
|
108
|
-
multi_json (1.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
nokogiri (1.18.8)
|
|
108
|
+
multi_json (1.18.0)
|
|
109
|
+
net-http (0.8.0)
|
|
110
|
+
uri (>= 0.11.1)
|
|
111
|
+
nokogiri (1.18.10)
|
|
113
112
|
mini_portile2 (~> 2.8.2)
|
|
114
113
|
racc (~> 1.4)
|
|
115
|
-
nokogiri (1.18.
|
|
114
|
+
nokogiri (1.18.10-x86_64-linux-gnu)
|
|
116
115
|
racc (~> 1.4)
|
|
117
116
|
observer (0.1.2)
|
|
118
117
|
os (1.1.4)
|
|
119
|
-
ostruct (0.6.
|
|
118
|
+
ostruct (0.6.3)
|
|
120
119
|
parallel (1.27.0)
|
|
121
|
-
parser (3.3.
|
|
120
|
+
parser (3.3.10.0)
|
|
122
121
|
ast (~> 2.4.1)
|
|
123
122
|
racc
|
|
124
|
-
prism (1.
|
|
125
|
-
public_suffix (
|
|
123
|
+
prism (1.6.0)
|
|
124
|
+
public_suffix (7.0.0)
|
|
126
125
|
racc (1.8.1)
|
|
127
126
|
rainbow (3.1.1)
|
|
128
127
|
rake (12.3.3)
|
|
129
|
-
rbs (3.9.
|
|
128
|
+
rbs (3.9.5)
|
|
130
129
|
logger
|
|
131
130
|
reek (6.5.0)
|
|
132
131
|
dry-schema (~> 1.13)
|
|
@@ -134,7 +133,7 @@ GEM
|
|
|
134
133
|
parser (~> 3.3.0)
|
|
135
134
|
rainbow (>= 2.0, < 4.0)
|
|
136
135
|
rexml (~> 3.1)
|
|
137
|
-
regexp_parser (2.
|
|
136
|
+
regexp_parser (2.11.3)
|
|
138
137
|
representable (3.2.0)
|
|
139
138
|
declarative (< 0.1.0)
|
|
140
139
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
|
@@ -142,11 +141,14 @@ GEM
|
|
|
142
141
|
retriable (3.1.2)
|
|
143
142
|
reverse_markdown (3.0.0)
|
|
144
143
|
nokogiri
|
|
145
|
-
rexml (3.4.
|
|
146
|
-
roo (
|
|
144
|
+
rexml (3.4.4)
|
|
145
|
+
roo (3.0.0)
|
|
146
|
+
base64 (~> 0.2)
|
|
147
|
+
csv (~> 3)
|
|
148
|
+
logger (~> 1)
|
|
147
149
|
nokogiri (~> 1)
|
|
148
|
-
rubyzip (>=
|
|
149
|
-
rubocop (1.
|
|
150
|
+
rubyzip (>= 3.0.0, < 4.0.0)
|
|
151
|
+
rubocop (1.81.7)
|
|
150
152
|
json (~> 2.3)
|
|
151
153
|
language_server-protocol (~> 3.17.0.2)
|
|
152
154
|
lint_roller (~> 1.1.0)
|
|
@@ -154,23 +156,23 @@ GEM
|
|
|
154
156
|
parser (>= 3.3.0.2)
|
|
155
157
|
rainbow (>= 2.2.2, < 4.0)
|
|
156
158
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
157
|
-
rubocop-ast (>= 1.
|
|
159
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
158
160
|
ruby-progressbar (~> 1.7)
|
|
159
161
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
160
|
-
rubocop-ast (1.
|
|
162
|
+
rubocop-ast (1.48.0)
|
|
161
163
|
parser (>= 3.3.7.2)
|
|
162
164
|
prism (~> 1.4)
|
|
163
165
|
rubocop-rake (0.7.1)
|
|
164
166
|
lint_roller (~> 1.1)
|
|
165
167
|
rubocop (>= 1.72.1)
|
|
166
168
|
ruby-progressbar (1.13.0)
|
|
167
|
-
rubyzip (2.
|
|
168
|
-
signet (0.
|
|
169
|
+
rubyzip (3.2.2)
|
|
170
|
+
signet (0.21.0)
|
|
169
171
|
addressable (~> 2.8)
|
|
170
172
|
faraday (>= 0.17.5, < 3.a)
|
|
171
|
-
jwt (>= 1.5, <
|
|
173
|
+
jwt (>= 1.5, < 4.0)
|
|
172
174
|
multi_json (~> 1.10)
|
|
173
|
-
solargraph (0.
|
|
175
|
+
solargraph (0.57.0)
|
|
174
176
|
backport (~> 1.2)
|
|
175
177
|
benchmark (~> 0.4)
|
|
176
178
|
bundler (~> 2.0)
|
|
@@ -182,22 +184,26 @@ GEM
|
|
|
182
184
|
observer (~> 0.1)
|
|
183
185
|
ostruct (~> 0.6)
|
|
184
186
|
parser (~> 3.0)
|
|
185
|
-
|
|
187
|
+
prism (~> 1.4)
|
|
188
|
+
rbs (>= 3.6.1, <= 4.0.0.dev.4)
|
|
186
189
|
reverse_markdown (~> 3.0)
|
|
187
|
-
rubocop (~> 1.
|
|
190
|
+
rubocop (~> 1.76)
|
|
188
191
|
thor (~> 1.0)
|
|
189
192
|
tilt (~> 2.0)
|
|
190
193
|
yard (~> 0.9, >= 0.9.24)
|
|
194
|
+
yard-activesupport-concern (~> 0.0)
|
|
191
195
|
yard-solargraph (~> 0.1)
|
|
192
|
-
thor (1.
|
|
193
|
-
tilt (2.6.
|
|
196
|
+
thor (1.4.0)
|
|
197
|
+
tilt (2.6.1)
|
|
194
198
|
trailblazer-option (0.1.2)
|
|
195
199
|
uber (0.1.0)
|
|
196
|
-
unicode-display_width (3.
|
|
197
|
-
unicode-emoji (~> 4.
|
|
198
|
-
unicode-emoji (4.0
|
|
199
|
-
uri (1.
|
|
200
|
+
unicode-display_width (3.2.0)
|
|
201
|
+
unicode-emoji (~> 4.1)
|
|
202
|
+
unicode-emoji (4.1.0)
|
|
203
|
+
uri (1.1.1)
|
|
200
204
|
yard (0.9.37)
|
|
205
|
+
yard-activesupport-concern (0.0.1)
|
|
206
|
+
yard (>= 0.8)
|
|
201
207
|
yard-solargraph (0.1.0)
|
|
202
208
|
yard (~> 0.9)
|
|
203
209
|
zeitwerk (2.7.3)
|
|
@@ -218,4 +224,4 @@ DEPENDENCIES
|
|
|
218
224
|
yard
|
|
219
225
|
|
|
220
226
|
BUNDLED WITH
|
|
221
|
-
2.6.
|
|
227
|
+
2.6.7
|
data/abank.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.summary = 'Arquiva movimentos conta-corrente, conta-cartao do activobank no bigquery.'
|
|
13
13
|
spec.description = "#{spec.summary} Permite apagar/recriar movimentos/rendas ja no bigquery. " + 'Permite ainda classificar movimentos no bigquery.'
|
|
14
14
|
|
|
15
|
-
spec.required_ruby_version = Gem::Requirement.new('~> 3.
|
|
15
|
+
spec.required_ruby_version = Gem::Requirement.new('~> 3.4')
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
17
17
|
spec.metadata['yard.run'] = 'yard'
|
|
18
18
|
|
data/lib/abank/folha.rb
CHANGED
|
@@ -97,10 +97,14 @@ module Abank
|
|
|
97
97
|
# @param [Array] row folha calculo em processamento
|
|
98
98
|
# @return [Boolean] linha com valores correctos para processar?
|
|
99
99
|
def valid?(row)
|
|
100
|
+
row[0] = Date.new(1899, 12, 30) + row[0].to_i unless row[0].is_a?(Date) # Data Lancamento
|
|
101
|
+
row[1] = Date.new(1899, 12, 30) + row[1].to_i unless row[1].is_a?(Date) # Data Valor
|
|
100
102
|
return false unless row[0].is_a?(Date) && row[1].is_a?(Date)
|
|
101
103
|
|
|
102
104
|
row[2] = row[2].to_s.strip.gsub("'", '').gsub('\\', '') # Descrição
|
|
103
105
|
row[3] = row[3].to_f * sig # Valor
|
|
106
|
+
return false if row[2].empty? || row[3].zero?
|
|
107
|
+
|
|
104
108
|
@rowfc = row
|
|
105
109
|
true
|
|
106
110
|
rescue StandardError => e
|
data/lib/abank/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: abank
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hernâni Rodrigues Vaz
|
|
@@ -204,7 +204,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
204
204
|
requirements:
|
|
205
205
|
- - "~>"
|
|
206
206
|
- !ruby/object:Gem::Version
|
|
207
|
-
version: '3.
|
|
207
|
+
version: '3.4'
|
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
209
|
requirements:
|
|
210
210
|
- - ">="
|