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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a9c38ec9eb1c74c7be0f5be8400851ff7b4e18d09cf13f45d78dc0a661e91a5
4
- data.tar.gz: fdefce31691aab5c96c685ee6a4688545d11d9fd66a926ac15845d593df23033
3
+ metadata.gz: 86475e19b99bc6be82fb5955afcadc3cd9caa95114ae1245ff80e6136af03a20
4
+ data.tar.gz: 1fd08b758c10cb7b4940478a3c2afee0e9038633a954294537100c6946f00be9
5
5
  SHA512:
6
- metadata.gz: 8beddfa617f90cb92c7860bc1b23498738d5f722f2467c2c80f81c43e57464184abe6df3a00f0889edcd1a210df3b55a70bfe58c6ed968eefe7f8439923d8612
7
- data.tar.gz: 527686f8e8edc9accdeff52175fc737752bea3ef7b44ef8932f8a530c1a0bc6e71da8f2cb3bf543552a342f0a457968149ece42b714cf7588d3ccb44b807f881
6
+ metadata.gz: 25eaa5c38a576b75cfdcca0fdf8f9e39ec641aa3de7c94cb178accebdb1855da02c4a9773173eee3918d83f39895c598855229d41ff8fae9f4e0976c082f9934
7
+ data.tar.gz: bb4b27dc501c8291bd9bf6a4b7886300caa4f0a54f243c2dd5aa92b3623fa6ca86c2a284c9cd3fd16e86151cc9eab5fbb0033fc114b404717d6af807a41aec41
@@ -1,4 +1,4 @@
1
- Copyright 2019-2023 thomas morgan
1
+ Copyright 2019-2024 thomas morgan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
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 = '2.0.0'
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: 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: 2023-05-27 00:00:00.000000000 Z
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: '6'
19
+ version: '7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.2'
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: '6'
29
+ version: '7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.2'
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
- - MIT-LICENSE
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: '0'
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.4.10
100
+ rubygems_version: 3.5.11
101
101
  signing_key:
102
102
  specification_version: 4
103
103
  summary: Hushes worthless Rails exceptions & logs