Skip to content

Commit a8db366

Browse files
author
vitalie
committed
Replace gem sentry-raven with sentry-ruby
1 parent 4a38c7a commit a8db366

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ gem 'puma'
1515
gem 'sinatra', '~> 2.0.3'
1616
gem 'rake', '~> 12.3.3'
1717

18-
gem 'sentry-raven'
18+
gem 'sentry-ruby'
1919

2020
gem 'activesupport', '~> 4.1.11'
2121

Gemfile.lock

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ GEM
3131
connection_pool (2.2.1)
3232
diff-lcs (1.5.0)
3333
docile (1.4.0)
34-
faraday (0.15.0)
35-
multipart-post (>= 1.2, < 3)
3634
foreman (0.41.0)
3735
thor (>= 0.13.6)
3836
hashr (2.0.1)
@@ -48,7 +46,6 @@ GEM
4846
metriks-librato_metrics (1.0.6)
4947
metriks (>= 0.9.9.6)
5048
minitest (5.11.3)
51-
multipart-post (2.0.0)
5249
mustermann (1.0.3)
5350
nio4r (2.5.8)
5451
parallel (1.23.0)
@@ -105,8 +102,8 @@ GEM
105102
rubocop-rspec (2.10.0)
106103
rubocop (~> 1.19)
107104
ruby-progressbar (1.13.0)
108-
sentry-raven (2.7.3)
109-
faraday (>= 0.7.6, < 1.0)
105+
sentry-ruby (5.10.0)
106+
concurrent-ruby (~> 1.0, >= 1.0.2)
110107
sidekiq (4.0.2)
111108
concurrent-ruby (~> 1.0)
112109
connection_pool (~> 2.2, >= 2.2.0)
@@ -158,7 +155,7 @@ DEPENDENCIES
158155
rubocop-performance
159156
rubocop-rake
160157
rubocop-rspec
161-
sentry-raven
158+
sentry-ruby
162159
sidekiq (~> 4.0.0)
163160
simplecov
164161
simplecov-console

config.ru

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ require 'travis/listener'
66

77
Travis::Listener.setup
88

9-
use Raven::Rack if Travis.config.sentry.dsn
9+
use Sentry::Rack if Travis.config.sentry.dsn
1010
run Travis::Listener::App

lib/travis/listener.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ class Config < Travis::Config
2929
class << self
3030
def setup
3131
if Travis.config.sentry.dsn
32-
require 'raven'
33-
::Raven.configure do |config|
32+
require 'sentry-ruby'
33+
34+
::Sentry.init do |config|
3435
config.dsn = Travis.config.sentry.dsn
3536
config.excluded_exceptions = %w[Sinatra::NotFound]
3637
end

lib/travis/listener/app.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def event_details
213213
rescue StandardError => e
214214
error("Error logging payload: #{e.message}")
215215
error("Payload causing error: #{decoded_payload}")
216-
Raven.capture_exception(e)
216+
Sentry.capture_exception(e)
217217
{}
218218
end
219219

0 commit comments

Comments
 (0)