-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
84 changed files
with
1,439 additions
and
545 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6.14.0 | ||
6.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,21 +75,6 @@ class App < Padrino::Application | |
'bugsnag.com for a new notification!') | ||
end | ||
|
||
get '/crash_with_callback' do | ||
Bugsnag.before_notify_callbacks << proc { |report| | ||
new_tab = { | ||
message: 'Padrino demo says: Everything is great', | ||
code: 200 | ||
} | ||
report.add_tab(:diagnostics, new_tab) | ||
} | ||
|
||
msg = 'Bugsnag Padrino demo says: It crashed! But, due to the attached callback' + | ||
' the exception has meta information. Go check' + | ||
' bugsnag.com for a new notification (see the Diagnostics tab)!' | ||
raise RuntimeError.new(msg) | ||
end | ||
|
||
get '/notify' do | ||
Bugsnag.notify(RuntimeError.new("Bugsnag Padrino demo says: False alarm, your application didn't crash")) | ||
|
||
|
@@ -100,21 +85,16 @@ class App < Padrino::Application | |
|
||
get '/notify_data' do | ||
error = RuntimeError.new("Bugsnag Padrino demo says: False alarm, your application didn't crash") | ||
Bugsnag.notify error do |report| | ||
report.add_tab(:user, { | ||
:username => "bob-hoskins", | ||
:email => '[email protected]', | ||
:registered_user => true | ||
}) | ||
Bugsnag.notify(error) do |report| | ||
report.add_tab(:diagnostics, { | ||
:message => 'Padrino demo says: Everything is great', | ||
:code => 200 | ||
message: 'Padrino demo says: Everything is great', | ||
code: 200 | ||
}) | ||
end | ||
|
||
"Bugsnag Padrino demo says: It didn't crash! " + | ||
'But still go check <a href="https://bugsnag.com">https://bugsnag.com</a>' + | ||
' for a new notification. Check out the User tab for the meta data' | ||
' for a new notification. Check out the Diagnostics tab for the meta data' | ||
end | ||
|
||
get '/notify_severity' do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,14 @@ | |
Padrino.before_load do | ||
Bugsnag.configure do |config| | ||
config.api_key = 'YOUR_API_KEY' | ||
|
||
config.add_on_error(proc do |report| | ||
report.add_tab(:user, { | ||
username: 'bob-hoskins', | ||
email: '[email protected]', | ||
registered_user: true | ||
}) | ||
end) | ||
end | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,16 @@ | |
require 'bugsnag' | ||
require 'redcarpet' | ||
|
||
|
||
Bugsnag.configure do |config| | ||
config.api_key = 'YOUR_API_KEY' | ||
|
||
config.add_on_error(proc do |report| | ||
report.add_tab(:user, { | ||
username: 'bob-hoskins', | ||
email: '[email protected]', | ||
registered_user: true | ||
}) | ||
end) | ||
end | ||
|
||
class BugsnagDemo | ||
|
@@ -18,19 +25,6 @@ def call(env) | |
when '/crash' | ||
raise RuntimeError.new('Bugsnag Rack demo says: It crashed! Go check ' + | ||
'bugsnag.com for a new notification!') | ||
when '/crash_with_callback' | ||
Bugsnag.before_notify_callbacks << proc { |report| | ||
new_tab = { | ||
message: 'Rack demo says: Everything is great', | ||
code: 200 | ||
} | ||
report.add_tab(:diagnostics, new_tab) | ||
} | ||
|
||
msg = 'Bugsnag Rack demo says: It crashed! But, due to the attached callback' + | ||
' the exception has meta information. Go check' + | ||
' bugsnag.com for a new notification (see the Diagnostics tab)!' | ||
raise RuntimeError.new(msg) | ||
when '/notify' | ||
Bugsnag.notify(RuntimeError.new("Bugsnag Rack demo says: False alarm, your application didn't crash")) | ||
|
||
|
@@ -39,21 +33,16 @@ def call(env) | |
' for a new notification.' | ||
when '/notify_data' | ||
error = RuntimeError.new("Bugsnag Rack demo says: False alarm, your application didn't crash") | ||
Bugsnag.notify error do |report| | ||
report.add_tab(:user, { | ||
:username => "bob-hoskins", | ||
:email => '[email protected]', | ||
:registered_user => true | ||
}) | ||
Bugsnag.notify(error) do |report| | ||
report.add_tab(:diagnostics, { | ||
:message => 'Rack demo says: Everything is great', | ||
:code => 200 | ||
message: 'Padrino demo says: Everything is great', | ||
code: 200 | ||
}) | ||
end | ||
|
||
text = "Bugsnag Rack demo says: It didn't crash! " + | ||
'But still go check <a href="https://bugsnag.com">https://bugsnag.com</a>' + | ||
' for a new notification. Check out the User tab for the meta data' | ||
' for a new notification. Check out the Diagnostics tab for the meta data' | ||
when '/notify_severity' | ||
msg = "Bugsnag Rack demo says: Look at the circle on the right side. It's different" | ||
error = RuntimeError.new(msg) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,19 +10,6 @@ def crash | |
'bugsnag.com for a new notification') | ||
end | ||
|
||
def callback | ||
Bugsnag.before_notify_callbacks << proc { |report| | ||
new_tab = { | ||
message: 'Rails v4.2 demo says: Everything is great', | ||
code: 200 | ||
} | ||
report.add_tab(:diagnostics, new_tab) | ||
} | ||
raise RuntimeError.new('Bugsnag Rails demo says: It crashed! But, due to the attached callback' + | ||
' the exception has meta information. Go check' + | ||
' bugsnag.com for a new notification (see the Diagnostics tab)!') | ||
end | ||
|
||
def notify | ||
Bugsnag.notify(RuntimeError.new("Bugsnag Rails demo says: False alarm, your application didn't crash")) | ||
@text = "Bugsnag Rack demo says: It didn't crash! " + | ||
|
@@ -32,20 +19,15 @@ def notify | |
|
||
def data | ||
error = RuntimeError.new("Bugsnag Rails demo says: False alarm, your application didn't crash") | ||
Bugsnag.notify error do |report| | ||
report.add_tab(:user, { | ||
:username => "bob-hoskins", | ||
:email => '[email protected]', | ||
:registered_user => true | ||
}) | ||
Bugsnag.notify(error) do |report| | ||
report.add_tab(:diagnostics, { | ||
:message => 'Rails demo says: Everything is great', | ||
:code => 200 | ||
message: 'Rails demo says: Everything is great', | ||
code: 200 | ||
}) | ||
end | ||
@text = "Bugsnag Rails demo says: It didn't crash! " + | ||
'But still go check <a href="https://bugsnag.com">https://bugsnag.com</a>' + | ||
' for a new notification. Check out the User tab for the meta data' | ||
' for a new notification. Check out the Diagnostics tab for the meta data' | ||
end | ||
|
||
def severity | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
Bugsnag.configure do |config| | ||
config.api_key = "YOUR_API_KEY_HERE" | ||
|
||
config.add_on_error(proc do |report| | ||
report.add_tab(:user, { | ||
username: 'bob-hoskins', | ||
email: '[email protected]', | ||
registered_user: true | ||
}) | ||
end) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
Rails.application.routes.draw do | ||
root :to => 'application#index' | ||
|
||
get 'crash' => 'application#crash' | ||
get 'crash_with_callback' => 'application#callback' | ||
get 'notify' => 'application#notify' | ||
get 'notify_data' => 'application#data' | ||
get 'notify_severity' => 'application#severity' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,19 +10,6 @@ def crash | |
'bugsnag.com for a new notification') | ||
end | ||
|
||
def callback | ||
Bugsnag.before_notify_callbacks << proc { |report| | ||
new_tab = { | ||
message: 'Rails v4.2 demo says: Everything is great', | ||
code: 200 | ||
} | ||
report.add_tab(:diagnostics, new_tab) | ||
} | ||
raise RuntimeError.new('Bugsnag Rails demo says: It crashed! But, due to the attached callback' + | ||
' the exception has meta information. Go check' + | ||
' bugsnag.com for a new notification (see the Diagnostics tab)!') | ||
end | ||
|
||
def notify | ||
Bugsnag.notify(RuntimeError.new("Bugsnag Rails demo says: False alarm, your application didn't crash")) | ||
@text = "Bugsnag Rack demo says: It didn't crash! " + | ||
|
@@ -32,20 +19,15 @@ def notify | |
|
||
def data | ||
error = RuntimeError.new("Bugsnag Rails demo says: False alarm, your application didn't crash") | ||
Bugsnag.notify error do |report| | ||
report.add_tab(:user, { | ||
:username => "bob-hoskins", | ||
:email => '[email protected]', | ||
:registered_user => true | ||
}) | ||
Bugsnag.notify(error) do |report| | ||
report.add_tab(:diagnostics, { | ||
:message => 'Rails demo says: Everything is great', | ||
:code => 200 | ||
message: 'Rails demo says: Everything is great', | ||
code: 200 | ||
}) | ||
end | ||
@text = "Bugsnag Rails demo says: It didn't crash! " + | ||
'But still go check <a href="https://bugsnag.com">https://bugsnag.com</a>' + | ||
' for a new notification. Check out the User tab for the meta data' | ||
' for a new notification. Check out the Diagnostics tab for the meta data' | ||
end | ||
|
||
def severity | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.