abank 0.7.6 → 0.7.7
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/Gemfile.lock +26 -25
- data/lib/abank/folha.rb +4 -0
- data/lib/abank/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02671cca84b2fa81441d78528b1f37171e84d8ef638c879b6c7197a60e790342
|
4
|
+
data.tar.gz: 6357d1a656b960c53f26b244ad8b2f2bc87dd3280bc7f884d7cdf55e2d0ae7ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 291f648d40372313bc4c94e8a42a5966d03e3d1b277096647a8b81fb94696acc39867f39cbd7d093540c1142f9941b51cfc63770e445684cb0162f2cbfaec866
|
7
|
+
data.tar.gz: 2891fd0edb904aadf2eabb2f5877d35aa86d890a6fef05c017da6fdf156cd870d05cfe94a83daa33737e9ad527fe9dbe5cc7d90cf34c766cac002b6721ca9dfa
|
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.7)
|
5
5
|
csv
|
6
6
|
google-cloud-bigquery
|
7
7
|
roo
|
@@ -14,11 +14,11 @@ GEM
|
|
14
14
|
public_suffix (>= 2.0.2, < 7.0)
|
15
15
|
ast (2.4.3)
|
16
16
|
backport (1.2.0)
|
17
|
-
base64 (0.
|
18
|
-
benchmark (0.4.
|
19
|
-
bigdecimal (3.
|
17
|
+
base64 (0.3.0)
|
18
|
+
benchmark (0.4.1)
|
19
|
+
bigdecimal (3.2.2)
|
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,20 +43,20 @@ 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.13.
|
53
|
+
faraday (2.13.4)
|
54
54
|
faraday-net_http (>= 2.0, < 3.5)
|
55
55
|
json
|
56
56
|
logger
|
57
|
-
faraday-net_http (3.4.
|
57
|
+
faraday-net_http (3.4.1)
|
58
58
|
net-http (>= 0.5.0)
|
59
|
-
google-apis-bigquery_v2 (0.
|
59
|
+
google-apis-bigquery_v2 (0.92.0)
|
60
60
|
google-apis-core (>= 0.15.0, < 2.a)
|
61
61
|
google-apis-core (0.18.0)
|
62
62
|
addressable (~> 2.5, >= 2.5.1)
|
@@ -77,7 +77,7 @@ GEM
|
|
77
77
|
google-cloud-core (1.8.0)
|
78
78
|
google-cloud-env (>= 1.0, < 3.a)
|
79
79
|
google-cloud-errors (~> 1.0)
|
80
|
-
google-cloud-env (2.3.
|
80
|
+
google-cloud-env (2.3.1)
|
81
81
|
base64 (~> 0.2)
|
82
82
|
faraday (>= 1.0, < 3.a)
|
83
83
|
google-cloud-errors (1.5.0)
|
@@ -93,8 +93,8 @@ GEM
|
|
93
93
|
httpclient (2.9.0)
|
94
94
|
mutex_m
|
95
95
|
jaro_winkler (1.6.1)
|
96
|
-
json (2.
|
97
|
-
jwt (2.10.
|
96
|
+
json (2.13.2)
|
97
|
+
jwt (2.10.2)
|
98
98
|
base64
|
99
99
|
kramdown (2.5.1)
|
100
100
|
rexml (>= 3.3.9)
|
@@ -105,20 +105,20 @@ 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.
|
108
|
+
multi_json (1.17.0)
|
109
109
|
mutex_m (0.3.0)
|
110
110
|
net-http (0.6.0)
|
111
111
|
uri
|
112
|
-
nokogiri (1.18.
|
112
|
+
nokogiri (1.18.9)
|
113
113
|
mini_portile2 (~> 2.8.2)
|
114
114
|
racc (~> 1.4)
|
115
|
-
nokogiri (1.18.
|
115
|
+
nokogiri (1.18.9-x86_64-linux-gnu)
|
116
116
|
racc (~> 1.4)
|
117
117
|
observer (0.1.2)
|
118
118
|
os (1.1.4)
|
119
|
-
ostruct (0.6.
|
119
|
+
ostruct (0.6.3)
|
120
120
|
parallel (1.27.0)
|
121
|
-
parser (3.3.
|
121
|
+
parser (3.3.9.0)
|
122
122
|
ast (~> 2.4.1)
|
123
123
|
racc
|
124
124
|
prism (1.4.0)
|
@@ -134,7 +134,7 @@ GEM
|
|
134
134
|
parser (~> 3.3.0)
|
135
135
|
rainbow (>= 2.0, < 4.0)
|
136
136
|
rexml (~> 3.1)
|
137
|
-
regexp_parser (2.
|
137
|
+
regexp_parser (2.11.1)
|
138
138
|
representable (3.2.0)
|
139
139
|
declarative (< 0.1.0)
|
140
140
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
@@ -146,7 +146,7 @@ GEM
|
|
146
146
|
roo (2.10.1)
|
147
147
|
nokogiri (~> 1)
|
148
148
|
rubyzip (>= 1.3.0, < 3.0.0)
|
149
|
-
rubocop (1.
|
149
|
+
rubocop (1.79.2)
|
150
150
|
json (~> 2.3)
|
151
151
|
language_server-protocol (~> 3.17.0.2)
|
152
152
|
lint_roller (~> 1.1.0)
|
@@ -154,10 +154,10 @@ GEM
|
|
154
154
|
parser (>= 3.3.0.2)
|
155
155
|
rainbow (>= 2.2.2, < 4.0)
|
156
156
|
regexp_parser (>= 2.9.3, < 3.0)
|
157
|
-
rubocop-ast (>= 1.
|
157
|
+
rubocop-ast (>= 1.46.0, < 2.0)
|
158
158
|
ruby-progressbar (~> 1.7)
|
159
159
|
unicode-display_width (>= 2.4.0, < 4.0)
|
160
|
-
rubocop-ast (1.
|
160
|
+
rubocop-ast (1.46.0)
|
161
161
|
parser (>= 3.3.7.2)
|
162
162
|
prism (~> 1.4)
|
163
163
|
rubocop-rake (0.7.1)
|
@@ -170,7 +170,7 @@ GEM
|
|
170
170
|
faraday (>= 0.17.5, < 3.a)
|
171
171
|
jwt (>= 1.5, < 3.0)
|
172
172
|
multi_json (~> 1.10)
|
173
|
-
solargraph (0.
|
173
|
+
solargraph (0.56.0)
|
174
174
|
backport (~> 1.2)
|
175
175
|
benchmark (~> 0.4)
|
176
176
|
bundler (~> 2.0)
|
@@ -182,6 +182,7 @@ GEM
|
|
182
182
|
observer (~> 0.1)
|
183
183
|
ostruct (~> 0.6)
|
184
184
|
parser (~> 3.0)
|
185
|
+
prism (~> 1.4)
|
185
186
|
rbs (~> 3.3)
|
186
187
|
reverse_markdown (~> 3.0)
|
187
188
|
rubocop (~> 1.38)
|
@@ -189,8 +190,8 @@ GEM
|
|
189
190
|
tilt (~> 2.0)
|
190
191
|
yard (~> 0.9, >= 0.9.24)
|
191
192
|
yard-solargraph (~> 0.1)
|
192
|
-
thor (1.
|
193
|
-
tilt (2.6.
|
193
|
+
thor (1.4.0)
|
194
|
+
tilt (2.6.1)
|
194
195
|
trailblazer-option (0.1.2)
|
195
196
|
uber (0.1.0)
|
196
197
|
unicode-display_width (3.1.4)
|
@@ -218,4 +219,4 @@ DEPENDENCIES
|
|
218
219
|
yard
|
219
220
|
|
220
221
|
BUNDLED WITH
|
221
|
-
2.6.
|
222
|
+
2.6.7
|
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