Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates mt.gox api base_url #27

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Empty file modified bin/btc 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion lib/mtgox/connection.rb
Expand Up @@ -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|
Expand Down
8 changes: 4 additions & 4 deletions spec/helper.rb
Expand Up @@ -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
Expand Down