rescue_registry 0.2.2 → 0.2.3

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: 1b31d2b452ad332c7d5fb8f5514e967bc5cef892e55972f3f225e641b2b606ca
4
- data.tar.gz: 291021cd28fe31ff8d9c6ba6044381c900136d9aaf0f220bf113c841c7a60fc6
3
+ metadata.gz: 76e7d0f44e4a1b8dc8f91e8b7c33fceac13b70740dfc3452d127a25e59e49be1
4
+ data.tar.gz: 78f018ba46f97c5fd6ad04883f83b9755e18d653d9a638ebd0d863d23b49ce26
5
5
  SHA512:
6
- metadata.gz: af85bc82b997504293b3d80cd23b93c98415e4b1862fe22c700465e25bb30f95bc977f5de24d8e9176cd4da7b82077528238b8b0acec903f55cd35496b593fa2
7
- data.tar.gz: f8c589b999027340f3d15a587519d86bb47068ff8ffdc69630b0ccf1d6c26d16764d0fda27640c94092dd21b7a23070484070acacbcb5fb1f834d3c96dae22eb
6
+ metadata.gz: 853839cefe3949aaf86ba208bb6d65b9d0646399f1ca437110e13dd07faf0939f2abf54a17d161831e8faac5362142776dbdcc2906c15ecc79aaec061304cd54
7
+ data.tar.gz: 697b515d046f7b5033790535158a6ce085d10a69ba694a34ea14054441c5d54a6a4349237a2b32e75dcf9c4b0474314a72773b48a0446125053db75acb93d345
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ---
9
9
 
10
+ ## [0.2.3] - 2020-09-01
11
+ ### Fixed
12
+ - Properly handle exceptions for invalid format types - #25 (thanks @shanet)
13
+
14
+ ### Changed
15
+ - Lower minimum Ruby requirement to 2.3 (thanks @elDub)
16
+
10
17
  ## [0.2.2] - 2019-06-13
11
18
  ### Changed
12
19
  - Lower minimum Ruby requirement to 2.3 (thanks @elDub)
@@ -9,12 +9,7 @@ module RescueRegistry
9
9
  exception = request.get_header "action_dispatch.exception"
10
10
 
11
11
  if RescueRegistry.handles_exception?(exception)
12
- begin
13
- content_type = request.formats.first
14
- rescue Mime::Type::InvalidMimeType
15
- content_type = Mime[:text]
16
- end
17
-
12
+ content_type = request.formats.first || Mime[:text]
18
13
  response = RescueRegistry.response_for_public(content_type, exception)
19
14
  end
20
15
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RescueRegistry
4
- VERSION = "0.2.2"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rescue_registry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Wagenet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2020-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.0.3
132
+ rubygems_version: 3.1.2
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Registry for Rails Exceptions