rbtc_arbitrage 1.4.5 → 1.4.6
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
- data/Gemfile.lock +1 -1
- data/lib/rbtc_arbitrage/clients/coinbase_client.rb +3 -2
- data/lib/rbtc_arbitrage/version.rb +1 -1
- data/spec/clients/coinbase_client_spec.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62369ae5921161c77cf12861468a5a030c341501
|
|
4
|
+
data.tar.gz: 455e70c7cef5c338ad71b61fde1f83748b7afbd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b4fc22945496444b7fcb510bb5f8e3b22ac1c35f14c35d384cffd72d9c700a7ffe5e80b776ba114522a8c2beaff0120275f26a7f28947372479e02ac29433f7
|
|
7
|
+
data.tar.gz: fc36f51cac71e6e4ed8ff34d566d8ba884c57e5dc4ba436f942ba790da274bc9b279918a232cbe157b33a83ab6fc41ffd8817937d27538bfeb74eb48cf012601
|
data/Gemfile.lock
CHANGED
|
@@ -16,10 +16,11 @@ module RbtcArbitrage
|
|
|
16
16
|
if @options[:verbose]
|
|
17
17
|
warning = "Coinbase doesn't provide a USD balance because"
|
|
18
18
|
warning << " it connects to your bank account. Be careful, "
|
|
19
|
-
warning << "because this will withdraw directly from your accounts
|
|
19
|
+
warning << "because this will withdraw directly from your accounts"
|
|
20
|
+
warning << "when you trade live."
|
|
20
21
|
logger.warn warning
|
|
21
22
|
end
|
|
22
|
-
@balance ||= [
|
|
23
|
+
@balance ||= [max_float, max_float]
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
# Configures the client's API keys.
|
|
@@ -7,9 +7,8 @@ describe RbtcArbitrage::Clients::CoinbaseClient do
|
|
|
7
7
|
it { client.exchange.should == :coinbase }
|
|
8
8
|
|
|
9
9
|
describe "#balance" do
|
|
10
|
-
it "fetches the balance correctly"
|
|
11
|
-
|
|
12
|
-
expected = [balance, Float::MAX]
|
|
10
|
+
it "fetches the balance correctly" do
|
|
11
|
+
expected = [Float::MAX, Float::MAX]
|
|
13
12
|
client.balance.should eql(expected)
|
|
14
13
|
client.balance.each do |b|
|
|
15
14
|
b.should be_a(Float)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rbtc_arbitrage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hank Stoever
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|