andrewroth-btce 0.1.9.1 → 0.1.9.2

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 +2 -1
  2. metadata +33 -52
data/lib/btce.rb CHANGED
@@ -277,8 +277,9 @@ module Btce
277
277
  end
278
278
 
279
279
  def nonce
280
- @nonce = 0 if @nonce.nil?
280
+ @nonce ||= File.exists?("btce-nonce") ? File.read("btce-nonce").to_i : 0
281
281
  @nonce += 1
282
+ File.open("btce-nonce", "w") do |f| f.write(@nonce) end
282
283
  Time::now.to_i + @nonce
283
284
  end
284
285
  private :nonce
metadata CHANGED
@@ -1,82 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: andrewroth-btce
3
- version: !ruby/object:Gem::Version
4
- hash: 97
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.9.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 9
10
- - 1
11
- version: 0.1.9.1
12
6
  platform: ruby
13
- authors:
7
+ authors:
14
8
  - Christopher Mark Gore
15
9
  - Andrew Roth
16
10
  autorequire:
17
11
  bindir: bin
18
12
  cert_chain: []
19
-
20
- date: 2013-07-26 00:00:00 -04:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
13
+ date: 2013-07-26 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
24
16
  name: monkey-patch
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
27
18
  none: false
28
- requirements:
29
- - - ">="
30
- - !ruby/object:Gem::Version
31
- hash: 3
32
- segments:
33
- - 0
34
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
35
23
  type: :runtime
36
- version_requirements: *id001
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ! '>='
29
+ - !ruby/object:Gem::Version
30
+ version: '0'
37
31
  description: A simple library to interface with the API for btc-e.com in Ruby.
38
32
  email: andrewroth@gmail.com
39
33
  executables: []
40
-
41
34
  extensions: []
42
-
43
35
  extra_rdoc_files: []
44
-
45
- files:
36
+ files:
46
37
  - lib/btce.rb
47
- has_rdoc: true
48
38
  homepage: https://github.com/cgore/ruby-btce
49
39
  licenses: []
50
-
51
40
  post_install_message:
52
41
  rdoc_options: []
53
-
54
- require_paths:
42
+ require_paths:
55
43
  - lib
56
- required_ruby_version: !ruby/object:Gem::Requirement
44
+ required_ruby_version: !ruby/object:Gem::Requirement
57
45
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
65
- required_rubygems_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ! '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
51
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
74
56
  requirements: []
75
-
76
57
  rubyforge_project:
77
- rubygems_version: 1.5.3
58
+ rubygems_version: 1.8.25
78
59
  signing_key:
79
60
  specification_version: 3
80
61
  summary: A simple library to interface with the API for btc-e.com in Ruby.
81
62
  test_files: []
82
-
63
+ has_rdoc: