blade_coin 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blade/coin/version.rb +1 -1
- data/lib/blade/coin.rb +5 -11
- 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: 6955494b1d74770a708f000dcf4ec7322e8409e267ce4fa45c655d40313fefb7
|
4
|
+
data.tar.gz: 4fcec6cd579a7237d77c900626fb948667a0919d8ea3fda061c80e3261657e79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c20e7443df5d3a5783c0dbfae3001cb51108ce842ebb1ab19e3df065c99a9a087728b9b2c8557e4742ff23b2aa9d37cfcf4f47ccde2eb2c15f8faaef2fab70da
|
7
|
+
data.tar.gz: 4e213fe3b6744c49e061ba2b7f5d6ed34099daf2079dc8a49f8b0fbdd7e68c6cb7a4d2b624cc976879956772ce80e3660ce6ed7a00989bbbb4ca84d8227fd851
|
data/lib/blade/coin/version.rb
CHANGED
data/lib/blade/coin.rb
CHANGED
@@ -31,7 +31,7 @@ module Blade
|
|
31
31
|
|
32
32
|
display_market_data(data)
|
33
33
|
end
|
34
|
-
|
34
|
+
|
35
35
|
def display_market_data(data)
|
36
36
|
title = '💰Wishing you prosperity and wealth(恭喜发财)💰'.color(226)
|
37
37
|
table = Terminal::Table.new(title: "\e[33m#{title}\e[0m") do |t|
|
@@ -50,16 +50,10 @@ module Blade
|
|
50
50
|
table
|
51
51
|
end
|
52
52
|
|
53
|
-
def
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
def orange_colorize(str)
|
58
|
-
colorize(str, :orange)
|
59
|
-
end
|
60
|
-
|
61
|
-
def yellow_colorize(str)
|
62
|
-
colorize(str, :yellow)
|
53
|
+
def method_missing(method, arg)
|
54
|
+
return super unless method.to_s.end_with?('_colorize')
|
55
|
+
color = method.to_s.gsub('_colorize', '').to_sym
|
56
|
+
send :colorize, arg, color
|
63
57
|
end
|
64
58
|
|
65
59
|
def usdt_result
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blade_coin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rainbow
|