mime_typed_public_exceptions 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1c025b3cc1c61c96d10d8e2fd198bf81f1205d660e3af1224271cf4349c1725
4
- data.tar.gz: 3df032a0ae5417285c68f0b40441c2d34cd5f322d91d83642fdb90e06c2fbe1b
3
+ metadata.gz: 1176d97d426dc51f5c00366048f07306265f1d16a9b591e63ed9d4039081837f
4
+ data.tar.gz: 5bb8799122951aabe16b0339bde5e6d5d498539ca2baaa94a6846fdbcb54df04
5
5
  SHA512:
6
- metadata.gz: f367307cb256d10d0104aa29be30d0361c1a6e971c05279b0b86a6f7029883218b36fbf7584bf6c7e484f4587ccccdd5eeede7821eac7614db7dcb6c611e3b88
7
- data.tar.gz: e1e6e8e910aee10ffd21eb710fcef49328e88e3ab9eaf092da02386e90f2c699ffc359e18babd185335736c6ce9be3ae742fb6655c1cb8e0755e414878fe9e10
6
+ metadata.gz: 53653403e1ec1c42e1c14afb6aabc2bdaf2ff1eac5fda6b56aa27c75bd659b25aabb2d30042a33dcf54f7ad6533d1879e0b1db3771a7f8707cfe11b02fdeaf5d
7
+ data.tar.gz: dc8251b4e7ae9f1d7788cf5ddbb5294e2815da1322b67a4ed98e8891c6eb2b8c75fc435726890caaba84a51257bdcbab14f522f7d19b09afb7ea27aa31d5aa0c
@@ -12,7 +12,7 @@ class MimeTypedPublicExceptions < ActionDispatch::PublicExceptions
12
12
  private
13
13
 
14
14
  def render(status, content_type, _body)
15
- ext = content_type.symbol || 'html' # symbol does not represent an extension
15
+ ext = content_type.symbol # symbol does not represent an extension
16
16
  path = [
17
17
  "#{public_path}/#{status}.#{I18n.locale}.#{ext}",
18
18
  "#{public_path}/#{status}.#{ext}"
@@ -20,7 +20,7 @@ class MimeTypedPublicExceptions < ActionDispatch::PublicExceptions
20
20
  if path
21
21
  render_format(status, content_type, File.read(path))
22
22
  else
23
- [404, { 'X-Cascade' => 'pass' }, []]
23
+ render_html(status)
24
24
  end
25
25
  end
26
26
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  require 'action_dispatch'
4
4
  class MimeTypedPublicExceptions < ActionDispatch::PublicExceptions
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mime_typed_public_exceptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - naari3
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-02 00:00:00.000000000 Z
11
+ date: 2019-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec_junit_formatter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec-rails
43
57
  requirement: !ruby/object:Gem::Requirement