itbit 0.0.2 → 0.0.3

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- itbit (0.0.2)
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.1)
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
- { balance: "10203.25",
94
- currency_code: :usd,
95
- trading_balance: "10003.25"
93
+ { total_balance: "20.0".to_d,
94
+ currency: :usd,
95
+ available_balance: "10.0".to_d
96
96
  },
97
- { balance: "402.110",
98
- currency_code: :xbt,
99
- trading_balance: "402.110"
97
+ { total_balance: "0.0".to_d,
98
+ currency: :xbt,
99
+ available_balance: "0.0".to_d
100
100
  },
101
- { balance: "0.00",
102
- currency_code: :eur,
103
- trading_balance: "0.00"
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
  }
@@ -91,7 +91,10 @@ module Itbit
91
91
  retries = 0
92
92
  while options[:wait] && order.status == :submitted
93
93
  sleep 0.2
94
- order = find(order.id)
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(
@@ -1,3 +1,3 @@
1
1
  module Itbit
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-07 00:00:00.000000000 Z
13
+ date: 2014-11-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport