diff --git a/Gemfile b/Gemfile index e24fe9bf0..ac91fcee9 100644 --- a/Gemfile +++ b/Gemfile @@ -19,7 +19,7 @@ gem "acts_as_follower", github: "thepracticaldev/acts_as_follower", branch: "mas gem "addressable", "~> 2.5", ">= 2.5.2" # A replacement for the URI implementation that is part of Ruby's standard library gem "administrate", "~> 0.11" # A Rails engine that helps you put together a super-flexible admin dashboard gem "ahoy_email", "~> 1.0" # Email analytics for Rails -gem "airbrake", "~> 8.1" # Airbrake is an online tool that provides robust exception tracking in any of your Ruby applications +gem "airbrake", "~> 9.1" # Airbrake is an online tool that provides robust exception tracking in any of your Ruby applications gem "algoliasearch-rails", "~> 1.21" # Algolia Search is a hosted search engine capable of delivering real-time results from the first keystroke gem "algorithmia", "~> 1.0" # Ruby Client for Algorithmia Algorithms and Data API gem "ancestry", "~> 3.0" # Ancestry allows the records of a ActiveRecord model to be organized in a tree structure diff --git a/Gemfile.lock b/Gemfile.lock index 448f86beb..30bbb7f62 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -91,9 +91,9 @@ GEM addressable (>= 2.3.2) nokogiri safely_block (>= 0.1.1) - airbrake (8.1.4) - airbrake-ruby (~> 3.2) - airbrake-ruby (3.2.5) + airbrake (9.1.0) + airbrake-ruby (~> 4.2) + airbrake-ruby (4.2.5) rbtree3 (~> 0.5) algoliasearch (1.26.0) httpclient (~> 2.8, >= 2.8.3) @@ -964,7 +964,7 @@ DEPENDENCIES addressable (~> 2.5, >= 2.5.2) administrate (~> 0.11) ahoy_email (~> 1.0) - airbrake (~> 8.1) + airbrake (~> 9.1) algoliasearch-rails (~> 1.21) algorithmia (~> 1.0) ancestry (~> 3.0) diff --git a/config/initializers/airbrake.rb b/config/initializers/airbrake.rb index 4ed32788d..64bfddfdf 100644 --- a/config/initializers/airbrake.rb +++ b/config/initializers/airbrake.rb @@ -4,6 +4,8 @@ # changes. Airbrake enables for easy categorization, searching, and prioritization # of exceptions so that when errors occur, your team can quickly determine the # root cause. +require "airbrake/delayed_job" + # # Configuration details: # https://github.com/airbrake/airbrake-ruby#configuration @@ -29,16 +31,14 @@ Airbrake.configure do |c| # Configures the environment the application is running in. Helps the Airbrake # dashboard to distinguish between exceptions occurring in different - # environments. By default, it's not set. + # environments. # NOTE: This option must be set in order to make the 'ignore_environments' # option work. # https://github.com/airbrake/airbrake-ruby#environment c.environment = Rails.env # Setting this option allows Airbrake to filter exceptions occurring in - # unwanted environments such as :test. By default, it is equal to an empty - # Array, which means Airbrake Ruby sends exceptions occurring in all - # environments. + # unwanted environments such as :test. # NOTE: This option *does not* work if you don't set the 'environment' option. # https://github.com/airbrake/airbrake-ruby#ignore_environments c.ignore_environments = %w[test development] @@ -47,13 +47,29 @@ Airbrake.configure do |c| # Airbrake. By default, all "password" attributes will have their contents # replaced. # https://github.com/airbrake/airbrake-ruby#blacklist_keys - c.blacklist_keys = [/password/i] + c.blacklist_keys = [/password/i, /authorization/i] + + # Alternatively, you can integrate with Rails' filter_parameters. + # Read more: https://goo.gl/gqQ1xS + # c.blacklist_keys = Rails.application.config.filter_parameters end -# If Airbrake doesn't send any expected exceptions, we suggest to uncomment the -# line below. It might simplify debugging of background Airbrake workers, which -# can silently die. -# Thread.abort_on_exception = ['test', 'development'].include?(Rails.env) +# A filter that collects request body information. Enable it if you are sure you +# don't send sensitive information to Airbrake in your body (such as passwords). +# https://github.com/airbrake/airbrake#requestbodyfilter +# Airbrake.add_filter(Airbrake::Rack::RequestBodyFilter.new) + +# Attaches thread & fiber local variables along with general thread information. +# Airbrake.add_filter(Airbrake::Filters::ThreadFilter.new) + +# Attaches loaded dependencies to the notice object +# (under context/versions/dependencies). +# Airbrake.add_filter(Airbrake::Filters::DependencyFilter.new) + +# If you want to convert your log messages to Airbrake errors, we offer an +# integration with the Logger class from stdlib. +# https://github.com/airbrake/airbrake#logger +# Rails.logger = Airbrake::AirbrakeLogger.new(Rails.logger) Airbrake.add_filter do |notice| notice.ignore! if notice[:errors].any? { |error| error[:type] == "Pundit::NotAuthorizedError" } diff --git a/public/.well-known/assetlinks.json b/public/.well-known/assetlinks.json index 997248d40..422d6ec0b 100644 --- a/public/.well-known/assetlinks.json +++ b/public/.well-known/assetlinks.json @@ -6,4 +6,4 @@ "sha256_cert_fingerprints": ["2B:A7:3D:9B:CE:6F:54:F9:B1:99:EC:45:E0:F2:D2:2E:2E:BF:3B:E8:89:5D:1C:30:B1:B9:C2:52:04:48:AD:48"] } -}] +}] \ No newline at end of file