diff --git a/CHANGELOG.md b/CHANGELOG.md index 1fad8a7a..100254e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,13 @@ -# 4.0.0.pre-2 +# 4.0.0.pre.3 + +- Include [sentry-rails](https://github.com/getsentry/sentry-ruby/tree/master/sentry-rails) by default ([#203](https://github.com/alphagov/govuk_app_config/pull/203)). + +# 4.0.0.pre.2 - Fix default Sentry configuration ([#202](https://github.com/alphagov/govuk_app_config/pull/202)). - BREAKING: this means no more `silence_ready` or `transport_failure_callback` options. -# 4.0.0.pre-1 +# 4.0.0.pre.1 - BREAKING: upgrades Sentry gem from `sentry-raven` to `sentry-ruby` ([#199](https://github.com/alphagov/govuk_app_config/pull/199)). There is a **[migration guide](https://docs.sentry.io/platforms/ruby/migration/)** you should follow before upgrading to this version of govuk_app_config. - This release also fixes the `data_sync_excluded_exceptions` behaviour that has been broken since v3.1.0. diff --git a/govuk_app_config.gemspec b/govuk_app_config.gemspec index 815b65cb..269930f0 100644 --- a/govuk_app_config.gemspec +++ b/govuk_app_config.gemspec @@ -21,6 +21,7 @@ Gem::Specification.new do |spec| spec.require_paths = %w[lib] spec.add_dependency "logstasher", ">= 1.2.2", "< 2.2.0" + spec.add_dependency "sentry-rails", "~> 4.5.0" spec.add_dependency "sentry-ruby", "~> 4.5.0" spec.add_dependency "statsd-ruby", "~> 1.5.0" spec.add_dependency "unicorn", ">= 5.4", "< 5.9" diff --git a/lib/govuk_app_config/govuk_error.rb b/lib/govuk_app_config/govuk_error.rb index b5de4340..448e6bb5 100644 --- a/lib/govuk_app_config/govuk_error.rb +++ b/lib/govuk_app_config/govuk_error.rb @@ -1,4 +1,5 @@ require "sentry-ruby" +require "sentry-rails" require "govuk_app_config/govuk_statsd" require "govuk_app_config/govuk_error/configuration" require "govuk_app_config/version" diff --git a/lib/govuk_app_config/version.rb b/lib/govuk_app_config/version.rb index e00853d5..5b88ab24 100644 --- a/lib/govuk_app_config/version.rb +++ b/lib/govuk_app_config/version.rb @@ -1,3 +1,3 @@ module GovukAppConfig - VERSION = "4.0.0.pre.2".freeze + VERSION = "4.0.0.pre.3".freeze end diff --git a/spec/lib/rails_ext/action_dispatch/debug_exceptions_spec.rb b/spec/lib/rails_ext/action_dispatch/debug_exceptions_spec.rb index f08ae6d0..bb5f978e 100644 --- a/spec/lib/rails_ext/action_dispatch/debug_exceptions_spec.rb +++ b/spec/lib/rails_ext/action_dispatch/debug_exceptions_spec.rb @@ -9,6 +9,10 @@ allow(Rails.logger).to receive(:warn) end + after do + Rails.logger = nil + end + it "should not monkey patch classes which do not have log_error" do no_method_test_class = Class.new expect(described_class.should_monkey_patch_log_error?(no_method_test_class)).to be(false)