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 +4 -4
- data/lib/watchcow/rate.rb +8 -4
- data/lib/watchcow/version.rb +1 -1
- 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: e61b0ed76f06c66b745197e83717fab99cb28b09596ba9a09c10c0a7ad28954a
|
4
|
+
data.tar.gz: 69533691b22d8c8523d7a7e8ddffc8911b7765d2b153ad8058f5d5d8a4aeb64f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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]},
|
data/lib/watchcow/version.rb
CHANGED
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.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-
|
11
|
+
date: 2021-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|