Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

s/Hoptoad/Airbrake/gi

  • Loading branch information...
commit e9abeefb8b5cd573c6bd0902e4775a32cab2c8b8 1 parent 99a2ab6
@bgreenlee bgreenlee authored
View
32 README.md
@@ -1,57 +1,57 @@
-Hoptoad API
+Airbrake API
===========
-A ruby wrapper for the [Hoptoad API](http://hoptoadapp.com/pages/api)
+A ruby wrapper for the [Airbrake API](http://airbrakeapp.com/pages/api)
Usage
-----
The first thing you need to set is the account name. This is the same as the web address for your account.
- Hoptoad.account = 'myaccount'
+ Airbrake.account = 'myaccount'
Then, you should set the authentication token.
- Hoptoad.auth_token = 'abcdefg'
+ Airbrake.auth_token = 'abcdefg'
If your account uses ssl then turn it on:
- Hoptoad.secure = true
+ Airbrake.secure = true
Optionally, you can configure through a single method:
- Hoptoad.configure(:account => 'anapp', :auth_token => 'abcdefg', :secure => true)
+ Airbrake.configure(:account => 'anapp', :auth_token => 'abcdefg', :secure => true)
-Once you've configured authentication, you can make calls against the API. If no token or authentication is given, a HoptoadError exception will be raised.
+Once you've configured authentication, you can make calls against the API. If no token or authentication is given, a AirbrakeError exception will be raised.
Finding Errors
--------------
Errors are paginated, the API responds with 25 at a time, pass an optional params hash for additional pages:
- Hoptoad::Error.find(:all)
- Hoptoad::Error.find(:all, :page => 2)
+ Airbrake::Error.find(:all)
+ Airbrake::Error.find(:all, :page => 2)
To find an individual error, you can find by ID:
- Hoptoad::Error.find(error_id)
+ Airbrake::Error.find(error_id)
Find *all* notices of an error:
- Hoptoad::Notice.find_all_by_error_id(error_id)
+ Airbrake::Notice.find_all_by_error_id(error_id)
Find an individual notice:
- Hoptoad::Notice.find(notice_id, error_id)
+ Airbrake::Notice.find(notice_id, error_id)
To resolve an error via the API:
- Hoptoad::Error.update(1696170, :group => { :resolved => true})
+ Airbrake::Error.update(1696170, :group => { :resolved => true})
Recreate an error:
STDOUT.sync = true
- Hoptoad::Notice.find_all_by_error_id(error_id) do |batch|
+ Airbrake::Notice.find_all_by_error_id(error_id) do |batch|
batch.each do |notice|
result = system "curl --silent '#{notice.request.url}' > /dev/null"
print (result ? '.' : 'F')
@@ -63,12 +63,12 @@ Projects
To retrieve a list of projects:
- Hoptoad::Project.find(:all)
+ Airbrake::Project.find(:all)
Responses
---------
-If an error is returned from the API. A HoptoadError will be raised. Successful responses will return a Hashie::Mash object based on the data from the response.
+If an error is returned from the API. A AirbrakeError will be raised. Successful responses will return a Hashie::Mash object based on the data from the response.
Contributors
View
12 hoptoad-api.gemspec → airbrake-api.gemspec
@@ -1,18 +1,18 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require "hoptoad-api/version"
+require "airbrake-api/version"
Gem::Specification.new do |s|
- s.name = 'hoptoad-api'
- s.version = Hoptoad::VERSION
+ s.name = 'airbrake-api'
+ s.version = Airbrake::VERSION
s.platform = Gem::Platform::RUBY
- s.summary = "A ruby wrapper for the Hoptoad API"
- s.description = "A ruby wrapper for the Hoptoad API"
+ s.summary = "A ruby wrapper for the Airbrake API"
+ s.description = "A ruby wrapper for the Airbrake API"
s.authors = ['Steve Agalloco']
s.email = ['steve.agalloco@gmail.com']
- s.homepage = 'http://github.com/spagalloco/hoptoad-api'
+ s.homepage = 'http://github.com/spagalloco/hoptoad-api' # FIXME: change to airbrake-api when repo has been renamed
s.add_dependency(%q<httparty>, [">= 0.5.2"])
s.add_dependency(%q<hashie>, [">= 0.2.0"])
View
16 lib/hoptoad-api.rb → lib/airbrake-api.rb
@@ -1,11 +1,11 @@
require 'hashie'
require 'httparty'
-module Hoptoad
+module Airbrake
extend self
attr_accessor :account, :auth_token, :secure
- class HoptoadError < StandardError; end
+ class AirbrakeError < StandardError; end
def configure(options={})
@account = options[:account] if options.has_key?(:account)
@@ -14,7 +14,7 @@ def configure(options={})
end
def account_path
- "#{protocol}://#{@account}.hoptoadapp.com"
+ "#{protocol}://#{@account}.airbrakeapp.com"
end
def protocol
@@ -23,8 +23,8 @@ def protocol
end
-require 'hoptoad-api/core_extensions'
-require 'hoptoad-api/client'
-require 'hoptoad-api/error'
-require 'hoptoad-api/notice'
-require 'hoptoad-api/project'
+require 'airbrake-api/core_extensions'
+require 'airbrake-api/client'
+require 'airbrake-api/error'
+require 'airbrake-api/notice'
+require 'airbrake-api/project'
View
41 lib/airbrake-api/client.rb
@@ -0,0 +1,41 @@
+module Airbrake
+ class Base
+ include HTTParty
+ format :xml
+
+ private
+
+ def self.setup
+ base_uri Airbrake.account_path
+ default_params :auth_token => Airbrake.auth_token
+
+ check_configuration
+ end
+
+ def self.check_configuration
+ raise AirbrakeError.new('API Token cannot be nil') if default_options.nil? || default_options[:default_params].nil? || !default_options[:default_params].has_key?(:auth_token)
+ raise AirbrakeError.new('Account cannot be nil') unless default_options.has_key?(:base_uri)
+ end
+
+ def self.fetch(path, options)
+ response = get(path, { :query => options })
+ if response.code == 403
+ raise AirbrakeError.new('SSL should be enabled - use Airbrake.secure = true in configuration')
+ end
+
+ Hashie::Mash.new(response)
+ end
+
+ end
+end
+
+# airbrake sometimes returns broken xml with strange utmz stuff
+# so we remove this
+require 'httparty/parser'
+class HTTParty::Parser
+ alias utmz_unaware_xml xml
+ def xml
+ body.gsub!(/<__utmz>.*?<\/__utmz>/m,'')
+ utmz_unaware_xml
+ end
+end
View
0  lib/hoptoad-api/core_extensions.rb → lib/airbrake-api/core_extensions.rb
File renamed without changes
View
14 lib/hoptoad-api/error.rb → lib/airbrake-api/error.rb
@@ -1,5 +1,5 @@
-module Hoptoad
- class Error < Hoptoad::Base
+module Airbrake
+ class Error < Airbrake::Base
def self.find(*args)
setup
@@ -10,11 +10,11 @@ def self.find(*args)
when :all
find_all(args)
else
- raise HoptoadError.new('Invalid argument')
+ raise AirbrakeError.new('Invalid argument')
end
- raise HoptoadError.new('No results found.') if results.nil?
- raise HoptoadError.new(results.errors.error) if results.errors
+ raise AirbrakeError.new('No results found.') if results.nil?
+ raise AirbrakeError.new(results.errors.error) if results.errors
results.group || results.groups
end
@@ -24,11 +24,11 @@ def self.update(error, options)
response = put(error_path(error), { :query => options })
if response.code == 403
- raise HoptoadError.new('SSL should be enabled - use Hoptoad.secure = true in configuration')
+ raise AirbrakeError.new('SSL should be enabled - use Airbrake.secure = true in configuration')
end
results = Hashie::Mash.new(response)
- raise HoptoadError.new(results.errors.error) if results.errors
+ raise AirbrakeError.new(results.errors.error) if results.errors
results.group
end
View
10 lib/hoptoad-api/notice.rb → lib/airbrake-api/notice.rb
@@ -1,7 +1,7 @@
require 'parallel'
-module Hoptoad
- class Notice < Hoptoad::Base
+module Airbrake
+ class Notice < Airbrake::Base
PER_PAGE = 30
PARALLEL_WORKERS = 10
@@ -11,7 +11,7 @@ def self.find(id, error_id, options={})
hash = fetch(find_path(id, error_id), options)
if hash.errors
- raise HoptoadError.new(results.errors.error)
+ raise AirbrakeError.new(results.errors.error)
end
hash.notice
@@ -27,7 +27,7 @@ def self.find_all_by_error_id(error_id, notice_options = {})
options[:page] = page
hash = fetch(all_path(error_id), options)
if hash.errors
- raise HoptoadError.new(results.errors.error)
+ raise AirbrakeError.new(results.errors.error)
end
batch = Parallel.map(hash.notices, :in_threads => PARALLEL_WORKERS) do |notice_stub|
@@ -47,7 +47,7 @@ def self.find_by_error_id(error_id, options={ 'page' => 1})
hash = fetch(all_path(error_id), options)
if hash.errors
- raise HoptoadError.new(results.errors.error)
+ raise AirbrakeError.new(results.errors.error)
end
hash.notices
View
6 lib/hoptoad-api/project.rb → lib/airbrake-api/project.rb
@@ -1,5 +1,5 @@
-module Hoptoad
- class Project < Hoptoad::Base
+module Airbrake
+ class Project < Airbrake::Base
def self.find(*args)
setup
@@ -7,7 +7,7 @@ def self.find(*args)
results = fetch(collection_path, options)
- raise HoptoadError.new(results.errors.error) if results.errors
+ raise AirbrakeError.new(results.errors.error) if results.errors
results.projects.project
end
View
2  lib/hoptoad-api/version.rb → lib/airbrake-api/version.rb
@@ -1,3 +1,3 @@
-module Hoptoad
+module Airbrake
VERSION = '2.5.0'
end
View
41 lib/hoptoad-api/client.rb
@@ -1,41 +0,0 @@
-module Hoptoad
- class Base
- include HTTParty
- format :xml
-
- private
-
- def self.setup
- base_uri Hoptoad.account_path
- default_params :auth_token => Hoptoad.auth_token
-
- check_configuration
- end
-
- def self.check_configuration
- raise HoptoadError.new('API Token cannot be nil') if default_options.nil? || default_options[:default_params].nil? || !default_options[:default_params].has_key?(:auth_token)
- raise HoptoadError.new('Account cannot be nil') unless default_options.has_key?(:base_uri)
- end
-
- def self.fetch(path, options)
- response = get(path, { :query => options })
- if response.code == 403
- raise HoptoadError.new('SSL should be enabled - use Hoptoad.secure = true in configuration')
- end
-
- Hashie::Mash.new(response)
- end
-
- end
-end
-
-# hoptoad sometimes returns broken xml with strange utmz stuff
-# so we remove this
-require 'httparty/parser'
-class HTTParty::Parser
- alias utmz_unaware_xml xml
- def xml
- body.gsub!(/<__utmz>.*?<\/__utmz>/m,'')
- utmz_unaware_xml
- end
-end
View
24 spec/hoptoad_api/error_spec.rb → spec/airbrake_api/error_spec.rb
@@ -1,51 +1,51 @@
require 'spec_helper'
-describe Hoptoad::Error do
+describe Airbrake::Error do
before(:all) do
- Hoptoad.account = 'myapp'
- Hoptoad.auth_token = 'abcdefg123456'
- Hoptoad.secure = false
+ Airbrake.account = 'myapp'
+ Airbrake.auth_token = 'abcdefg123456'
+ Airbrake.secure = false
end
it "should have correct collection path" do
- Hoptoad::Error.collection_path.should == "/errors.xml"
+ Airbrake::Error.collection_path.should == "/errors.xml"
end
it "should generate correct error path given an id" do
- Hoptoad::Error.error_path(1234).should == "/errors/1234.xml"
+ Airbrake::Error.error_path(1234).should == "/errors/1234.xml"
end
describe '.find' do
it "should find a page of the 30 most recent errors" do
- errors = Hoptoad::Error.find(:all)
+ errors = Airbrake::Error.find(:all)
ordered = errors.sort_by(&:most_recent_notice_at).reverse
ordered.should == errors
errors.size.should == 30
end
it "should paginate errors" do
- errors = Hoptoad::Error.find(:all, :page => 2)
+ errors = Airbrake::Error.find(:all, :page => 2)
ordered = errors.sort_by(&:most_recent_notice_at).reverse
ordered.should == errors
errors.size.should == 2
end
it "should find an individual error" do
- error = Hoptoad::Error.find(1696170)
+ error = Airbrake::Error.find(1696170)
error.action.should == 'index'
error.id.should == 1696170
end
it "should raise an error when not passed an id" do
lambda do
- Hoptoad::Error.find
- end.should raise_error(Hoptoad::HoptoadError)
+ Airbrake::Error.find
+ end.should raise_error(Airbrake::AirbrakeError)
end
end
describe '.update' do
it 'should update the status of an error' do
- error = Hoptoad::Error.update(1696170, :group => { :resolved => true})
+ error = Airbrake::Error.update(1696170, :group => { :resolved => true})
error.resolved.should be_true
end
end
View
20 spec/hoptoad_api/notice_spec.rb → spec/airbrake_api/notice_spec.rb
@@ -1,31 +1,31 @@
require 'spec_helper'
-describe Hoptoad::Notice do
+describe Airbrake::Notice do
before(:all) do
- Hoptoad.account = 'myapp'
- Hoptoad.auth_token = 'abcdefg123456'
- Hoptoad.secure = false
+ Airbrake.account = 'myapp'
+ Airbrake.auth_token = 'abcdefg123456'
+ Airbrake.secure = false
end
it "should find error notices" do
- notices = Hoptoad::Notice.find_by_error_id(1696170)
+ notices = Airbrake::Notice.find_by_error_id(1696170)
notices.size.should == 30
notices.first.id.should == 1234
end
it "should find all error notices" do
- notices = Hoptoad::Notice.find_all_by_error_id(1696170)
+ notices = Airbrake::Notice.find_all_by_error_id(1696170)
notices.size.should == 42
end
it "should find all error notices with a page limit" do
- notices = Hoptoad::Notice.find_all_by_error_id(1696171, :pages => 2)
+ notices = Airbrake::Notice.find_all_by_error_id(1696171, :pages => 2)
notices.size.should == 60
end
it "yields batches" do
batches = []
- notices = Hoptoad::Notice.find_all_by_error_id(1696171, :pages => 2) do |batch|
+ notices = Airbrake::Notice.find_all_by_error_id(1696171, :pages => 2) do |batch|
batches << batch
end
notices.size.should == 60
@@ -33,10 +33,10 @@
end
it "should find individual notices" do
- Hoptoad::Notice.find(1234, 1696170).should_not == nil
+ Airbrake::Notice.find(1234, 1696170).should_not == nil
end
it "should find a broken notices" do
- Hoptoad::Notice.find(666, 1696170).should_not == nil
+ Airbrake::Notice.find(666, 1696170).should_not == nil
end
end
View
21 spec/airbrake_api/project_spec.rb
@@ -0,0 +1,21 @@
+require 'spec_helper'
+
+describe Airbrake::Project do
+ before(:all) do
+ Airbrake.account = 'myapp'
+ Airbrake.auth_token = 'abcdefg123456'
+ Airbrake.secure = false
+ end
+
+ it "should have correct projects path" do
+ Airbrake::Project.collection_path.should == "/data_api/v1/projects.xml"
+ end
+
+ it "should find projects" do
+ projects = Airbrake::Project.find(:all)
+ projects.size.should == 4
+ projects.first.id.should == '1'
+ projects.first.name.should == 'Venkman'
+ end
+
+end
View
59 spec/airbrake_api_spec.rb
@@ -0,0 +1,59 @@
+require 'spec_helper'
+
+describe Airbrake do
+
+ context "configuration" do
+ before(:each) do
+ Airbrake.account = nil
+ Airbrake.auth_token = nil
+ Airbrake.secure = false
+ end
+
+ it "should allow setting of the account" do
+ Airbrake.account = 'myapp'
+ Airbrake.account.should == 'myapp'
+ Airbrake.account_path.should == 'http://myapp.airbrakeapp.com'
+ end
+
+ it "should allow setting of the auth token" do
+ Airbrake.auth_token = '123456'
+ Airbrake.auth_token.should == '123456'
+ end
+
+ it "should allow setting of ssl protocol" do
+ Airbrake.secure = true
+ Airbrake.protocol.should == 'https'
+ end
+
+ it "should default to standard http" do
+ Airbrake.protocol.should == 'http'
+ end
+
+ it "should should implement #configure" do
+ Airbrake.configure(:account => 'anapp', :auth_token => 'abcdefg', :secure => true)
+ Airbrake.protocol.should == 'https'
+ Airbrake.auth_token.should == 'abcdefg'
+ Airbrake.account.should == 'anapp'
+ Airbrake.account_path.should == 'https://anapp.airbrakeapp.com'
+ end
+ end
+
+ context "when using SSL" do
+ before(:each) do
+ Airbrake.configure(:account => 'sslapp', :auth_token => 'abcdefg123456', :secure => true)
+ end
+
+ it "should find an error if account is SSL enabled" do
+ error = Airbrake::Error.find(1696170)
+ error.id.should == 1696170
+ end
+
+ it "should raise an exception if trying to access SSL enabled account with unsecure connection" do
+ Airbrake.secure = false
+ lambda do
+ Airbrake::Error.find(1696170)
+ end.should raise_error(Airbrake::AirbrakeError)
+ end
+ end
+
+end
View
21 spec/hoptoad_api/project_spec.rb
@@ -1,21 +0,0 @@
-require 'spec_helper'
-
-describe Hoptoad::Project do
- before(:all) do
- Hoptoad.account = 'myapp'
- Hoptoad.auth_token = 'abcdefg123456'
- Hoptoad.secure = false
- end
-
- it "should have correct projects path" do
- Hoptoad::Project.collection_path.should == "/data_api/v1/projects.xml"
- end
-
- it "should find projects" do
- projects = Hoptoad::Project.find(:all)
- projects.size.should == 4
- projects.first.id.should == '1'
- projects.first.name.should == 'Venkman'
- end
-
-end
View
59 spec/hoptoad_api_spec.rb
@@ -1,59 +0,0 @@
-require 'spec_helper'
-
-describe Hoptoad do
-
- context "configuration" do
- before(:each) do
- Hoptoad.account = nil
- Hoptoad.auth_token = nil
- Hoptoad.secure = false
- end
-
- it "should allow setting of the account" do
- Hoptoad.account = 'myapp'
- Hoptoad.account.should == 'myapp'
- Hoptoad.account_path.should == 'http://myapp.hoptoadapp.com'
- end
-
- it "should allow setting of the auth token" do
- Hoptoad.auth_token = '123456'
- Hoptoad.auth_token.should == '123456'
- end
-
- it "should allow setting of ssl protocol" do
- Hoptoad.secure = true
- Hoptoad.protocol.should == 'https'
- end
-
- it "should default to standard http" do
- Hoptoad.protocol.should == 'http'
- end
-
- it "should should implement #configure" do
- Hoptoad.configure(:account => 'anapp', :auth_token => 'abcdefg', :secure => true)
- Hoptoad.protocol.should == 'https'
- Hoptoad.auth_token.should == 'abcdefg'
- Hoptoad.account.should == 'anapp'
- Hoptoad.account_path.should == 'https://anapp.hoptoadapp.com'
- end
- end
-
- context "when using SSL" do
- before(:each) do
- Hoptoad.configure(:account => 'sslapp', :auth_token => 'abcdefg123456', :secure => true)
- end
-
- it "should find an error if account is SSL enabled" do
- error = Hoptoad::Error.find(1696170)
- error.id.should == 1696170
- end
-
- it "should raise an exception if trying to access SSL enabled account with unsecure connection" do
- Hoptoad.secure = false
- lambda do
- Hoptoad::Error.find(1696170)
- end.should raise_error(Hoptoad::HoptoadError)
- end
- end
-
-end
View
40 spec/spec_helper.rb
@@ -1,10 +1,10 @@
require 'simplecov'
SimpleCov.start do
- add_group 'Hoptoad API', 'lib/hoptoad-api'
+ add_group 'Airbrake API', 'lib/airbrake-api'
add_group 'Specs', 'spec'
end
-require File.expand_path('../../lib/hoptoad-api', __FILE__)
+require File.expand_path('../../lib/airbrake-api', __FILE__)
require 'rspec'
require 'fakeweb'
@@ -18,28 +18,28 @@ def fixture_request(verb, url, file)
end
# errors
-fixture_request :get, 'http://myapp.hoptoadapp.com/errors.xml?auth_token=abcdefg123456', 'errors.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors.xml?auth_token=abcdefg123456&page=2", 'paginated_errors.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
-fixture_request :put, 'http://myapp.hoptoadapp.com/errors/1696170.xml?auth_token=abcdefg123456&group[resolved]=true', 'update_error.xml'
+fixture_request :get, 'http://myapp.airbrakeapp.com/errors.xml?auth_token=abcdefg123456', 'errors.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors.xml?auth_token=abcdefg123456&page=2", 'paginated_errors.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
+fixture_request :put, 'http://myapp.airbrakeapp.com/errors/1696170.xml?auth_token=abcdefg123456&group[resolved]=true', 'update_error.xml'
# notices
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696170/notices.xml?auth_token=abcdefg123456", 'notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696170/notices.xml?auth_token=abcdefg123456&page=1", 'notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696170/notices.xml?page=1&auth_token=abcdefg123456", 'notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696170/notices.xml?auth_token=abcdefg123456&page=2", 'paginated_notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696170/notices/1234.xml?auth_token=abcdefg123456", 'individual_notice.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696170/notices/666.xml?auth_token=abcdefg123456", 'broken_notice.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456", 'notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456&page=1", 'notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456&page=2", 'notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456&page=3", 'paginated_notices.xml'
-fixture_request :get, "http://myapp.hoptoadapp.com/errors/1696171/notices/1234.xml?auth_token=abcdefg123456", 'notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696170/notices.xml?auth_token=abcdefg123456", 'notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696170/notices.xml?auth_token=abcdefg123456&page=1", 'notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696170/notices.xml?page=1&auth_token=abcdefg123456", 'notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696170/notices.xml?auth_token=abcdefg123456&page=2", 'paginated_notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696170/notices/1234.xml?auth_token=abcdefg123456", 'individual_notice.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696170/notices/666.xml?auth_token=abcdefg123456", 'broken_notice.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456", 'notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456&page=1", 'notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456&page=2", 'notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696171/notices.xml?auth_token=abcdefg123456&page=3", 'paginated_notices.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/errors/1696171/notices/1234.xml?auth_token=abcdefg123456", 'notices.xml'
# projects
-fixture_request :get, "http://myapp.hoptoadapp.com/data_api/v1/projects.xml?auth_token=abcdefg123456", 'projects.xml'
+fixture_request :get, "http://myapp.airbrakeapp.com/data_api/v1/projects.xml?auth_token=abcdefg123456", 'projects.xml'
# ssl responses
-fixture_request :get, "https://sslapp.hoptoadapp.com/errors/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
-FakeWeb.register_uri(:get, "http://sslapp.hoptoadapp.com/errors/1696170.xml?auth_token=abcdefg123456", DEFAULTS.merge(:body => " ", :status => ["403", "Forbidden"]))
+fixture_request :get, "https://sslapp.airbrakeapp.com/errors/1696170.xml?auth_token=abcdefg123456", 'individual_error.xml'
+FakeWeb.register_uri(:get, "http://sslapp.airbrakeapp.com/errors/1696170.xml?auth_token=abcdefg123456", DEFAULTS.merge(:body => " ", :status => ["403", "Forbidden"]))
Please sign in to comment.
Something went wrong with that request. Please try again.