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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/cryptocoincharts_ruby.rb +6 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzE4YmZmZTNmOWZhZDQxZTk0NzgwMzE1OTkwOTM3NjEwYTMzZmYyNQ==
4
+ NjBhYWE0MDhlMGM0OWNiODBmMDZkNTMxMjlmMWE4ZmRmYTU1OWI5Yg==
5
5
  data.tar.gz: !binary |-
6
- OTBlNDgyNmE5NzFkZDcxNjFkYjQ2MDdmMjlmYTYyY2MyMjk0ZjBkYw==
6
+ ZmVkNjllMDMwOTc1YTQ2NGY3ZDVkYzVhNmM3ZWZlYWVhNDUyOTBjNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- OWU1MTRhNDM4OTBiNWQ4MDEyMjU2YjY1ZDMyODhhNWUxZmI3Yjk5MzAwZmU1
10
- MDNmODRkYjE2ZWJjYTU0NGM2NmE1OTU5NTNjNmM3YmIwMDAyYmI0ZTlkYzkx
11
- ZTJhNjc0NGFkOWVlMDU0ZGE2NTViOWVmZDhiZjZlMDY0NDYzY2E=
9
+ NDljMDJkMGRmZTgxODhkODU2YTc5N2E2OWNhNWQ1ZmU1YThmMWFmY2JmMjUx
10
+ ZDA0ZGI3YzI3OWYyN2IzNTAxYmJkZDMxMTdiZmJkN2JlMDQyMTY4YzQxOTZm
11
+ Yzc3YjA1OGFkNjBmOGY3NTE0MWEwMTA1NGIxNzBjZmExNThkMWM=
12
12
  data.tar.gz: !binary |-
13
- ZDYzNmVkODE3MTExYWMzZjNhNDZlZGU4N2UzMjQ0NDJhMDNiYWI5NTBmYjRj
14
- YzcyOGM1ZTZkNzAyMzIzNjEwMTM1NGFmZDg4YTgwOTU2NTk1MGVkZGI4MjEx
15
- ZWY3YmY1NWU2NThkNTI3NmU3ZGIxZDY0MjM3NjNiMTE0MGNiZjM=
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.13'
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(',')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cryptocoincharts_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan Barron