cryptocoin_fanboi 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/cryptocoin_fanboi.rb +8 -5
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4c1b1b34d71fd051b8be11712f8b687af95b1c9a
|
|
4
|
+
data.tar.gz: 113aa25f4731e9ccf45a81b7c6a5285dda25581c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c378007850421437a0c8560aa150045475c7d19adfca61cf5a803c738532a36788502b273364b7122c6f7ba777431da77625811e688983dd85eead48222eef0d
|
|
7
|
+
data.tar.gz: 0ed3137bae157d04602c8563fa43055904f6f84c73b821323584ccc68a4751e2e29b86f58481bfd1ef80f29e1cdb8983e8885f976747e274a5bb144deb0d0ecd
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/cryptocoin_fanboi.rb
CHANGED
|
@@ -139,7 +139,7 @@ class CryptocoinFanboi
|
|
|
139
139
|
alias last_day today
|
|
140
140
|
alias day today
|
|
141
141
|
|
|
142
|
-
def to_s(limit:
|
|
142
|
+
def to_s(limit: 5, markdown: false)
|
|
143
143
|
|
|
144
144
|
coins = fetch_coinlist(limit: limit).map do |coin|
|
|
145
145
|
|
|
@@ -147,6 +147,8 @@ class CryptocoinFanboi
|
|
|
147
147
|
|
|
148
148
|
end
|
|
149
149
|
|
|
150
|
+
puts 'coins: ' + coins.inspect if @debug
|
|
151
|
+
|
|
150
152
|
build_table coins, markdown: markdown
|
|
151
153
|
|
|
152
154
|
end
|
|
@@ -193,12 +195,12 @@ class CryptocoinFanboi
|
|
|
193
195
|
@all_coins = JSON.parse(Coinmarketcap.coins.body)\
|
|
194
196
|
.map {|x| OpenStruct.new x}
|
|
195
197
|
|
|
196
|
-
|
|
197
|
-
@all_coins.select {|x| @watch.include? x.symbol }
|
|
198
|
+
if @watch.any? then
|
|
199
|
+
return @all_coins.select {|x| @watch.include? x.symbol }
|
|
198
200
|
elsif @ignore.any?
|
|
199
|
-
@all_coins.reject {|x| @ignore.include? x.symbol }
|
|
201
|
+
a = @all_coins.reject {|x| @ignore.include? x.symbol }
|
|
200
202
|
else
|
|
201
|
-
@all_coins
|
|
203
|
+
a = @all_coins
|
|
202
204
|
end
|
|
203
205
|
|
|
204
206
|
limit ? a.take(limit) : a
|
|
@@ -247,6 +249,7 @@ class CryptocoinFanboi
|
|
|
247
249
|
end
|
|
248
250
|
|
|
249
251
|
|
|
252
|
+
|
|
250
253
|
if __FILE__ == $0 then
|
|
251
254
|
|
|
252
255
|
ccf = CryptocoinFanboi.new
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cryptocoin_fanboi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
NgmsFfw10oaD3PWQ7UPxWJP14au2LUL+NGHkLrGHOMPphsZhYeXKugGO8NfcKukq
|
|
31
31
|
fps=
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date: 2018-01-
|
|
33
|
+
date: 2018-01-06 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: colored
|
|
@@ -81,7 +81,7 @@ dependencies:
|
|
|
81
81
|
version: '0.4'
|
|
82
82
|
- - ">="
|
|
83
83
|
- !ruby/object:Gem::Version
|
|
84
|
-
version: 0.4.
|
|
84
|
+
version: 0.4.3
|
|
85
85
|
type: :runtime
|
|
86
86
|
prerelease: false
|
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -91,7 +91,7 @@ dependencies:
|
|
|
91
91
|
version: '0.4'
|
|
92
92
|
- - ">="
|
|
93
93
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: 0.4.
|
|
94
|
+
version: 0.4.3
|
|
95
95
|
description:
|
|
96
96
|
email: james@jamesrobertson.eu
|
|
97
97
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|