watchcow 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watchcow.rb +2 -1
- data/lib/watchcow/client.rb +2 -2
- data/lib/watchcow/rate.rb +3 -2
- data/lib/watchcow/version.rb +1 -1
- data/watchcow-0.0.9.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a103bd6703fb1ae5b370496b0ea1fe7539d288998a974e2c6b0404f77521cc28
|
4
|
+
data.tar.gz: 298abafd272b2fd43766391438e46add06c55970e7410dfdce03d4563ebdbadd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06042404a46134caec73eddab358bf7e34bd537759484f7ea398e0dd8dae635223ee63a84efb810074180de07df2c6f42a2d8f12ff6616e22cbbc940a73d412c
|
7
|
+
data.tar.gz: a1b001a5eb99baba0f2a89691417ea4cacac8a6355e1a14af1f01fa313e7a8bae115e58615b2aebb033c28108e37226d7489ffff5578bfb8ba8b254aca71c7e0
|
data/lib/watchcow.rb
CHANGED
data/lib/watchcow/client.rb
CHANGED
@@ -7,8 +7,8 @@ require 'watchcow/rate'
|
|
7
7
|
module Watchcow
|
8
8
|
class Client
|
9
9
|
class << self
|
10
|
-
def call
|
11
|
-
results = Watchcow::Rate.call
|
10
|
+
def call(coin=nil)
|
11
|
+
results = Watchcow::Rate.call(coin)
|
12
12
|
cq_list = results[:cq_list]
|
13
13
|
nq_list = results[:nq_list]
|
14
14
|
nw_list = results[:nw_list]
|
data/lib/watchcow/rate.rb
CHANGED
@@ -9,9 +9,10 @@ module Watchcow
|
|
9
9
|
'cw' => 'this_week'
|
10
10
|
}
|
11
11
|
class << self
|
12
|
-
def call
|
12
|
+
def call coin=nil
|
13
13
|
results = []
|
14
|
-
Watchcow::ApiSymbol.contract_list
|
14
|
+
coin_list = coin.nil? ? Watchcow::ApiSymbol.contract_list : [coin]
|
15
|
+
coin_list.each do |coin|
|
15
16
|
Watchcow::ApiSymbol.dm_types.each do |t|
|
16
17
|
dm_symbol = {symbol: "#{coin}_#{t}"}
|
17
18
|
spot_symbol = {symbol: "#{coin}usdt"}
|
data/lib/watchcow/version.rb
CHANGED
data/watchcow-0.0.9.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watchcow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DrinE Liu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- watchcow-0.0.5.gem
|
77
77
|
- watchcow-0.0.6.gem
|
78
78
|
- watchcow-0.0.7.gem
|
79
|
+
- watchcow-0.0.9.gem
|
79
80
|
- watchcow.gemspec
|
80
81
|
homepage: https://rubygems.org/gems
|
81
82
|
licenses:
|