Skip to content

Commit 720f691

Browse files
committed
remove airbrake, add bugsnag
1 parent 2586b00 commit 720f691

File tree

4 files changed

+13
-14
lines changed

4 files changed

+13
-14
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ group :test do
184184
gem 'stripe-ruby-mock', git: 'https://github.com/rebelidealist/stripe-ruby-mock', branch: 'live-tests'
185185
end
186186

187-
gem 'airbrake'
187+
gem 'bugsnag'
188188
group :production do
189189
gem 'newrelic_rpm'
190190
gem 'puma'

Gemfile.lock

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,6 @@ GEM
8686
acts_as_commentable (2.0.1)
8787
acts_as_follower (0.1.1)
8888
addressable (2.3.6)
89-
airbrake (4.1.0)
90-
builder
91-
multi_json
9289
annotate (2.6.5)
9390
activerecord (>= 2.3.0)
9491
rake (>= 0.8.7)
@@ -120,6 +117,8 @@ GEM
120117
debug_inspector (>= 0.0.1)
121118
blankslate (3.1.3)
122119
buftok (0.2.0)
120+
bugsnag (2.7.1)
121+
multi_json (~> 1.0)
123122
builder (3.0.4)
124123
byebug (2.7.0)
125124
columnize (~> 0.3)
@@ -737,13 +736,13 @@ DEPENDENCIES
737736
acts-as-taggable-on (~> 3.4)
738737
acts_as_commentable (= 2.0.1)
739738
acts_as_follower (= 0.1.1)
740-
airbrake
741739
annotate
742740
autoprefixer-rails
743741
awesome_print
744742
backbone-on-rails
745743
better_errors
746744
binding_of_caller
745+
bugsnag
747746
capybara
748747
capybara-screenshot
749748
carrierwave

config/initializers/airbrake.rb

Lines changed: 0 additions & 9 deletions
This file was deleted.

config/initializers/bugsnag.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
if defined?(Bugsnag)
2+
Bugsnag.configure do |config|
3+
config.api_key = ENV['BUGSNAG_API_KEY']
4+
end
5+
else
6+
unless Rails.env.test? || Rails.env.development?
7+
Rails.logger.warn '[WTF WARNING] Someone deleted bugsnag and forgot the initializer'
8+
end
9+
end

0 commit comments

Comments
 (0)