currency-rate 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/currency-rate.gemspec +2 -2
- data/lib/btc_adapters/average_rate_adapter.rb +1 -1
- data/lib/btc_adapters/bitfinex_adapter.rb +1 -1
- data/lib/btc_adapters/bitpay_adapter.rb +1 -1
- data/lib/btc_adapters/bitstamp_adapter.rb +1 -1
- data/lib/btc_adapters/btcchina_adapter.rb +1 -1
- data/lib/btc_adapters/btce_adapter.rb +1 -1
- data/lib/btc_adapters/coinbase_adapter.rb +1 -1
- data/lib/btc_adapters/huobi_adapter.rb +1 -1
- data/lib/btc_adapters/kraken_adapter.rb +1 -1
- data/lib/btc_adapters/localbitcoins_adapter.rb +1 -1
- data/lib/btc_adapters/okcoin_adapter.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7fd1831459d2eebe5eac6d42727472c968bd620
|
4
|
+
data.tar.gz: 936bc13c63d2722bf5bb9605a4fd331e652425bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec7d019099961bbdd648821b0265a0fa761fc28fe4a52c310cfade9e91d3d58e38003e0d6651b433f3d9d81687467dbc84a697d16e0271b540704f3c7b377e06
|
7
|
+
data.tar.gz: 13da783dc3a7c34cbc271cf06dd0ee65d3ced8b95b7fbb5f2c6ba31b992cace6b77fe5681232d63894d9963f61e06c0b2a0db1319c17ced4e9be61407bda22ef
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/currency-rate.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: currency-rate 0.3.
|
5
|
+
# stub: currency-rate 0.3.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "currency-rate"
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -5,7 +5,7 @@ module CurrencyRate
|
|
5
5
|
'btc_usd' => 'https://api.bitfinex.com/v1/pubticker/btcusd',
|
6
6
|
'ltc_usd' => 'https://api.bitfinex.com/v1/pubticker/ltcusd'
|
7
7
|
}
|
8
|
-
DEFAULT_CURRENCIES
|
8
|
+
DEFAULT_CURRENCIES = ["USD", "BTC"]
|
9
9
|
|
10
10
|
def rate_for(from,to)
|
11
11
|
super
|
@@ -6,7 +6,7 @@ module CurrencyRate
|
|
6
6
|
'btc_eur' => 'https://www.bitstamp.net/api/v2/ticker/btceur/',
|
7
7
|
'eur_usd' => 'https://www.bitstamp.net/api/v2/ticker/eurusd/'
|
8
8
|
}
|
9
|
-
DEFAULT_CURRENCIES
|
9
|
+
DEFAULT_CURRENCIES = ["USD", "BTC"]
|
10
10
|
|
11
11
|
def rate_for(from,to)
|
12
12
|
super
|
@@ -5,7 +5,7 @@ module CurrencyRate
|
|
5
5
|
'btc_cny' => 'http://api.huobi.com/staticmarket/ticker_btc_json.js',
|
6
6
|
'ltc_cny' => 'http://api.huobi.com/staticmarket/ticker_ltc_json.js'
|
7
7
|
}
|
8
|
-
DEFAULT_CURRENCIES
|
8
|
+
DEFAULT_CURRENCIES = ["CNY", "BTC"]
|
9
9
|
|
10
10
|
def rate_for(from,to)
|
11
11
|
super
|
@@ -5,7 +5,7 @@ module CurrencyRate
|
|
5
5
|
"usd_btc" => 'https://api.kraken.com/0/public/Ticker?pair=xbtusd',
|
6
6
|
"eur_btc" => 'https://api.kraken.com/0/public/Ticker?pair=xbteur'
|
7
7
|
}
|
8
|
-
DEFAULT_CURRENCIES
|
8
|
+
DEFAULT_CURRENCIES = ["USD", "BTC"]
|
9
9
|
|
10
10
|
def rate_for(to,from)
|
11
11
|
super
|
@@ -7,7 +7,7 @@ module CurrencyRate
|
|
7
7
|
'ltc_cny' => 'https://www.okcoin.cn/api/ticker.do?symbol=ltc_cny',
|
8
8
|
'btc_cny' => 'https://www.okcoin.cn/api/ticker.do?symbol=btc_cny'
|
9
9
|
}
|
10
|
-
DEFAULT_CURRENCIES =
|
10
|
+
DEFAULT_CURRENCIES = ["CNY", "BTC"]
|
11
11
|
|
12
12
|
def rate_for(from,to)
|
13
13
|
super
|