Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #213 from masarakki/remove-error-notification
Browse files Browse the repository at this point in the history
remove-error-notification
  • Loading branch information
masarakki authored Apr 16, 2018
2 parents 69b8c22 + 2f7e501 commit d4ec182
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,5 @@ end
# for friends
gem 'omniauth-niconico', '0.0.1'
group :production do
gem 'exception_notification', '~> 4.2.2'
gem 'slack-notifier', '~> 2.3.1'
gem 'parallel'
end
6 changes: 0 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ GEM
erubi (1.7.0)
et-orbi (1.0.8)
tzinfo
exception_notification (4.2.2)
actionmailer (>= 4.0, < 6)
activesupport (>= 4.0, < 6)
excon (0.59.0)
execjs (2.7.0)
fabrication (2.18.0)
Expand Down Expand Up @@ -517,7 +514,6 @@ GEM
json (>= 1.8, < 3)
simplecov-html (~> 0.10.0)
simplecov-html (0.10.2)
slack-notifier (2.3.1)
sprockets (3.7.1)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
Expand Down Expand Up @@ -599,7 +595,6 @@ DEPENDENCIES
devise-two-factor (~> 3.0)
doorkeeper (~> 4.2)
dotenv-rails (~> 2.2)
exception_notification (~> 4.2.2)
fabrication (~> 2.18)
faker (~> 1.7)
fast_blank (~> 1.0)
Expand Down Expand Up @@ -669,7 +664,6 @@ DEPENDENCIES
simple-navigation (~> 4.0)
simple_form (~> 3.4)
simplecov (~> 0.14)
slack-notifier (~> 2.3.1)
sprockets-rails (~> 3.2)
strong_migrations
twitter-text (~> 1.14)
Expand Down
11 changes: 0 additions & 11 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,4 @@
'X-Content-Type-Options' => 'nosniff',
'X-XSS-Protection' => '1; mode=block',
}

if ENV['SLACK_NOTIFIER_URL'] && ENV['SLACK_NOTIFIER_CHANNEL'] && ENV['SLACK_NOTIFIER_USER']
config.middleware.use ExceptionNotification::Rack, slack: {
webhook_url: ENV['SLACK_NOTIFIER_URL'],
channel: "##{ENV['SLACK_NOTIFIER_CHANNEL']}",
username: ENV['SLACK_NOTIFIER_USER'],
additional_parameters: {
icon_emoji: ':elephant:'
}
}
end
end

0 comments on commit d4ec182

Please sign in to comment.