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 CHANGED
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - rbx-19mode
4
+ - jruby-19mode
3
5
  - 1.9.2
4
6
  - 1.9.3
5
- - jruby-19mode
6
- - rbx-19mode
7
+ - ruby-head
@@ -21,7 +21,7 @@ module MtGox
21
21
  }
22
22
 
23
23
  Faraday.new(options) do |connection|
24
- connection.use Faraday::Request::UrlEncoded
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
@@ -8,12 +8,12 @@ module MtGox
8
8
 
9
9
  # @return [Integer]
10
10
  def self.minor
11
- 7
11
+ 8
12
12
  end
13
13
 
14
14
  # @return [Integer]
15
15
  def self.patch
16
- 5
16
+ 0
17
17
  end
18
18
 
19
19
  # @return [String, NilClass]
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.7'
5
+ gem.add_dependency 'faraday', '~> 0.8'
6
6
  gem.add_dependency 'faraday_middleware', '~> 0.8'
7
- gem.add_dependency 'multi_json', '~> 1.0'
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),
@@ -22,7 +22,7 @@ describe MtGox::Client do
22
22
  address.should == '171dH9Uum6wWLSwH2g8g2yto6SG7NEGyXG'
23
23
  end
24
24
  end
25
-
25
+
26
26
  describe '#ticker' do
27
27
  before do
28
28
  stub_get('/api/0/data/ticker.php').
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.7.5
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-18 00:00:00.000000000 Z
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.7'
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.7'
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.0'
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.0'
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.22
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