rails-hush 1.1.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{MIT-LICENSE → LICENSE.txt} +1 -1
- data/README.md +2 -1
- data/lib/rails_hush/middleware/hush_two.rb +1 -1
- data/lib/rails_hush/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86475e19b99bc6be82fb5955afcadc3cd9caa95114ae1245ff80e6136af03a20
|
4
|
+
data.tar.gz: 1fd08b758c10cb7b4940478a3c2afee0e9038633a954294537100c6946f00be9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25eaa5c38a576b75cfdcca0fdf8f9e39ec641aa3de7c94cb178accebdb1855da02c4a9773173eee3918d83f39895c598855229d41ff8fae9f4e0976c082f9934
|
7
|
+
data.tar.gz: bb4b27dc501c8291bd9bf6a4b7886300caa4f0a54f243c2dd5aa92b3623fa6ca86c2a284c9cd3fd16e86151cc9eab5fbb0033fc114b404717d6af807a41aec41
|
data/{MIT-LICENSE → LICENSE.txt}
RENAMED
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:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thomas morgan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: sqlite3
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,7 +66,7 @@ executables: []
|
|
66
66
|
extensions: []
|
67
67
|
extra_rdoc_files: []
|
68
68
|
files:
|
69
|
-
-
|
69
|
+
- LICENSE.txt
|
70
70
|
- README.md
|
71
71
|
- Rakefile
|
72
72
|
- lib/rails-hush.rb
|
@@ -90,14 +90,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
90
90
|
requirements:
|
91
91
|
- - ">="
|
92
92
|
- !ruby/object:Gem::Version
|
93
|
-
version: '
|
93
|
+
version: '2.7'
|
94
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - ">="
|
97
97
|
- !ruby/object:Gem::Version
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
|
-
rubygems_version: 3.
|
100
|
+
rubygems_version: 3.5.11
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Hushes worthless Rails exceptions & logs
|