Skip to content
Browse files

Migrated to new api.airbrake.io endpoint.

  • Loading branch information...
1 parent 4081663 commit da3d5c06d3c3261052f46f10c1d7fe5c0db5ac52 Jonathan Siegel committed
View
31 README.md
@@ -18,22 +18,6 @@ For SSL verification see the [Resources](https://github.com/airbrake/airbrake/bl
Rails Installation
------------------
-### Remove hoptoad_notifier
-
-in your ApplicationController, REMOVE this line:
-
- include HoptoadNotifiable
-
-In your config/environment* files, remove all references to HoptoadNotifier
-
-Remove the vendor/plugins/hoptoad_notifier directory.
-
-### Remove hoptoad_notifier plugin
-
-Remove the vendor/plugins/hoptoad_notifier directory before installing the gem, or run:
-
- script/plugin remove hoptoad_notifier
-
### Rails 3.x
Add the airbrake gem to your Gemfile. In Gemfile:
@@ -139,6 +123,21 @@ this rake task (from RAILS_ROOT):
If everything is configured properly, that task will send a notice to Airbrake
which will be visible immediately.
+### Removing hoptoad_notifier
+
+in your ApplicationController, REMOVE this line:
+
+ include HoptoadNotifiable
+
+In your config/environment* files, remove all references to HoptoadNotifier
+
+Remove the vendor/plugins/hoptoad_notifier directory.
+
+### Remove hoptoad_notifier plugin
+
+Remove the vendor/plugins/hoptoad_notifier directory before installing the gem, or run:
+
+ script/plugin remove hoptoad_notifier
Non-rails apps using Bundler
----------------------------
View
2 airbrake.gemspec
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
s.add_development_dependency("shoulda", "~> 2.11.3")
s.add_development_dependency("capistrano", "~> 2.8.0")
- s.authors = ["thoughtbot, inc"]
+ s.authors = ["Airbrake"]
s.email = %q{support@airbrake.io}
s.homepage = "http://www.airbrake.io"
View
4 features/rails_with_js_notifier.feature
@@ -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 | airbrake.io |
+ | myapikey | production | api.airbrake.io |
And the notifier JavaScript should provide the following errorDefaults:
| url | component | action |
| http://example.com:123/test/index | test | index |
@@ -94,4 +94,4 @@ 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 |
- | myjsapikey! | production | airbrake.io |
+ | myjsapikey! | production | api.airbrake.io |
View
2 features/step_definitions/rails_application_steps.rb
@@ -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'] || 'airbrake.io'
+ host = hash['host'] || 'api.airbrake.io'
secure = hash['secure'] || false
api_key = hash['api_key']
environment = hash['environment'] || 'production'
View
4 lib/airbrake/configuration.rb
@@ -135,7 +135,7 @@ class Configuration
def initialize
@secure = false
@use_system_ssl_cert_chain= false
- @host = 'airbrake.io'
+ @host = 'api.airbrake.io'
@http_open_timeout = 2
@http_read_timeout = 5
@params_filters = DEFAULT_PARAMS_FILTERS.dup
@@ -147,7 +147,7 @@ def initialize
@development_lookup = true
@notifier_name = 'Airbrake Notifier'
@notifier_version = VERSION
- @notifier_url = 'http://airbrake.io'
+ @notifier_url = 'https://github.com/airbrake/airbrake'
@framework = 'Standalone'
@user_information = 'Airbrake Error {{error_id}}'
@rescue_rake_exceptions = nil
View
2 lib/airbrake/version.rb
@@ -1,3 +1,3 @@
module Airbrake
- VERSION = "3.0.9"
+ VERSION = "3.1.0"
end
View
2 lib/airbrake_tasks.rb
@@ -30,7 +30,7 @@ def self.deploy(opts = {})
params = {'api_key' => api_key}
opts.each {|k,v| params["deploy[#{k}]"] = v }
- host = Airbrake.configuration.host || 'airbrake.io'
+ host = Airbrake.configuration.host || 'api.airbrake.io'
port = Airbrake.configuration.port
proxy = Net::HTTP.Proxy(Airbrake.configuration.proxy_host,
View
2 script/integration_test.rb
@@ -14,7 +14,7 @@
fail "Please supply an API Key as the first argument" if ARGV.empty?
host = ARGV[1]
-host ||= "airbrake.io"
+host ||= "api.airbrake.io"
secure = (ARGV[2] == "secure")
View
4 test/configuration_test.rb
@@ -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://airbrake.io'
+ assert_config_default :notifier_url, 'https://github.com/airbrake/airbrake'
assert_config_default :secure, false
- assert_config_default :host, 'airbrake.io'
+ assert_config_default :host, 'api.airbrake.io'
assert_config_default :http_open_timeout, 2
assert_config_default :http_read_timeout, 5
assert_config_default :ignore_by_filters, []
View
10 test/sender_test.rb
@@ -39,7 +39,7 @@ def stub_http(options = {})
proxy = stub(:new => http)
Net::HTTP.stubs(:Proxy => proxy)
- url = "http://airbrake.io:80#{Airbrake::Sender::NOTICES_URI}"
+ url = "http://api.airbrake.io:80#{Airbrake::Sender::NOTICES_URI}"
uri = URI.parse(url)
proxy_host = 'some.host'
@@ -146,7 +146,7 @@ def stub_http(options = {})
context "SSL" do
should "post to the right url for non-ssl" do
http = stub_http
- url = "http://airbrake.io:80#{Airbrake::Sender::NOTICES_URI}"
+ url = "http://api.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) }
@@ -159,7 +159,7 @@ def stub_http(options = {})
end
should "verify the SSL peer when the use_ssl option is set to true" do
- url = "https://airbrake.io#{Airbrake::Sender::NOTICES_URI}"
+ url = "https://api.airbrake.io#{Airbrake::Sender::NOTICES_URI}"
uri = URI.parse(url)
real_http = Net::HTTP.new(uri.host, uri.port)
@@ -208,13 +208,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("airbrake.io", 443) }
+ assert_received(Net::HTTP, :new) {|expect| expect.with("api.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("airbrake.io", 80) }
+ assert_received(Net::HTTP, :new) {|expect| expect.with("api.airbrake.io", 80) }
end
should "use ssl if secure" do

0 comments on commit da3d5c0

Please sign in to comment.
Something went wrong with that request. Please try again.