govuk_app_config 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11deec0d472bf1602ab757e77ec8d84ac51b6c5ea656b0f5ee566a2c30e53001
4
- data.tar.gz: 3c8b333046cc448c7100392138fcb1804b84f3b0f02d319e4dc5274266db5a92
3
+ metadata.gz: 92b9d378095e01342301249ba34628694fbc7784a59db98d7850e9a46decdd7e
4
+ data.tar.gz: 43fde858563d2083fd913df8f273e152ec0b371d6e9f5f391f37a4c3a49cbfeb
5
5
  SHA512:
6
- metadata.gz: e66e03d60d51b38fe1d0c9205ce6b2d063d492241274a41856bd540f1dbf61aebc42bc99aa2b95968241419f48fe607de0e88d091513c0009869a1705559d245
7
- data.tar.gz: dcb5537f539f72f8495da6c7269ef5d45c4b696221fb3302aff5f8ba02600b26e5a2a8cd81025ea3ca607524762bb28217b64a6bc3e1181f349a251a0039be58
6
+ metadata.gz: 462cbe5e3a37df178cdafb4528f812329219559b42305cb6ad425ecfcf541308ca3a5a00a0a62ba923f333757440acd5d35818ccfb498822c0218731a912ea2b
7
+ data.tar.gz: 50c79c8cd7d3c53dd4cdd9d55dff59b548a4aebc2916b9c3f49097741557363e3707827917fc14d619614761542c352b0f924708ca81d749dc9fbc837a64dded
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.1.1
2
+
3
+ * Revert using Sentry option of rails_report_rescued_exceptions (https://github.com/alphagov/govuk_app_config/pull/140)
4
+
1
5
  # 2.1.0
2
6
 
3
7
  * Stop exceptions rescued by rails from appearing in Sentry (https://github.com/alphagov/govuk_app_config/pull/138)
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.require_paths = %w[lib]
24
24
 
25
25
  spec.add_dependency "logstasher", ">= 1.2.2", "< 1.4.0"
26
- spec.add_dependency "sentry-raven", ">= 2.7.1", "< 2.14.0"
26
+ spec.add_dependency "sentry-raven", ">= 2.7.1", "< 3.1.0"
27
27
  spec.add_dependency "statsd-ruby", "~> 1.4.0"
28
28
  spec.add_dependency "unicorn", ">= 5.4", "< 5.6"
29
29
 
@@ -8,14 +8,29 @@ GovukError.configure do |config|
8
8
  config.silence_ready = !Rails.env.production? if defined?(Rails)
9
9
 
10
10
  config.excluded_exceptions = [
11
- 'ActionController::UnknownAction',
12
- 'ActionDispatch::RemoteIp::IpSpoofAttackError',
13
- 'ActiveJob::DeserializationError',
14
- 'CGI::Session::CookieStore::TamperedWithCookie',
15
- 'GdsApi::HTTPIntermittentServerError',
16
- 'GdsApi::TimedOutException',
17
- 'Mongoid::Errors::DocumentNotFound',
18
- 'Sinatra::NotFound',
11
+ # default Rails rescue responses
12
+ "ActionController::RoutingError",
13
+ "AbstractController::ActionNotFound",
14
+ "ActionController::MethodNotAllowed",
15
+ "ActionController::UnknownHttpMethod",
16
+ "ActionController::NotImplemented",
17
+ "ActionController::UnknownFormat",
18
+ "Mime::Type::InvalidMimeType",
19
+ "ActionController::MissingExactTemplate",
20
+ "ActionController::InvalidAuthenticityToken",
21
+ "ActionController::InvalidCrossOriginRequest",
22
+ "ActionDispatch::Http::Parameters::ParseError",
23
+ "ActionController::BadRequest",
24
+ "ActionController::ParameterMissing",
25
+ "Rack::QueryParser::ParameterTypeError",
26
+ "Rack::QueryParser::InvalidParameterError",
27
+ # additional items
28
+ "ActiveJob::DeserializationError",
29
+ "CGI::Session::CookieStore::TamperedWithCookie",
30
+ "GdsApi::HTTPIntermittentServerError",
31
+ "GdsApi::TimedOutException",
32
+ "Mongoid::Errors::DocumentNotFound",
33
+ "Sinatra::NotFound",
19
34
  ]
20
35
 
21
36
  # This will exclude exceptions that are triggered by one of the ignored
@@ -26,8 +41,4 @@ GovukError.configure do |config|
26
41
  config.transport_failure_callback = Proc.new {
27
42
  GovukStatsd.increment("error_reports_failed")
28
43
  }
29
-
30
- # This stops exceptions rescued by rails from appearing in Sentry.
31
- # See https://www.rubydoc.info/gems/sentry-raven/1.2.2/Raven%2FConfiguration:rails_report_rescued_exceptions
32
- config.rails_report_rescued_exceptions = false
33
44
  end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: 2.7.1
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 2.14.0
42
+ version: 3.1.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: 2.7.1
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 2.14.0
52
+ version: 3.1.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: statsd-ruby
55
55
  requirement: !ruby/object:Gem::Requirement