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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b190fe4611fdf5f105f9923ed6176001e00f9adb
4
- data.tar.gz: 8d664bfaf80e33520c969638c151516da2d0bd88
3
+ metadata.gz: 97b4715d780a3ffc6e3186befefc072e3ffce3a6
4
+ data.tar.gz: 0bbe8f60343cd4dc88e9ca87e92007a8b041f31c
5
5
  SHA512:
6
- metadata.gz: 30b7a34f7d8a4c678c4cfeb8ed982a406af334b1388aec1f24135a39d3dc160224cb5e38bdc5d8b2eb3d5d26622553eddccfc57bb382d33a8756fb2d1a8aa1ea
7
- data.tar.gz: 792308d6d3794e331c2d75da1086085424ad52f9c622e3c9d3566996d012aefbe7f5d74ad1f6e3c1147e5c0f519a61914bde7191cce8babf9d0768fbb2bf87d2
6
+ metadata.gz: 3e6f2f292df3558d620ff00c858a3881143b7c4659b1bc4bb7cc216f2e5951b1005748e47259ad841a99a1868db523d2559ce5cf3be8d986ea6f95ba390f1870
7
+ data.tar.gz: e22e48d66200ca73e86162ad3cb37784bfb8aeab63f1d62558f179b44a107d767912cd2fa383b02f72c930248ec7f467d485ff63dfc11e20363200d52f067ba8
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module Errorkit
2
- VERSION = "0.0.3"
2
+ VERSION = "0.1.0"
3
3
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler