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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df3e2bd854e751fa516809399ec6f6a29b19dd70241ffb3dfbf21d447eff02a1
4
- data.tar.gz: 003efc850539e03d71252d681f65781bcb2195417e1dc76eb870c2c6423d0c69
3
+ metadata.gz: 6955494b1d74770a708f000dcf4ec7322e8409e267ce4fa45c655d40313fefb7
4
+ data.tar.gz: 4fcec6cd579a7237d77c900626fb948667a0919d8ea3fda061c80e3261657e79
5
5
  SHA512:
6
- metadata.gz: 70fd46189a3aadb9e64effabdab849e565da4c32f7b820d2f5f06785c57501cc31e29476aeac96770699ac28d0011898760cbb46cd8c366504782bbabbf2e877
7
- data.tar.gz: 1fa0cf36c81b422bd9c0db4170fc2ed5fd2f4648296ee57af8289a1f100d5d741186c4a7c3442aa9ba47cb3f05f969fe4e23e5f27c34929fbfbd34288cf394fc
6
+ metadata.gz: c20e7443df5d3a5783c0dbfae3001cb51108ce842ebb1ab19e3df065c99a9a087728b9b2c8557e4742ff23b2aa9d37cfcf4f47ccde2eb2c15f8faaef2fab70da
7
+ data.tar.gz: 4e213fe3b6744c49e061ba2b7f5d6ed34099daf2079dc8a49f8b0fbdd7e68c6cb7a4d2b624cc976879956772ce80e3660ce6ed7a00989bbbb4ca84d8227fd851
@@ -1,5 +1,5 @@
1
1
  module Blade
2
2
  module Coin
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
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 green_colorize(str)
54
- colorize(str, :green)
55
- end
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.2
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-10-12 00:00:00.000000000 Z
11
+ date: 2023-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow