mtgox 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/README.md +10 -3
- data/bin/btc +5 -0
- data/lib/faraday/response/raise_mtgox_error.rb +4 -0
- data/lib/mtgox/ask.rb +8 -3
- data/lib/mtgox/bid.rb +8 -3
- data/lib/mtgox/client.rb +73 -41
- data/lib/mtgox/connection.rb +1 -1
- data/lib/mtgox/error.rb +2 -1
- data/lib/mtgox/offer.rb +1 -1
- data/lib/mtgox/order.rb +2 -2
- data/lib/mtgox/request.rb +5 -1
- data/lib/mtgox/ticker.rb +1 -1
- data/lib/mtgox/value.rb +53 -0
- data/lib/mtgox/version.rb +2 -2
- data/mtgox.gemspec +2 -0
- data/spec/faraday/response_spec.rb +30 -7
- data/spec/fixtures/address.json +6 -1
- data/spec/fixtures/buy.json +1 -1
- data/spec/fixtures/cancel.json +7 -1
- data/spec/fixtures/depth.json +6785 -1
- data/spec/fixtures/error.json +5 -1
- data/spec/fixtures/info.json +94 -0
- data/spec/fixtures/orders.json +67 -1
- data/spec/fixtures/sell.json +1 -1
- data/spec/fixtures/ticker.json +23 -1
- data/spec/fixtures/trades.json +56 -1
- data/spec/fixtures/unknown_error.json +4 -0
- data/spec/fixtures/withdraw.json +6 -1
- data/spec/helper.rb +15 -10
- data/spec/mtgox/client_spec.rb +86 -95
- metadata +97 -105
- metadata.gz.sig +0 -0
- data/spec/fixtures/balance.json +0 -1
metadata
CHANGED
@@ -1,110 +1,112 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtgox
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.9.0
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 8
|
9
|
-
- 2
|
10
|
-
version: 0.8.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
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 2013-04-15 00:00:00.000000000 Z
|
40
|
+
dependencies:
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday
|
43
|
-
|
44
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
45
44
|
none: false
|
46
|
-
requirements:
|
45
|
+
requirements:
|
47
46
|
- - ~>
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
|
50
|
-
segments:
|
51
|
-
- 0
|
52
|
-
- 8
|
53
|
-
version: "0.8"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0.8'
|
54
49
|
- - <
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
- 10
|
60
|
-
version: "0.10"
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0.10'
|
61
52
|
type: :runtime
|
62
|
-
version_requirements: *id001
|
63
|
-
- !ruby/object:Gem::Dependency
|
64
|
-
name: multi_json
|
65
53
|
prerelease: false
|
66
|
-
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
55
|
none: false
|
68
|
-
requirements:
|
56
|
+
requirements:
|
69
57
|
- - ~>
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.8'
|
60
|
+
- - <
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.10'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: multi_json
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
67
|
+
requirements:
|
68
|
+
- - ~>
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.0'
|
76
71
|
type: :runtime
|
77
|
-
version_requirements: *id002
|
78
|
-
- !ruby/object:Gem::Dependency
|
79
|
-
name: bundler
|
80
72
|
prerelease: false
|
81
|
-
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
74
|
none: false
|
83
|
-
requirements:
|
75
|
+
requirements:
|
84
76
|
- - ~>
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '1.0'
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: bundler
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
82
|
+
none: false
|
83
|
+
requirements:
|
84
|
+
- - ~>
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '1.0'
|
91
87
|
type: :development
|
92
|
-
|
93
|
-
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: '1.0'
|
95
|
+
description: Ruby wrapper for the Mt. Gox Trade API. Mt. Gox allows you to trade US
|
96
|
+
Dollars (USD) for Bitcoins (BTC) or Bitcoins for US Dollars.
|
94
97
|
email: sferik@gmail.com
|
95
|
-
executables:
|
96
|
-
|
98
|
+
executables:
|
99
|
+
- btc
|
97
100
|
extensions: []
|
98
|
-
|
99
101
|
extra_rdoc_files: []
|
100
|
-
|
101
|
-
files:
|
102
|
+
files:
|
102
103
|
- .yardopts
|
103
104
|
- CONTRIBUTING.md
|
104
105
|
- LICENSE.md
|
105
106
|
- README.md
|
106
107
|
- Rakefile
|
107
108
|
- mtgox.gemspec
|
109
|
+
- bin/btc
|
108
110
|
- lib/faraday/response/raise_mtgox_error.rb
|
109
111
|
- lib/mtgox/ask.rb
|
110
112
|
- lib/mtgox/balance.rb
|
@@ -124,74 +126,64 @@ files:
|
|
124
126
|
- lib/mtgox/sell.rb
|
125
127
|
- lib/mtgox/ticker.rb
|
126
128
|
- lib/mtgox/trade.rb
|
129
|
+
- lib/mtgox/value.rb
|
127
130
|
- lib/mtgox/version.rb
|
128
131
|
- lib/mtgox.rb
|
129
132
|
- spec/faraday/response_spec.rb
|
130
133
|
- spec/fixtures/address.json
|
131
|
-
- spec/fixtures/balance.json
|
132
134
|
- spec/fixtures/buy.json
|
133
135
|
- spec/fixtures/cancel.json
|
134
136
|
- spec/fixtures/depth.json
|
135
137
|
- spec/fixtures/error.json
|
138
|
+
- spec/fixtures/info.json
|
136
139
|
- spec/fixtures/mysql_error
|
137
140
|
- spec/fixtures/orders.json
|
138
141
|
- spec/fixtures/sell.json
|
139
142
|
- spec/fixtures/ticker.json
|
140
143
|
- spec/fixtures/trades.json
|
144
|
+
- spec/fixtures/unknown_error.json
|
141
145
|
- spec/fixtures/withdraw.json
|
142
146
|
- spec/helper.rb
|
143
147
|
- spec/mtgox/client_spec.rb
|
144
148
|
- spec/mtgox_spec.rb
|
145
149
|
homepage: https://github.com/sferik/mtgox
|
146
150
|
licenses: []
|
147
|
-
|
148
151
|
post_install_message:
|
149
152
|
rdoc_options: []
|
150
|
-
|
151
|
-
require_paths:
|
153
|
+
require_paths:
|
152
154
|
- lib
|
153
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
154
156
|
none: false
|
155
|
-
requirements:
|
156
|
-
- -
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
hash: 55
|
159
|
-
segments:
|
160
|
-
- 1
|
161
|
-
- 9
|
162
|
-
- 2
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
163
160
|
version: 1.9.2
|
164
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
162
|
none: false
|
166
|
-
requirements:
|
167
|
-
- -
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
hash: 23
|
170
|
-
segments:
|
171
|
-
- 1
|
172
|
-
- 3
|
173
|
-
- 6
|
163
|
+
requirements:
|
164
|
+
- - ! '>='
|
165
|
+
- !ruby/object:Gem::Version
|
174
166
|
version: 1.3.6
|
175
167
|
requirements: []
|
176
|
-
|
177
168
|
rubyforge_project:
|
178
|
-
rubygems_version: 1.8.
|
169
|
+
rubygems_version: 1.8.23
|
179
170
|
signing_key:
|
180
171
|
specification_version: 3
|
181
172
|
summary: Ruby wrapper for the Mt. Gox Trade API
|
182
|
-
test_files:
|
173
|
+
test_files:
|
183
174
|
- spec/faraday/response_spec.rb
|
184
175
|
- spec/fixtures/address.json
|
185
|
-
- spec/fixtures/balance.json
|
186
176
|
- spec/fixtures/buy.json
|
187
177
|
- spec/fixtures/cancel.json
|
188
178
|
- spec/fixtures/depth.json
|
189
179
|
- spec/fixtures/error.json
|
180
|
+
- spec/fixtures/info.json
|
190
181
|
- spec/fixtures/mysql_error
|
191
182
|
- spec/fixtures/orders.json
|
192
183
|
- spec/fixtures/sell.json
|
193
184
|
- spec/fixtures/ticker.json
|
194
185
|
- spec/fixtures/trades.json
|
186
|
+
- spec/fixtures/unknown_error.json
|
195
187
|
- spec/fixtures/withdraw.json
|
196
188
|
- spec/helper.rb
|
197
189
|
- spec/mtgox/client_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/spec/fixtures/balance.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"usds":3.7,"btcs":22}
|