errorkit 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/errorkit.rb +9 -1
- data/lib/errorkit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97b4715d780a3ffc6e3186befefc072e3ffce3a6
|
4
|
+
data.tar.gz: 0bbe8f60343cd4dc88e9ca87e92007a8b041f31c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e6f2f292df3558d620ff00c858a3881143b7c4659b1bc4bb7cc216f2e5951b1005748e47259ad841a99a1868db523d2559ce5cf3be8d986ea6f95ba390f1870
|
7
|
+
data.tar.gz: e22e48d66200ca73e86162ad3cb37784bfb8aeab63f1d62558f179b44a107d767912cd2fa383b02f72c930248ec7f467d485ff63dfc11e20363200d52f067ba8
|
data/lib/errorkit.rb
CHANGED
@@ -88,9 +88,17 @@ module Errorkit
|
|
88
88
|
end
|
89
89
|
|
90
90
|
def self.filtered_session(request)
|
91
|
+
begin
|
92
|
+
require 'action_dispatch/http/parameter_filter'
|
93
|
+
rescue LoadError
|
94
|
+
return {}
|
95
|
+
end
|
91
96
|
session = request.session.dup
|
92
97
|
session.delete(:session_id)
|
93
|
-
session
|
98
|
+
session.delete(:_csrf_token)
|
99
|
+
param_filter = request.env.fetch("action_dispatch.parameter_filter")
|
100
|
+
param_filter = ActionDispatch::Http::ParameterFilter.new(param_filter)
|
101
|
+
param_filter.filter(session.to_hash)
|
94
102
|
end
|
95
103
|
|
96
104
|
def self.clean_backtrace(exception)
|
data/lib/errorkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: errorkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Rafter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|