rails-hush 1.1.1 → 1.1.2
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 +4 -4
- data/README.md +2 -1
- data/lib/rails_hush/middleware/hush_two.rb +1 -1
- data/lib/rails_hush/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e226558e55919c5d99da20ebda38c44d225e07a0fad281d8552184cce9f245cc
|
4
|
+
data.tar.gz: 4b6b7d90fda79f966493afb91b147ab4f543b8e5a4ff0c668a32dc8b5e4998f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/rails_hush/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2023-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|