cns 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +20 -16
- data/lib/cns/bigquery.rb +13 -4
- data/lib/cns/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: a5c81184cadadec18414492a966d23fd39e6072f8c5619b7e0062b8fa753708f
|
4
|
+
data.tar.gz: 9e893a5f6a1c69eb41d426254fd5c4f8d9fef82313edf2b01065b1e62fa70e41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74b5dae5710abb4b48c12f56f92bf15f7d4fc282a3640bce09e50b8dcab0c421a56d3ae21fa60fbc1100e51725b439aadb9a2463e184ab285cc2c0618836c2be
|
7
|
+
data.tar.gz: 4dcce3fe4996b0d30dd448a4df7a12290fe3bc267ef7ebbb66bc843ee60326beb13e440ad4b285cbecc05a76d14bdf72cc576b37b7e514ba2ae3a6ba00e79c42
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cns (0.5.
|
4
|
+
cns (0.5.3)
|
5
5
|
curb
|
6
6
|
faraday
|
7
7
|
google-cloud-bigquery
|
@@ -16,17 +16,18 @@ GEM
|
|
16
16
|
backport (1.2.0)
|
17
17
|
base64 (0.2.0)
|
18
18
|
benchmark (0.3.0)
|
19
|
-
|
19
|
+
bigdecimal (3.1.8)
|
20
|
+
concurrent-ruby (1.3.3)
|
20
21
|
curb (1.0.5)
|
21
22
|
declarative (0.0.20)
|
22
23
|
e2mmap (0.1.0)
|
23
|
-
faraday (2.9.
|
24
|
+
faraday (2.9.1)
|
24
25
|
faraday-net_http (>= 2.0, < 3.2)
|
25
26
|
faraday-net_http (3.1.0)
|
26
27
|
net-http
|
27
|
-
google-apis-bigquery_v2 (0.
|
28
|
-
google-apis-core (>= 0.
|
29
|
-
google-apis-core (0.
|
28
|
+
google-apis-bigquery_v2 (0.71.0)
|
29
|
+
google-apis-core (>= 0.15.0, < 2.a)
|
30
|
+
google-apis-core (0.15.0)
|
30
31
|
addressable (~> 2.5, >= 2.5.1)
|
31
32
|
googleauth (~> 1.9)
|
32
33
|
httpclient (>= 2.8.1, < 3.a)
|
@@ -34,19 +35,20 @@ GEM
|
|
34
35
|
representable (~> 3.0)
|
35
36
|
retriable (>= 2.0, < 4.a)
|
36
37
|
rexml
|
37
|
-
google-cloud-bigquery (1.
|
38
|
+
google-cloud-bigquery (1.49.1)
|
39
|
+
bigdecimal (~> 3.0)
|
38
40
|
concurrent-ruby (~> 1.0)
|
39
41
|
google-apis-bigquery_v2 (~> 0.62)
|
40
42
|
google-apis-core (~> 0.13)
|
41
43
|
google-cloud-core (~> 1.6)
|
42
44
|
googleauth (~> 1.9)
|
43
45
|
mini_mime (~> 1.0)
|
44
|
-
google-cloud-core (1.
|
46
|
+
google-cloud-core (1.7.0)
|
45
47
|
google-cloud-env (>= 1.0, < 3.a)
|
46
48
|
google-cloud-errors (~> 1.0)
|
47
49
|
google-cloud-env (2.1.1)
|
48
50
|
faraday (>= 1.0, < 3.a)
|
49
|
-
google-cloud-errors (1.
|
51
|
+
google-cloud-errors (1.4.0)
|
50
52
|
googleauth (1.11.0)
|
51
53
|
faraday (>= 1.0, < 3.a)
|
52
54
|
google-cloud-env (~> 2.1)
|
@@ -55,7 +57,7 @@ GEM
|
|
55
57
|
os (>= 0.9, < 2.0)
|
56
58
|
signet (>= 0.16, < 2.a)
|
57
59
|
httpclient (2.8.3)
|
58
|
-
jaro_winkler (1.
|
60
|
+
jaro_winkler (1.6.0)
|
59
61
|
jwt (2.8.1)
|
60
62
|
base64
|
61
63
|
kramdown (2.4.0)
|
@@ -67,15 +69,15 @@ GEM
|
|
67
69
|
multi_json (1.15.0)
|
68
70
|
net-http (0.4.1)
|
69
71
|
uri
|
70
|
-
nokogiri (1.16.
|
72
|
+
nokogiri (1.16.6-x86_64-linux)
|
71
73
|
racc (~> 1.4)
|
72
74
|
os (1.1.4)
|
73
|
-
parallel (1.
|
75
|
+
parallel (1.25.1)
|
74
76
|
parser (2.7.2.0)
|
75
77
|
ast (~> 2.4.1)
|
76
78
|
psych (3.3.4)
|
77
|
-
public_suffix (5.0.
|
78
|
-
racc (1.
|
79
|
+
public_suffix (5.0.5)
|
80
|
+
racc (1.8.0)
|
79
81
|
rainbow (3.1.1)
|
80
82
|
rake (12.3.3)
|
81
83
|
reek (6.0.2)
|
@@ -83,7 +85,7 @@ GEM
|
|
83
85
|
parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
|
84
86
|
psych (~> 3.1)
|
85
87
|
rainbow (>= 2.0, < 4.0)
|
86
|
-
regexp_parser (2.9.
|
88
|
+
regexp_parser (2.9.2)
|
87
89
|
representable (3.2.0)
|
88
90
|
declarative (< 0.1.0)
|
89
91
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
@@ -91,7 +93,8 @@ GEM
|
|
91
93
|
retriable (3.1.2)
|
92
94
|
reverse_markdown (2.1.1)
|
93
95
|
nokogiri
|
94
|
-
rexml (3.
|
96
|
+
rexml (3.3.0)
|
97
|
+
strscan
|
95
98
|
rubocop (1.7.0)
|
96
99
|
parallel (~> 1.10)
|
97
100
|
parser (>= 2.7.1.5)
|
@@ -129,6 +132,7 @@ GEM
|
|
129
132
|
thor (~> 1.0)
|
130
133
|
tilt (~> 2.0)
|
131
134
|
yard (~> 0.9, >= 0.9.24)
|
135
|
+
strscan (3.1.0)
|
132
136
|
thor (1.3.1)
|
133
137
|
tilt (2.3.0)
|
134
138
|
trailblazer-option (0.1.2)
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
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.
|
4
|
+
version: 0.5.3
|
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-
|
11
|
+
date: 2024-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|