abank 0.4.5 → 0.4.6

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
  SHA256:
3
- metadata.gz: 919ed7397ffc15a6ff4f0f99865da47b8a090f6bf838798f1ca122e667e7f0a2
4
- data.tar.gz: cf1d5cc84cc1bbc765969e183ff4cda28c70ca19de7a9c59c95da56ca3e41830
3
+ metadata.gz: de10c87be621e35389199acb7ffd3d3cab6108d47e6a4567843498676aa9d406
4
+ data.tar.gz: 6522e24a538f2614e149c528e51c136bc4d382e048fedf613ee6c1a2c2a5e5a5
5
5
  SHA512:
6
- metadata.gz: d7bb91bb62ec11e4051d06e4b007dec13a3f6cd904da1cdc7c1096c07e6b95676f756f8cac5faee0dc732f4f2abf50f7fe72760efcf82e909743f64f4dcf182e
7
- data.tar.gz: 9750de979e437b44cf210b9245bb22b91b39d289049a84f373ab714632d4ab6c15e55688a17c8d8b8c61df8a4add2663cc8b9b3b606986a888152ebc5ada9d2d
6
+ metadata.gz: ec9e2dccd22fa3a0a1516354069564f6794a678a0cb918d96e28e27bade10435cfe19b42a8795d54a58bf12be331c67427673e7d5bdfe2ed1211997e62e69f87
7
+ data.tar.gz: 0ff5bbc6dad1e8bebed8fd0b29dd3a3b3e4ac4f3387e1ae93c8553b7cd6ab01c403bc032dfb3f4c5f741237375a5f20b83af75b9fcba3656dca4e7ea34bb6b66
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abank (0.4.5)
4
+ abank (0.4.6)
5
5
  google-cloud-bigquery
6
6
  roo
7
7
  thor
data/lib/abank/big.rb CHANGED
@@ -151,9 +151,9 @@ module Abank
151
151
 
152
152
  # @return [String] sql para obter ultima renda do contrato arrendamento
153
153
  def sql_last_re
154
- 'select ct,DATE_SUB(DATE_SUB(dl,INTERVAL dias DAY),INTERVAL IF(cnt=0,0,cnt-1) MONTH) dc,ano,cnt,dl'\
155
- ',CAST(REGEXP_EXTRACT(ct,r"\d+") as numeric)/100 vr '\
156
- "from #{BD}.re where ct='#{opcao[:c]}' order by ano desc,cnt desc limit 1"
154
+ 'select r1.ct,r0.dl dc,r1.ano,r1.cnt,r1.dl,CAST(REGEXP_EXTRACT(r1.ct,r"\d+") as numeric)/100 vr '\
155
+ "from #{BD}.re r1 join hernanilr.ab.re r0 on (r0.ct=r1.ct and r0.cnt=0 and r1.cnt>0)"\
156
+ " where r1.ct='#{opcao[:c]}' order by ano desc,cnt desc limit 1"
157
157
  end
158
158
 
159
159
  # @return [String] sql para obter movimentos novos (depois da ultima renda do contrato arrendamento)
data/lib/abank/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Abank
4
- VERSION = '0.4.5'
4
+ VERSION = '0.4.6'
5
5
  end
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.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hernâni Rodrigues Vaz