Permalink
Browse files

point towards airbrake.io

  • Loading branch information...
1 parent e000eb9 commit 582dce92bc2fc283f822e4b90790003ac6199c3b @stuartchaney stuartchaney committed Oct 19, 2011
View
@@ -1,15 +1,15 @@
Airbrake
========
-This is the notifier gem for integrating apps with [Airbrake](http://airbrakeapp.com).
+This is the notifier gem for integrating apps with [Airbrake](http://airbrake.io).
When an uncaught exception occurs, Airbrake will POST the relevant data
to the Airbrake server specified in your environment.
Help
----
-For help with using Airbrake and this notifier visit [our support site](http://help.airbrakeapp.com)
+For help with using Airbrake and this notifier visit [our support site](http://help.airbrake.io)
For discussion of Airbrake development check out the [mailing list](http://groups.google.com/group/hoptoad-notifier-dev)
@@ -86,7 +86,7 @@ If it does, remove it. The new catcher is automatically included by the gem
version of Airbrake.
Before running the airbrake generator, you need to find your project's API key.
-Log in to your account at airbrakeapp.com, and click on the "Projects" button.
+Log in to your account at airbrake.io, and click on the "Projects" button.
Then, find your project in the list, and click on its name. In the left-hand
column, you'll see an "Edit this project" button. Click on that to get your
project's API key. If you accidentally use your personal API auth_token,
@@ -382,7 +382,7 @@ Supported Rails versions
See SUPPORTED_RAILS_VERSIONS for a list of official supported versions of
Rails.
-Please open up a support ticket ( http://help.airbrakeapp.com ) if
+Please open up a support ticket ( http://help.airbrake.io ) if
you're using a version of Rails that is listed above and the notifier is
not working properly.
View
@@ -27,8 +27,8 @@ Gem::Specification.new do |s|
s.add_development_dependency("capistrano", "~> 2.8.0")
s.authors = ["thoughtbot, inc"]
- s.email = %q{support@airbrakeapp.com}
- s.homepage = "http://www.airbrakeapp.com"
+ s.email = %q{support@airbrake.io}
+ s.homepage = "http://www.airbrake.io"
s.platform = Gem::Platform::RUBY
end
@@ -19,7 +19,7 @@ Feature: Install the Gem in a Rails application and enable the JavaScript notifi
And I perform a request to "http://example.com:123/test/index"
Then I should see the notifier JavaScript for the following:
| api_key | environment | host |
- | myapikey | production | airbrakeapp.com |
+ | myapikey | production | airbrake.io |
And the notifier JavaScript should provide the following errorDefaults:
| url | component | action |
| http://example.com:123/test/index | test | index |
@@ -1,13 +1,13 @@
require 'sham_rack'
-ShamRack.at("airbrakeapp.com") do |env|
+ShamRack.at("airbrake.io") do |env|
xml = env['rack.input'].read
puts "Recieved the following exception:\n#{xml}"
response = <<-end_xml
<?xml version="1.0" encoding="UTF-8"?>
<notice>
<error-id type="integer">3799307</error-id>
- <url>http://sample.airbrakeapp.com/errors/3799307/notices/643732254</url>
+ <url>http://sample.airbrake.io/errors/3799307/notices/643732254</url>
<id type="integer">643732254</id>
</notice>
end_xml
@@ -363,7 +363,7 @@ def rails_non_initializer_airbrake_config_file
Then /^I should see the notifier JavaScript for the following:$/ do |table|
hash = table.hashes.first
- host = hash['host'] || 'airbrakeapp.com'
+ host = hash['host'] || 'airbrake.io'
secure = hash['secure'] || false
api_key = hash['api_key']
environment = hash['environment'] || 'production'
@@ -1,13 +1,13 @@
require 'sham_rack'
-ShamRack.at("airbrakeapp.com") do |env|
+ShamRack.at("airbrake.io") do |env|
xml = env['rack.input'].read
puts "Recieved the following exception:\n#{xml}"
response = <<-end_xml
<?xml version="1.0" encoding="UTF-8"?>
<notice>
<error-id type="integer">3799307</error-id>
- <url>http://sample.airbrakeapp.com/errors/3799307/notices/643732254</url>
+ <url>http://sample.airbrake.io/errors/3799307/notices/643732254</url>
<id type="integer">643732254</id>
</notice>
end_xml
@@ -13,7 +13,7 @@ class Configuration
# The API key for your project, found on the project edit form.
attr_accessor :api_key
- # The host to connect to (defaults to airbrakeapp.com).
+ # The host to connect to (defaults to airbrake.io).
attr_accessor :host
# The port on which your Airbrake server runs (defaults to 443 for secure
@@ -123,7 +123,7 @@ class Configuration
def initialize
@secure = false
- @host = 'airbrakeapp.com'
+ @host = 'airbrake.io'
@http_open_timeout = 2
@http_read_timeout = 5
@params_filters = DEFAULT_PARAMS_FILTERS.dup
@@ -135,7 +135,7 @@ def initialize
@development_lookup = true
@notifier_name = 'Airbrake Notifier'
@notifier_version = VERSION
- @notifier_url = 'http://airbrakeapp.com'
+ @notifier_url = 'http://airbrake.io'
@framework = 'Standalone'
@user_information = 'Airbrake Error {{error_id}}'
@rescue_rake_exceptions = nil
@@ -21,7 +21,7 @@
heroku_api_key = `heroku console 'puts ENV[%{HOPTOAD_API_KEY}]' | head -n 1`.strip
heroku_rails_env = `heroku console 'puts RAILS_ENV' | head -n 1`.strip
- command = %Q(heroku addons:add deployhooks:http url="http://airbrakeapp.com/deploys.txt?deploy[rails_env]=#{heroku_rails_env}&api_key=#{heroku_api_key}")
+ command = %Q(heroku addons:add deployhooks:http url="http://airbrake.io/deploys.txt?deploy[rails_env]=#{heroku_rails_env}&api_key=#{heroku_api_key}")
puts "\nRunning:\n#{command}\n"
puts `#{command}`
View
@@ -29,7 +29,7 @@ def self.deploy(opts = {})
Airbrake.configuration.api_key}
opts.each {|k,v| params["deploy[#{k}]"] = v }
- host = Airbrake.configuration.host || 'airbrakeapp.com'
+ host = Airbrake.configuration.host || 'airbrake.io'
port = Airbrake.configuration.port || (Airbrake.configuration.secure ? 443 : 80)
proxy = Net::HTTP.Proxy(Airbrake.configuration.proxy_host,
View
@@ -76,7 +76,7 @@ window.onload = function() {
<style type="text/css">
#airbrake {
- background: #FFF url(http://airbrakeapp.com/images/fell-off-the-toad.gif) no-repeat top right;
+ background: #FFF url(http://airbrake.io/images/fell-off-the-toad.gif) no-repeat top right;
color: #F00;
padding: 45px 101px 45px 12px;
font-size: 14px;
@@ -14,7 +14,7 @@
fail "Please supply an API Key as the first argument" if ARGV.empty?
host = ARGV[1]
-host ||= "airbrakeapp.com"
+host ||= "airbrake.io"
secure = (ARGV[2] == "secure")
@@ -72,8 +72,8 @@ def unsuccessful_response(body = "")
@output = AirbrakeTasks.deploy(@options)
end
- before_should "post to http://airbrakeapp.com:80/deploys.txt" do
- @http_proxy_class.expects(:new).with("airbrakeapp.com", 80).returns(@http_proxy)
+ before_should "post to http://airbrake.io:80/deploys.txt" do
+ @http_proxy_class.expects(:new).with("airbrake.io", 80).returns(@http_proxy)
@post.expects(:set_form_data).with(kind_of(Hash))
@http_proxy.expects(:request).with(any_parameters).returns(successful_response)
end
@@ -14,9 +14,9 @@ class ConfigurationTest < Test::Unit::TestCase
assert_config_default :logger, nil
assert_config_default :notifier_version, Airbrake::VERSION
assert_config_default :notifier_name, 'Airbrake Notifier'
- assert_config_default :notifier_url, 'http://airbrakeapp.com'
+ assert_config_default :notifier_url, 'http://airbrake.io'
assert_config_default :secure, false
- assert_config_default :host, 'airbrakeapp.com'
+ assert_config_default :host, 'airbrake.io'
assert_config_default :http_open_timeout, 2
assert_config_default :http_read_timeout, 5
assert_config_default :ignore_by_filters, []
View
@@ -39,7 +39,7 @@ def stub_http(options = {})
proxy = stub(:new => http)
Net::HTTP.stubs(:Proxy => proxy)
- url = "http://airbrakeapp.com:80#{Airbrake::Sender::NOTICES_URI}"
+ url = "http://airbrake.io:80#{Airbrake::Sender::NOTICES_URI}"
uri = URI.parse(url)
proxy_host = 'some.host'
@@ -98,7 +98,7 @@ def stub_http(options = {})
should "post to the right url for non-ssl" do
http = stub_http
- url = "http://airbrakeapp.com:80#{Airbrake::Sender::NOTICES_URI}"
+ url = "http://airbrake.io:80#{Airbrake::Sender::NOTICES_URI}"
uri = URI.parse(url)
send_exception(:secure => false)
assert_received(http, :post) {|expect| expect.with(uri.path, anything, Airbrake::HEADERS) }
@@ -111,7 +111,7 @@ def stub_http(options = {})
end
should "verify the SSL peer when the use_ssl option is set to true" do
- url = "https://airbrakeapp.com#{Airbrake::Sender::NOTICES_URI}"
+ url = "https://airbrake.io#{Airbrake::Sender::NOTICES_URI}"
uri = URI.parse(url)
real_http = Net::HTTP.new(uri.host, uri.port)
@@ -127,7 +127,7 @@ def stub_http(options = {})
end
should "verify the SSL peer when the use_ssl option is set to true and the default cert exists" do
- url = "https://airbrakeapp.com#{Airbrake::Sender::NOTICES_URI}"
+ url = "https://airbrake.io#{Airbrake::Sender::NOTICES_URI}"
uri = URI.parse(url)
real_http = Net::HTTP.new(uri.host, uri.port)
@@ -169,13 +169,13 @@ def stub_http(options = {})
should "connect to the right port for ssl" do
stub_http
send_exception(:secure => true)
- assert_received(Net::HTTP, :new) {|expect| expect.with("airbrakeapp.com", 443) }
+ assert_received(Net::HTTP, :new) {|expect| expect.with("airbrake.io", 443) }
end
should "connect to the right port for non-ssl" do
stub_http
send_exception(:secure => false)
- assert_received(Net::HTTP, :new) {|expect| expect.with("airbrakeapp.com", 80) }
+ assert_received(Net::HTTP, :new) {|expect| expect.with("airbrake.io", 80) }
end
should "use ssl if secure" do

3 comments on commit 582dce9

Contributor

thbar commented on 582dce9 Oct 25, 2011

As I'm migrating a client, I wonder: is this airbrake.io the final domain to be used? Thanks!

Contributor

stuartchaney replied Oct 25, 2011

Hey Thibaut,

Yes, airbrake.io is going to be our final domain. airbrakeapp.com will be redirecting to airbrake.io from next week.

The gem will be updated shortly to reflect this but will continue to be backwards compatible.

Cheers

Contributor

thbar replied Oct 25, 2011

Hey Stuart,

thanks for the reply! Appreciated.

-- Thibaut

Please sign in to comment.