mtgox 0.7.5 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -2
- data/lib/mtgox/connection.rb +1 -1
- data/lib/mtgox/version.rb +2 -2
- data/mtgox.gemspec +2 -2
- data/spec/helper.rb +0 -10
- data/spec/mtgox/client_spec.rb +1 -1
- metadata +7 -10
data/.travis.yml
CHANGED
data/lib/mtgox/connection.rb
CHANGED
@@ -21,7 +21,7 @@ module MtGox
|
|
21
21
|
}
|
22
22
|
|
23
23
|
Faraday.new(options) do |connection|
|
24
|
-
connection.
|
24
|
+
connection.request :url_encoded
|
25
25
|
connection.use Faraday::Response::RaiseError
|
26
26
|
connection.use FaradayMiddleware::ParseJson
|
27
27
|
connection.use Faraday::Response::RaiseMtGoxError
|
data/lib/mtgox/version.rb
CHANGED
data/mtgox.gemspec
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
require File.expand_path('../lib/mtgox/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.add_dependency 'faraday', '~> 0.
|
5
|
+
gem.add_dependency 'faraday', '~> 0.8'
|
6
6
|
gem.add_dependency 'faraday_middleware', '~> 0.8'
|
7
|
-
gem.add_dependency 'multi_json', '~> 1.
|
7
|
+
gem.add_dependency 'multi_json', '~> 1.3'
|
8
8
|
gem.add_development_dependency 'json'
|
9
9
|
gem.add_development_dependency 'maruku'
|
10
10
|
gem.add_development_dependency 'rake'
|
data/spec/helper.rb
CHANGED
@@ -41,16 +41,6 @@ module MtGox
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def test_headers(body=test_body)
|
44
|
-
signed_headers(body).merge!(
|
45
|
-
{
|
46
|
-
'Accept' => 'application/json',
|
47
|
-
'Content-Type' => 'application/x-www-form-urlencoded',
|
48
|
-
'User-Agent' => "mtgox gem #{MtGox::Version}",
|
49
|
-
}
|
50
|
-
)
|
51
|
-
end
|
52
|
-
|
53
|
-
def signed_headers(body)
|
54
44
|
signature = Base64.strict_encode64(
|
55
45
|
OpenSSL::HMAC.digest 'sha512',
|
56
46
|
Base64.decode64(MtGox.secret),
|
data/spec/mtgox/client_spec.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtgox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
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: 2012-04-
|
12
|
+
date: 2012-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: faraday
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '0.
|
21
|
+
version: '0.8'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.8'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: faraday_middleware
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '1.
|
53
|
+
version: '1.3'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,7 +58,7 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
61
|
+
version: '1.3'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
63
|
name: json
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -242,12 +242,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
242
|
- - ! '>='
|
243
243
|
- !ruby/object:Gem::Version
|
244
244
|
version: '0'
|
245
|
-
segments:
|
246
|
-
- 0
|
247
|
-
hash: -2013939714582986448
|
248
245
|
requirements: []
|
249
246
|
rubyforge_project:
|
250
|
-
rubygems_version: 1.8.
|
247
|
+
rubygems_version: 1.8.23
|
251
248
|
signing_key:
|
252
249
|
specification_version: 3
|
253
250
|
summary: Ruby wrapper for the Mt. Gox Trade API
|