watchcow 0.1.6 → 0.1.7

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: c1b15c9de20d884e068ef230f92b09657a1cf93af7f1373d003ec1e8478b630c
4
- data.tar.gz: 91899f1fe1756b5dbd28f5adb7c76335660491c7151114b0d850e64745fc9af9
3
+ metadata.gz: e61b0ed76f06c66b745197e83717fab99cb28b09596ba9a09c10c0a7ad28954a
4
+ data.tar.gz: 69533691b22d8c8523d7a7e8ddffc8911b7765d2b153ad8058f5d5d8a4aeb64f
5
5
  SHA512:
6
- metadata.gz: 98a8e7ec181598f1e06b1d6716759e002e4cb7c435e31d01c385726e0fa0a3d130ec0a566a6f7056fd17afea6f66e3fdb589c95ea2f59e9260adc0e3819050d0
7
- data.tar.gz: 07f6533ef510386861017afd3bb116f9134237256e83eddd721d7dea2b7e2a60db2ed619b546f561887c625ce5d5bfe778f53557fe8743e2be85ee169a6a951c
6
+ metadata.gz: af296878de3024d07cad96fbd87be539f015bfcd6fd91634a274e9bcdc333be04c462e183cf1becac655b8317c9771c96c5fca446058c1b22147f2e9dd48c17f
7
+ data.tar.gz: 73c6762912f4bcb513ed488bd08ebd1879c75a662cbcfa2608cc8900f35d6b765f6e161f7fc83571d981d4a7b7336f8ec2499bec71c669cbf164026bd209d585
data/lib/watchcow/rate.rb CHANGED
@@ -46,10 +46,14 @@ module Watchcow
46
46
  results.push(result)
47
47
  end
48
48
  end
49
- results_cq = results.select{|x| x[:coin].include?('cq')}
50
- results_nq = results.select{|x| x[:coin].include?('nq')}
51
- results_cw = results.select{|x| x[:coin].include?('cw')}
52
- results_nw = results.select{|x| x[:coin].include?('nw')}
49
+ begin
50
+ results_cq = results.select{|x| x[:coin].include?('cq')}
51
+ results_nq = results.select{|x| x[:coin].include?('nq')}
52
+ results_cw = results.select{|x| x[:coin].include?('cw')}
53
+ results_nw = results.select{|x| x[:coin].include?('nw')}
54
+ rescue
55
+ puts results_cq.to_json
56
+ end
53
57
  {
54
58
  cq_list: results_cq.sort{|x,y| y[:expected_margin] <=> x[:expected_margin]},
55
59
  nq_list: results_nq.sort{|x,y| y[:expected_margin] <=> x[:expected_margin]},
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Watchcow
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.7"
5
5
  end
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.6
4
+ version: 0.1.7
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-19 00:00:00.000000000 Z
11
+ date: 2021-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty