cns 0.3.1 → 0.3.2

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: 9763844e7eaa6b17c7efa7cbbd05d051ea0ef68146e88ad03cdac9a548047fa7
4
- data.tar.gz: 726d97291f8a8ebe6ff03856bc1785f3256501e8b8e2aca983e1291ecf266169
3
+ metadata.gz: ba2ef03e5bc93d772b32c6bbf375ae4322778e4ff00ca43fddf5c041924f4597
4
+ data.tar.gz: 63c40eebbcb8ca9425153db0a6113659b1ef7f3b16f00b3faa7153e1af04d79d
5
5
  SHA512:
6
- metadata.gz: 5988e292e7025ae6f4afe71f2ebc301b8ff55f6a468da12de5ff07eca9046b4e7028d351cd05ed40f4acef84c1c854759cc08f6d9b054af1c547e114ada79c47
7
- data.tar.gz: 3fef70b5adc4287a1276fe50e5e2dea05bd0ba79983c9b03963cb100ca040c5c616c7912bc7b9241cf1a7dd729f88a5830f6b45ba6f7744ec56c0a6bcf58f436
6
+ metadata.gz: c32420b68e4ab9e8b4015b2ad2bf55d6b668da22a7ef58e71b57deb6a908961f2050057c3d7bb80b189fc13b365d239282e9aefce7beca59a7534388431cd2dd
7
+ data.tar.gz: bb370c40be2ed5ae0b3da752270ddbe44746e9f584c1a14715e23a76a5aa0b3c5431e9587504c64d074ad49c89c65b78bda6cad8580527842f1d1862e4940836
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cns (0.3.1)
4
+ cns (0.3.2)
5
5
  curb
6
6
  faraday
7
7
  google-cloud-bigquery
@@ -18,15 +18,14 @@ GEM
18
18
  concurrent-ruby (1.1.10)
19
19
  curb (1.0.1)
20
20
  declarative (0.0.20)
21
- diff-lcs (1.5.0)
22
21
  e2mmap (0.1.0)
23
22
  faraday (2.6.0)
24
23
  faraday-net_http (>= 2.0, < 3.1)
25
24
  ruby2_keywords (>= 0.0.4)
26
- faraday-net_http (3.0.1)
27
- google-apis-bigquery_v2 (0.41.0)
25
+ faraday-net_http (3.0.2)
26
+ google-apis-bigquery_v2 (0.42.0)
28
27
  google-apis-core (>= 0.9.0, < 2.a)
29
- google-apis-core (0.9.0)
28
+ google-apis-core (0.9.1)
30
29
  addressable (~> 2.5, >= 2.5.1)
31
30
  googleauth (>= 0.16.2, < 2.a)
32
31
  httpclient (>= 2.8.1, < 3.a)
@@ -47,7 +46,7 @@ GEM
47
46
  google-cloud-env (1.6.0)
48
47
  faraday (>= 0.17.3, < 3.0)
49
48
  google-cloud-errors (1.3.0)
50
- googleauth (1.2.0)
49
+ googleauth (1.3.0)
51
50
  faraday (>= 0.17.3, < 3.a)
52
51
  jwt (>= 1.4, < 3.0)
53
52
  memoist (~> 0.16)
@@ -56,7 +55,6 @@ GEM
56
55
  signet (>= 0.16, < 2.a)
57
56
  httpclient (2.8.3)
58
57
  jaro_winkler (1.5.4)
59
- json (2.6.2)
60
58
  jwt (2.5.0)
61
59
  kramdown (2.4.0)
62
60
  rexml
@@ -66,19 +64,21 @@ GEM
66
64
  memoist (0.16.2)
67
65
  mini_mime (1.1.2)
68
66
  multi_json (1.15.0)
69
- nokogiri (1.13.8-x86_64-linux)
67
+ nokogiri (1.13.9-x86_64-linux)
70
68
  racc (~> 1.4)
71
69
  os (1.1.4)
72
70
  parallel (1.22.1)
73
- parser (3.1.2.1)
71
+ parser (2.7.2.0)
74
72
  ast (~> 2.4.1)
73
+ psych (3.3.4)
75
74
  public_suffix (5.0.0)
76
75
  racc (1.6.0)
77
76
  rainbow (3.1.1)
78
77
  rake (12.3.3)
79
- reek (6.1.1)
78
+ reek (6.0.2)
80
79
  kwalify (~> 0.7.0)
81
- parser (~> 3.1.0)
80
+ parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
81
+ psych (~> 3.1)
82
82
  rainbow (>= 2.0, < 4.0)
83
83
  regexp_parser (2.6.0)
84
84
  representable (3.2.0)
@@ -89,24 +89,22 @@ GEM
89
89
  reverse_markdown (2.1.1)
90
90
  nokogiri
91
91
  rexml (3.2.5)
92
- rubocop (1.36.0)
93
- json (~> 2.3)
92
+ rubocop (1.7.0)
94
93
  parallel (~> 1.10)
95
- parser (>= 3.1.2.1)
94
+ parser (>= 2.7.1.5)
96
95
  rainbow (>= 2.2.2, < 4.0)
97
96
  regexp_parser (>= 1.8, < 3.0)
98
- rexml (>= 3.2.5, < 4.0)
99
- rubocop-ast (>= 1.20.1, < 2.0)
97
+ rexml
98
+ rubocop-ast (>= 1.2.0, < 2.0)
100
99
  ruby-progressbar (~> 1.7)
