rails-hush 1.1.1 → 1.1.2

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: 2a9c38ec9eb1c74c7be0f5be8400851ff7b4e18d09cf13f45d78dc0a661e91a5
4
- data.tar.gz: fdefce31691aab5c96c685ee6a4688545d11d9fd66a926ac15845d593df23033
3
+ metadata.gz: e226558e55919c5d99da20ebda38c44d225e07a0fad281d8552184cce9f245cc
4
+ data.tar.gz: 4b6b7d90fda79f966493afb91b147ab4f543b8e5a4ff0c668a32dc8b5e4998f7
5
5
  SHA512:
6
- metadata.gz: 8beddfa617f90cb92c7860bc1b23498738d5f722f2467c2c80f81c43e57464184abe6df3a00f0889edcd1a210df3b55a70bfe58c6ed968eefe7f8439923d8612
7
- data.tar.gz: 527686f8e8edc9accdeff52175fc737752bea3ef7b44ef8932f8a530c1a0bc6e71da8f2cb3bf543552a342f0a457968149ece42b714cf7588d3ccb44b807f881
6
+ metadata.gz: 4632f350f3ac1f71f0f4db2e8974d2f686f923b10e2933644703b39683d67b5737f1169768e4ea6772e8f8ea94082b0bd48c7e695392ba7e9b38076fe7e71545
7
+ data.tar.gz: 88722e2d0c8528607b601992600e00964a5d5f62cec3101404667663f1254352c7e4c522800f61bbe43f6076275f6690ffe57a66356287ef20a466678f282685
data/README.md CHANGED
@@ -73,7 +73,8 @@ RailsHush also has a replaceable renderer, in case you don't like the default js
73
73
  Rails' default "test" environment settings are quite different than "production". While the default settings are quite appropriate, with them it is near impossible to test the actual behavior of RailsHush, because it will effectively be disabled in "test". On the whole, it's recommended to just rely on RailsHush's own test suite. However, if you really want to test its behavior inside your app, change the following in `environments/test.rb`:
74
74
 
75
75
  config.consider_all_requests_local = false
76
- config.action_dispatch.show_exceptions = true
76
+ config.action_dispatch.show_exceptions = true # rails <= 7.0
77
+ config.action_dispatch.show_exceptions = :rescuable # rails >= 7.1
77
78
 
78
79
 
79
80
  ## Contributing
@@ -13,7 +13,7 @@ module RailsHush
13
13
  if show_exceptions?(request) && !request.get_header("action_dispatch.show_detailed_exceptions")
14
14
  begin
15
15
  _, headers, body = response = @app.call(env)
16
- if headers['X-Cascade'] == 'pass'
16
+ if headers['X-Cascade'] == 'pass' || headers['x-cascade'] == 'pass'
17
17
  body.close if body.respond_to?(:close)
18
18
  raise ActionController::RoutingError, "No route matches [#{env['REQUEST_METHOD']}] #{env['PATH_INFO'].inspect}"
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module RailsHush
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-hush
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - thomas morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-27 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails