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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ce85d0bb1815237ea4947df90d00329edfac41c75fdfd71cd6f2b509ea41a9e
4
- data.tar.gz: 2260c60ceb4e70662a335bbd9e4f4a57a1340a35f4f5e97144fde699b7e8f598
3
+ metadata.gz: a103bd6703fb1ae5b370496b0ea1fe7539d288998a974e2c6b0404f77521cc28
4
+ data.tar.gz: 298abafd272b2fd43766391438e46add06c55970e7410dfdce03d4563ebdbadd
5
5
  SHA512:
6
- metadata.gz: f74a57c2b531877f0873fe635c48df9fcc6ff03b28baa6486575eac88d6a992d5cd342f657dc54cb07bd56c7cb43c68c460151718845b2d8d20afd2116d558a8
7
- data.tar.gz: 627e9ac1658d62bb397aafc9df9dacdbeafcfc385166822f6190df38c1e51e3e9711838b88b4b5ae6dfbff5e78c7b90f7d156263cbe18dca77e6c02658f5d8c4
6
+ metadata.gz: 06042404a46134caec73eddab358bf7e34bd537759484f7ea398e0dd8dae635223ee63a84efb810074180de07df2c6f42a2d8f12ff6616e22cbbc940a73d412c
7
+ data.tar.gz: a1b001a5eb99baba0f2a89691417ea4cacac8a6355e1a14af1f01fa313e7a8bae115e58615b2aebb033c28108e37226d7489ffff5578bfb8ba8b254aca71c7e0
data/lib/watchcow.rb CHANGED
@@ -2,4 +2,5 @@
2
2
  require 'json'
3
3
  require 'httparty'
4
4
  require "pry"
5
- require 'watchcow/client'
5
+ require 'watchcow/client'
6
+ require 'watchcow/stare'
@@ -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.each do |coin|
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"}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Watchcow
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
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.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-17 00:00:00.000000000 Z
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: