cns 0.5.1 → 0.5.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1bbdeb4f8ed224cedf745bd468a3715b9a6e3c1a36c3e5b1455007fa0a27869d
4
- data.tar.gz: fbdbb4951a8e991f0e2441fd0c9ff4a2e12b5c4d33021cfeb55a69d01cb27596
3
+ metadata.gz: 945dd20b4245b51bd2736cda926b78affcd6a94b6a55c9c6c99ff45b7920ed44
4
+ data.tar.gz: 0c343e3e1b3eab5e6c66e9e3680c7054440e694ba47fc0db80017424efc1f922
5
5
  SHA512:
6
- metadata.gz: 2f001b52232d28c45fb4b148fece442bfc8cd4b8f2584861bbb47eac3cfc08da57aaf4bb455748e1224934f9f0f7a51acdb2688a9092cbe03138298a05fa75ff
7
- data.tar.gz: bddaf7047232a466aa8cb93593a1af4132cb6917a8703cc6f7c93d37a2d45cdf4fb37b2e162c302e11537c3e73df145feda172dc24d3f71e5a93049af81f6a75
6
+ metadata.gz: 4dceeebc96a83d0074fa4b03c1c7b8e304d7d41c5ef1c78b138a238b25378c3958becf624946d79614c9cb3e0edf8e82e9f90429d0e41624bad75999852d8d30
7
+ data.tar.gz: 87b3a62bc1d9cb387ffa79a9eb6f0fc8a9832ed593596980a5743cd18fd2714d648e1caa788cded51cc3e0ab5c73fb0611f630e7a7db486d6b5f339976d34809
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cns (0.5.1)
4
+ cns (0.5.2)
5
5
  curb
6
6
  faraday
7
7
  google-cloud-bigquery
data/lib/cns/bigquery.rb CHANGED
@@ -53,24 +53,33 @@ module Cns
53
53
  apies.mostra_resumo
54
54
  end
55
55
 
56
+ # @return [String] texto inicial transacoes
57
+ def trs_ini
58
+ Time.now.strftime("TRANSACOES %Y-%m-%d %H:%M:%S ")
59
+ end
60
+
56
61
  # insere (caso existam) dados novos kraken/bitcoinde/paymium/therock/etherscan/greymass/beaconchain no bigquery
57
62
  def processa_tudo
58
- puts(Time.now.strftime("TRANSACOES %Y-%m-%d %H:%M ") + processa_us + ", " + processa_de + ", " + processa_eth + ", " + processa_eos)
63
+ str = processa_us + ", " + processa_de + ", " + processa_eth + ", " + processa_eos
64
+ puts(trs_ini + str)
59
65
  end
60
66
 
61
67
  # insere (caso existam) dados novos kraken/etherscan no bigquery
62
68
  def processa_wkrk
63
- puts(Time.now.strftime("TRANSACOES %Y-%m-%d %H:%M ") + processa_us + ", " + processa_eth)
69
+ str = processa_us + ", " + processa_eth
70
+ puts(trs_ini + str)
64
71
  end
65
72
 
66
73
  # insere (caso existam) dados novos etherscan no bigquery
67
74
  def processa_weth
68
- puts(Time.now.strftime("TRANSACOES %Y-%m-%d %H:%M ") + processa_eth)
75
+ str = processa_eth
76
+ puts(trs_ini + str)
69
77
  end
70
78
 
71
79
  # insere (caso existam) dados novos etherscan no bigquery (output to file)
72
80
  def processa_ceth
73
- File.open(FO, mode: 'a') { |out| out.puts(Time.now.strftime("TRANSACOES %Y-%m-%d %H:%M ") + processa_ethc) }
81
+ str = processa_ethc
82
+ File.open(FO, mode: 'a') { |out| out.puts(trs_ini + str) }
74
83
  end
75
84
 
76
85
  private
data/lib/cns/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cns
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hernâni Rodrigues Vaz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-02 00:00:00.000000000 Z
11
+ date: 2024-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler