bitex 0.0.8 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/bitex/order.rb CHANGED
@@ -38,18 +38,13 @@ module Bitex
38
38
  order = from_json(Api.private(:post, "/private#{base_path}", params))
39
39
  retries = 0
40
40
  while wait && order.status == :received
41
- new_order = find(order.id)
42
- if new_order.nil?
43
- raise StandardError.new(
44
- "Order #{base_path} ##{order.id} not found in list")
45
- end
46
- order = new_order
41
+ sleep 0.2
42
+ order = find(order.id)
47
43
  retries += 1
48
- if retries > 100
44
+ if retries > 5000 # Wait 15 minutes for the order to be accepted.
49
45
  raise StandardError.new(
50
46
  "Timed out waiting for #{base_path} ##{order.id}")
51
47
  end
52
- sleep 0.2
53
48
  end
54
49
  return order
55
50
  end
data/lib/bitex/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bitex
2
- VERSION = "0.0.8"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.1.0
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-07-30 00:00:00.000000000 Z
13
+ date: 2014-08-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport