From 228d8e28ed6bbbe74d0985db93b5b6d119225a27 Mon Sep 17 00:00:00 2001 From: Julien 'Lta' BALLET Date: Sat, 13 Apr 2013 14:03:32 +0200 Subject: [PATCH 1/2] Updates mt.gox api base_url --- bin/btc | 0 lib/mtgox/connection.rb | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 bin/btc diff --git a/bin/btc b/bin/btc old mode 100644 new mode 100755 diff --git a/lib/mtgox/connection.rb b/lib/mtgox/connection.rb index 6e15927..9925cc1 100644 --- a/lib/mtgox/connection.rb +++ b/lib/mtgox/connection.rb @@ -15,7 +15,7 @@ def connection accept: 'application/json', user_agent: "mtgox gem #{MtGox::Version}", }, - url: 'https://mtgox.com', + url: 'https://data.mtgox.com', } Faraday.new(options) do |connection| From 3e56056eea65a0195ad7e3ea0658fc12f0371bac Mon Sep 17 00:00:00 2001 From: Julien 'Lta' BALLET Date: Sat, 13 Apr 2013 14:12:47 +0200 Subject: [PATCH 2/2] Updates the URL is rspect test as well --- spec/helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/helper.rb b/spec/helper.rb index 26a6ede..2573f06 100644 --- a/spec/helper.rb +++ b/spec/helper.rb @@ -15,19 +15,19 @@ WebMock.disable_net_connect!(:allow => 'coveralls.io') def a_get(path) - a_request(:get, 'https://mtgox.com' + path) + a_request(:get, 'https://data.mtgox.com' + path) end def stub_get(path) - stub_request(:get, 'https://mtgox.com' + path) + stub_request(:get, 'https://data.mtgox.com' + path) end def a_post(path) - a_request(:post, 'https://mtgox.com' + path) + a_request(:post, 'https://data.mtgox.com' + path) end def stub_post(path) - stub_request(:post, 'https://mtgox.com' + path) + stub_request(:post, 'https://data.mtgox.com' + path) end def fixture_path