itbit 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/README.md +13 -9
- data/lib/itbit/order.rb +4 -1
- data/lib/itbit/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
itbit (0.0.
|
4
|
+
itbit (0.0.3)
|
5
5
|
activesupport
|
6
6
|
rest_client
|
7
7
|
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
minitest (5.3.5)
|
24
24
|
netrc (0.7.9)
|
25
25
|
rake (10.3.2)
|
26
|
-
rest_client (1.8.
|
26
|
+
rest_client (1.8.2)
|
27
27
|
netrc (~> 0.7.7)
|
28
28
|
rspec (3.0.0)
|
29
29
|
rspec-core (~> 3.0.0)
|
data/README.md
CHANGED
@@ -90,17 +90,21 @@ All api calls that need a wallet accept one as an optional argument as well.
|
|
90
90
|
=> { id: "3F2504E0-4F89-41D3-9A0C-0305E82C3301",
|
91
91
|
name: "Wallet",
|
92
92
|
balances: [
|
93
|
-
{
|
94
|
-
|
95
|
-
|
93
|
+
{ total_balance: "20.0".to_d,
|
94
|
+
currency: :usd,
|
95
|
+
available_balance: "10.0".to_d
|
96
96
|
},
|
97
|
-
{
|
98
|
-
|
99
|
-
|
97
|
+
{ total_balance: "0.0".to_d,
|
98
|
+
currency: :xbt,
|
99
|
+
available_balance: "0.0".to_d
|
100
100
|
},
|
101
|
-
{
|
102
|
-
|
103
|
-
|
101
|
+
{ total_balance: "0.0".to_d,
|
102
|
+
currency: :eur,
|
103
|
+
available_balance: "0.0".to_d
|
104
|
+
},
|
105
|
+
{ total_balance: "0.0".to_d,
|
106
|
+
currency: :sgd,
|
107
|
+
available_balance: "0.0".to_d
|
104
108
|
}
|
105
109
|
]
|
106
110
|
}
|
data/lib/itbit/order.rb
CHANGED
@@ -91,7 +91,10 @@ module Itbit
|
|
91
91
|
retries = 0
|
92
92
|
while options[:wait] && order.status == :submitted
|
93
93
|
sleep 0.2
|
94
|
-
|
94
|
+
begin
|
95
|
+
order = find(order.id)
|
96
|
+
rescue StandardError => e
|
97
|
+
end
|
95
98
|
retries += 1
|
96
99
|
if retries > 5000 # Wait 15 minutes for the order to be accepted.
|
97
100
|
raise StandardError.new(
|
data/lib/itbit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itbit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-11-
|
13
|
+
date: 2014-11-29 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activesupport
|