Skip to content

Commit

Permalink
point towards airbrake.io
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartchaney committed Oct 19, 2011
1 parent e000eb9 commit 582dce9
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions README.md
@@ -1,15 +1,15 @@
Airbrake 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 When an uncaught exception occurs, Airbrake will POST the relevant data
to the Airbrake server specified in your environment. to the Airbrake server specified in your environment.


Help 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) For discussion of Airbrake development check out the [mailing list](http://groups.google.com/group/hoptoad-notifier-dev)


Expand Down Expand Up @@ -86,7 +86,7 @@ If it does, remove it. The new catcher is automatically included by the gem
version of Airbrake. version of Airbrake.


Before running the airbrake generator, you need to find your project's API key. 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 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 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, project's API key. If you accidentally use your personal API auth_token,
Expand Down Expand Up @@ -382,7 +382,7 @@ Supported Rails versions
See SUPPORTED_RAILS_VERSIONS for a list of official supported versions of See SUPPORTED_RAILS_VERSIONS for a list of official supported versions of
Rails. 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 you're using a version of Rails that is listed above and the notifier is
not working properly. not working properly.


Expand Down
4 changes: 2 additions & 2 deletions airbrake.gemspec
Expand Up @@ -27,8 +27,8 @@ Gem::Specification.new do |s|
s.add_development_dependency("capistrano", "~> 2.8.0") s.add_development_dependency("capistrano", "~> 2.8.0")


s.authors = ["thoughtbot, inc"] s.authors = ["thoughtbot, inc"]
s.email = %q{support@airbrakeapp.com} s.email = %q{support@airbrake.io}
s.homepage = "http://www.airbrakeapp.com" s.homepage = "http://www.airbrake.io"


s.platform = Gem::Platform::RUBY s.platform = Gem::Platform::RUBY
end end
2 changes: 1 addition & 1 deletion features/rails_with_js_notifier.feature
Expand Up @@ -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" And I perform a request to "http://example.com:123/test/index"
Then I should see the notifier JavaScript for the following: Then I should see the notifier JavaScript for the following:
| api_key | environment | host | | api_key | environment | host |
| myapikey | production | airbrakeapp.com | | myapikey | production | airbrake.io |
And the notifier JavaScript should provide the following errorDefaults: And the notifier JavaScript should provide the following errorDefaults:
| url | component | action | | url | component | action |
| http://example.com:123/test/index | test | index | | http://example.com:123/test/index | test | index |
Expand Down
4 changes: 2 additions & 2 deletions features/step_definitions/airbrake_shim.rb.template
@@ -1,13 +1,13 @@
require 'sham_rack' require 'sham_rack'


ShamRack.at("airbrakeapp.com") do |env| ShamRack.at("airbrake.io") do |env|
xml = env['rack.input'].read xml = env['rack.input'].read
puts "Recieved the following exception:\n#{xml}" puts "Recieved the following exception:\n#{xml}"
response = <<-end_xml response = <<-end_xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<notice> <notice>
<error-id type="integer">3799307</error-id> <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> <id type="integer">643732254</id>
</notice> </notice>
end_xml end_xml
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions/rails_application_steps.rb
Expand Up @@ -363,7 +363,7 @@ def rails_non_initializer_airbrake_config_file


Then /^I should see the notifier JavaScript for the following:$/ do |table| Then /^I should see the notifier JavaScript for the following:$/ do |table|
hash = table.hashes.first hash = table.hashes.first
host = hash['host'] || 'airbrakeapp.com' host = hash['host'] || 'airbrake.io'
secure = hash['secure'] || false secure = hash['secure'] || false
api_key = hash['api_key'] api_key = hash['api_key']
environment = hash['environment'] || 'production' environment = hash['environment'] || 'production'
Expand Down
4 changes: 2 additions & 2 deletions features/support/airbrake_shim.rb.template
@@ -1,13 +1,13 @@
require 'sham_rack' require 'sham_rack'


ShamRack.at("airbrakeapp.com") do |env| ShamRack.at("airbrake.io") do |env|
xml = env['rack.input'].read xml = env['rack.input'].read
puts "Recieved the following exception:\n#{xml}" puts "Recieved the following exception:\n#{xml}"
response = <<-end_xml response = <<-end_xml
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<notice> <notice>
<error-id type="integer">3799307</error-id> <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> <id type="integer">643732254</id>
</notice> </notice>
end_xml end_xml
Expand Down
6 changes: 3 additions & 3 deletions lib/airbrake/configuration.rb
Expand Up @@ -13,7 +13,7 @@ class Configuration
# The API key for your project, found on the project edit form. # The API key for your project, found on the project edit form.
attr_accessor :api_key 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 attr_accessor :host


# The port on which your Airbrake server runs (defaults to 443 for secure # The port on which your Airbrake server runs (defaults to 443 for secure
Expand Down Expand Up @@ -123,7 +123,7 @@ class Configuration


def initialize def initialize
@secure = false @secure = false
@host = 'airbrakeapp.com' @host = 'airbrake.io'
@http_open_timeout = 2 @http_open_timeout = 2
@http_read_timeout = 5 @http_read_timeout = 5
@params_filters = DEFAULT_PARAMS_FILTERS.dup @params_filters = DEFAULT_PARAMS_FILTERS.dup
Expand All @@ -135,7 +135,7 @@ def initialize
@development_lookup = true @development_lookup = true
@notifier_name = 'Airbrake Notifier' @notifier_name = 'Airbrake Notifier'
@notifier_version = VERSION @notifier_version = VERSION
@notifier_url = 'http://airbrakeapp.com' @notifier_url = 'http://airbrake.io'
@framework = 'Standalone' @framework = 'Standalone'
@user_information = 'Airbrake Error {{error_id}}' @user_information = 'Airbrake Error {{error_id}}'
@rescue_rake_exceptions = nil @rescue_rake_exceptions = nil
Expand Down
2 changes: 1 addition & 1 deletion lib/airbrake/shared_tasks.rb
Expand Up @@ -21,7 +21,7 @@
heroku_api_key = `heroku console 'puts ENV[%{HOPTOAD_API_KEY}]' | head -n 1`.strip 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 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 "\nRunning:\n#{command}\n"
puts `#{command}` puts `#{command}`
Expand Down
2 changes: 1 addition & 1 deletion lib/airbrake_tasks.rb
Expand Up @@ -29,7 +29,7 @@ def self.deploy(opts = {})
Airbrake.configuration.api_key} Airbrake.configuration.api_key}
opts.each {|k,v| params["deploy[#{k}]"] = v } 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) port = Airbrake.configuration.port || (Airbrake.configuration.secure ? 443 : 80)


