btce 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/btce.rb +4 -1
  2. metadata +2 -2
@@ -261,7 +261,10 @@ module Btce
261
261
  end
262
262
 
263
263
  def nonce
264
- (Time.now.to_f * 100_000).to_i
264
+ while result = Time.now.to_i and @last_nonce and @last_nonce >= result
265
+ sleep 1
266
+ end
267
+ return @last_nonce = result
265
268
  end
266
269
  private :nonce
267
270
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: btce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-27 00:00:00.000000000 Z
12
+ date: 2013-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: monkey-patch