Commit 721580ed14ce4576e054d5e6df3f6db0a5d1663b
1 parent
4b08a41c
Exists in
master
obey rubocop
Showing
4 changed files
with
8 additions
and
8 deletions
Show diff stats
app/controllers/apps_controller.rb
@@ -97,7 +97,7 @@ protected | @@ -97,7 +97,7 @@ protected | ||
97 | # set the app's notification service | 97 | # set the app's notification service |
98 | available_notification_classes = [NotificationService] + NotificationService.subclasses | 98 | available_notification_classes = [NotificationService] + NotificationService.subclasses |
99 | notification_class = available_notification_classes.detect { |c| c.name == notification_type } | 99 | notification_class = available_notification_classes.detect { |c| c.name == notification_type } |
100 | - if !notification_class.nil? | 100 | + unless notification_class.nil? |
101 | app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) | 101 | app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) |
102 | end | 102 | end |
103 | end | 103 | end |
app/models/problem.rb
@@ -161,8 +161,8 @@ class Problem | @@ -161,8 +161,8 @@ class Problem | ||
161 | app, | 161 | app, |
162 | self, | 162 | self, |
163 | protocol: Errbit::Config.protocol, | 163 | protocol: Errbit::Config.protocol, |
164 | - host: Errbit::Config.host, | ||
165 | - port: Errbit::Config.port | 164 | + host: Errbit::Config.host, |
165 | + port: Errbit::Config.port | ||
166 | ) | 166 | ) |
167 | end | 167 | end |
168 | 168 |
config/puma.default.rb
@@ -6,8 +6,8 @@ threads threads_count, threads_count | @@ -6,8 +6,8 @@ threads threads_count, threads_count | ||
6 | 6 | ||
7 | preload_app! | 7 | preload_app! |
8 | 8 | ||
9 | -rackup DefaultRackup | ||
10 | -port ENV['PORT'] || 8080 | 9 | +rackup DefaultRackup |
10 | +port ENV['PORT'] || 8080 | ||
11 | environment ENV['RACK_ENV'] || 'development' | 11 | environment ENV['RACK_ENV'] || 'development' |
12 | 12 | ||
13 | on_worker_boot do | 13 | on_worker_boot do |
lib/airbrake_api/v3/notice_parser.rb
@@ -72,9 +72,9 @@ module AirbrakeApi | @@ -72,9 +72,9 @@ module AirbrakeApi | ||
72 | return context['user'] if context['user'] | 72 | return context['user'] if context['user'] |
73 | 73 | ||
74 | { | 74 | { |
75 | - 'id' => context['userId'], | ||
76 | - 'name' => context['userName'], | ||
77 | - 'email' => context['userEmail'], | 75 | + 'id' => context['userId'], |
76 | + 'name' => context['userName'], | ||
77 | + 'email' => context['userEmail'], | ||
78 | 'username' => context['userUsername'] | 78 | 'username' => context['userUsername'] |
79 | }.compact | 79 | }.compact |
80 | end | 80 | end |