101
- unicode-display_width (>= 1.4.0, < 3.0)
102
- rubocop-ast (1.21.0)
103
- parser (>= 3.1.1.0)
100
+ unicode-display_width (>= 1.4.0, < 2.0)
101
+ rubocop-ast (1.4.1)
102
+ parser (>= 2.7.1.5)
104
103
  rubocop-rake (0.6.0)
105
104
  rubocop (~> 1.0)
106
- ruby-lint (0.9.1)
107
- parser (>= 2.0.0)
108
- racc (>= 1.4.10)
109
- slop
105
+ ruby-lint (2.3.1)
106
+ parser (~> 2.2)
107
+ slop (~> 3.4, >= 3.4.7)
110
108
  ruby-progressbar (1.11.0)
111
109
  ruby2_keywords (0.0.5)
112
110
  signet (0.17.0)
@@ -114,17 +112,16 @@ GEM
114
112
  faraday (>= 0.17.5, < 3.a)
115
113
  jwt (>= 1.5, < 3.0)
116
114
  multi_json (~> 1.10)
117
- slop (4.9.3)
118
- solargraph (0.47.2)
119
- backport (~> 1.2)
115
+ slop (3.6.0)
116
+ solargraph (0.40.1)
117
+ backport (~> 1.1)
120
118
  benchmark
121
119
  bundler (>= 1.17.2)
122
- diff-lcs (~> 1.4)
123
120
  e2mmap
124
121
  jaro_winkler (~> 1.5)
125
122
  kramdown (~> 2.3)
126
123
  kramdown-parser-gfm (~> 1.1)
127
- parser (~> 3.0)
124
+ parser (~> 2.3)
128
125
  reverse_markdown (>= 1.0.5, < 3)
129
126
  rubocop (>= 0.52)
130
127
  thor (~> 1.0)
@@ -134,7 +131,7 @@ GEM
134
131
  tilt (2.0.11)
135
132
  trailblazer-option (0.1.2)
136
133
  uber (0.1.0)
137
- unicode-display_width (2.3.0)
134
+ unicode-display_width (1.8.0)
138
135
  webrick (1.7.0)
139
136
  yard (0.9.28)
140
137
  webrick (~> 1.7.0)
data/lib/cns/bigquery1.rb CHANGED
@@ -51,6 +51,14 @@ module Cns
51
51
  # processa_bc
52
52
  end
53
53
 
54
+ # insere transacoes blockchain novas nas tabelas etht (norml), ethi (internas), ethp (block), ethk (token)
55
+ def processa_eth
56
+ puts(format("%<n>4i TRANSACOES ETH NORMAIS\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins)))
57
+ puts(format("%<n>4i TRANSACOES ETH INTERNAS\tINSERIDAS ethi", n: apies.novix.empty? ? 0 : dml(ethi_ins)))
58
+ puts(format("%<n>4i TRANSACOES ETH BLOCK\tINSERIDAS ethp", n: apies.novpx.empty? ? 0 : dml(ethp_ins)))
59
+ puts(format("%<n>4i TOKENS\tETH\t\tINSERIDAS ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins)))
60
+ end
61
+
54
62
  private
55
63
 
56
64
  # insere transacoes exchange kraken novas nas tabelas ust (trades), usl (ledger)
@@ -71,14 +79,6 @@ module Cns
71
79
  puts(format("%<n>4i LEDGER\tTHEROCK\t\tINSERIDAS mt", n: apimt.ledger.empty? ? 0 : dml(mtl_ins)))
72
80
  end
73
81
 
74
- # insere transacoes blockchain novas nas tabelas etht (norml), ethi (internas), ethp (block), ethk (token)
75
- def processa_eth
76
- puts(format("%<n>4i TRANSACOES ETH NORMAIS\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins)))
77
- puts(format("%<n>4i TRANSACOES ETH INTERNAS\tINSERIDAS ethi", n: apies.novix.empty? ? 0 : dml(ethi_ins)))
78
- puts(format("%<n>4i TRANSACOES ETH BLOCK\tINSERIDAS ethp", n: apies.novpx.empty? ? 0 : dml(ethp_ins)))
79
- puts(format("%<n>4i TOKENS\tETH\t\tINSERIDAS ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins)))
80
- end
81
-
82
82
  # insere transacoes blockchain novas na tabela eos
83
83
  def processa_eos
84
84
  puts(format("%<n>4i TRANSACOES\tEOS\t\tINSERIDAS eos ", n: apigm.novax.empty? ? 0 : dml(eost_ins)))
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.3.1'
4
+ VERSION = '0.3.2'
5
5
  end
data/lib/cns.rb CHANGED
@@ -23,6 +23,13 @@ require('cns/version')
23
23
  module Cns
24
24
  # classe para carregar/mostrar dados transacoes eth & eos no bigquery
25
25
  class CLI < Thor
26
+ desc 'weth', 'carrega transacoes eth no bigquery'
27
+ option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
28
+ # carrega transacoes eth no bigquery
29
+ def weth
30
+ Bigquery.new(options).processa_eth
31
+ end
32
+
26
33
  desc 'work', 'carrega transacoes novas no bigquery'
27
34
  option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
28
35
  # carrega transacoes novas no bigquery
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.3.1
4
+ version: 0.3.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: 2022-10-19 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler