cryptocoincharts_ruby 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/cryptocoincharts_ruby.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjBhYWE0MDhlMGM0OWNiODBmMDZkNTMxMjlmMWE4ZmRmYTU1OWI5Yg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmVkNjllMDMwOTc1YTQ2NGY3ZDVkYzVhNmM3ZWZlYWVhNDUyOTBjNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDljMDJkMGRmZTgxODhkODU2YTc5N2E2OWNhNWQ1ZmU1YThmMWFmY2JmMjUx
|
10
|
+
ZDA0ZGI3YzI3OWYyN2IzNTAxYmJkZDMxMTdiZmJkN2JlMDQyMTY4YzQxOTZm
|
11
|
+
Yzc3YjA1OGFkNjBmOGY3NTE0MWEwMTA1NGIxNzBjZmExNThkMWM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTJlZTA0Y2RjYzM1YTY4N2E3MTU0NWMwODY4MDEzM2ZiNDBjZmQwNDA3MmJj
|
14
|
+
ODkyYTc5MmY0NDQzODM0ODRkNGU4N2Q4ZDRjMmE1ZjYwODJjMjJiNTEwYTE0
|
15
|
+
NmZiMTY5ODY2ZTc0MWMwYjYwMGI3ODVmZWMxY2Y4Yzc2NDQ0NzI=
|
@@ -6,7 +6,7 @@ require 'bigdecimal'
|
|
6
6
|
module CryptoCoinCharts
|
7
7
|
class << self
|
8
8
|
|
9
|
-
VERSION = '0.0.
|
9
|
+
VERSION = '0.0.14'
|
10
10
|
|
11
11
|
API_URL = 'http://www.cryptocoincharts.info/v2/api'
|
12
12
|
VALID_PAIRS = [
|
@@ -61,7 +61,11 @@ module CryptoCoinCharts
|
|
61
61
|
def coins_info(*pairs)
|
62
62
|
pairs.map! {|p| p.to_sym }
|
63
63
|
pairs.each do |pair|
|
64
|
-
raise ArgumentError, "You must supply only valid coin pairs!" if !VALID_PAIRS.include?(pair)
|
64
|
+
#raise ArgumentError, "You must supply only valid coin pairs!" if !VALID_PAIRS.include?(pair)
|
65
|
+
if !VALID_PAIRS.include?(pair)
|
66
|
+
puts "WARNING: #{pair} is not listed as a valid coin pair and will be ignored!"
|
67
|
+
pairs.delete(pair)
|
68
|
+
end
|
65
69
|
end
|
66
70
|
coins = JSON.parse(Mechanize.new.post("#{API_URL}/tradingPairs", {
|
67
71
|
:pairs => pairs.join(',')
|