proxy = Net::HTTP.Proxy(Airbrake.configuration.proxy_host, proxy = Net::HTTP.Proxy(Airbrake.configuration.proxy_host,
Expand Down
2 changes: 1 addition & 1 deletion lib/templates/rescue.erb
Expand Up @@ -76,7 +76,7 @@ window.onload = function() {


<style type="text/css"> <style type="text/css">
#airbrake { #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; color: #F00;
padding: 45px 101px 45px 12px; padding: 45px 101px 45px 12px;
font-size: 14px; font-size: 14px;
Expand Down
2 changes: 1 addition & 1 deletion script/integration_test.rb
Expand Up @@ -14,7 +14,7 @@
fail "Please supply an API Key as the first argument" if ARGV.empty? fail "Please supply an API Key as the first argument" if ARGV.empty?


host = ARGV[1] host = ARGV[1]
host ||= "airbrakeapp.com" host ||= "airbrake.io"


secure = (ARGV[2] == "secure") secure = (ARGV[2] == "secure")


Expand Down
4 changes: 2 additions & 2 deletions test/airbrake_tasks_test.rb
Expand Up @@ -72,8 +72,8 @@ def unsuccessful_response(body = "")
@output = AirbrakeTasks.deploy(@options) @output = AirbrakeTasks.deploy(@options)
end end


before_should "post to http://airbrakeapp.com:80/deploys.txt" do before_should "post to http://airbrake.io:80/deploys.txt" do
@http_proxy_class.expects(:new).with("airbrakeapp.com", 80).returns(@http_proxy) @http_proxy_class.expects(:new).with("airbrake.io", 80).returns(@http_proxy)
@post.expects(:set_form_data).with(kind_of(Hash)) @post.expects(:set_form_data).with(kind_of(Hash))
@http_proxy.expects(:request).with(any_parameters).returns(successful_response) @http_proxy.expects(:request).with(any_parameters).returns(successful_response)
end end
Expand Down
4 changes: 2 additions & 2 deletions test/configuration_test.rb
Expand Up @@ -14,9 +14,9 @@ class ConfigurationTest < Test::Unit::TestCase
assert_config_default :logger, nil assert_config_default :logger, nil
assert_config_default :notifier_version, Airbrake::VERSION assert_config_default :notifier_version, Airbrake::VERSION
assert_config_default :notifier_name, 'Airbrake Notifier' 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 :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_open_timeout, 2
assert_config_default :http_read_timeout, 5 assert_config_default :http_read_timeout, 5
assert_config_default :ignore_by_filters, [] assert_config_default :ignore_by_filters, []
Expand Down
12 changes: 6 additions & 6 deletions test/sender_test.rb
Expand Up @@ -39,7 +39,7 @@ def stub_http(options = {})
proxy = stub(:new => http) proxy = stub(:new => http)
Net::HTTP.stubs(:Proxy => proxy) 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) uri = URI.parse(url)


proxy_host = 'some.host' proxy_host = 'some.host'
Expand Down Expand Up @@ -98,7 +98,7 @@ def stub_http(options = {})


should "post to the right url for non-ssl" do should "post to the right url for non-ssl" do
http = stub_http 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) uri = URI.parse(url)
send_exception(:secure => false) send_exception(:secure => false)
assert_received(http, :post) {|expect| expect.with(uri.path, anything, Airbrake::HEADERS) } assert_received(http, :post) {|expect| expect.with(uri.path, anything, Airbrake::HEADERS) }
Expand All @@ -111,7 +111,7 @@ def stub_http(options = {})
end end


should "verify the SSL peer when the use_ssl option is set to true" do 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) uri = URI.parse(url)


real_http = Net::HTTP.new(uri.host, uri.port) real_http = Net::HTTP.new(uri.host, uri.port)
Expand All @@ -127,7 +127,7 @@ def stub_http(options = {})
end end


should "verify the SSL peer when the use_ssl option is set to true and the default cert exists" do 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) uri = URI.parse(url)


real_http = Net::HTTP.new(uri.host, uri.port) real_http = Net::HTTP.new(uri.host, uri.port)
Expand Down Expand Up @@ -169,13 +169,13 @@ def stub_http(options = {})
should "connect to the right port for ssl" do should "connect to the right port for ssl" do
stub_http stub_http
send_exception(:secure => true) 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 end


should "connect to the right port for non-ssl" do should "connect to the right port for non-ssl" do
stub_http stub_http
send_exception(:secure => false) 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 end


should "use ssl if secure" do should "use ssl if secure" do
Expand Down

3 comments on commit 582dce9

@thbar
Copy link
Contributor

@thbar thbar commented on 582dce9 Oct 25, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@stuartchaney
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@thbar
Copy link
Contributor

@thbar thbar commented on 582dce9 Oct 25, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Stuart,

thanks for the reply! Appreciated.

-- Thibaut

Please sign in to comment.