errplane 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,12 +12,12 @@ module Errplane
12
12
 
13
13
  def initialize(params = {})
14
14
  @exception = params[:exception]
15
- @params = params[:params] || {}
16
- @session_data = params[:session_data] || {}
15
+ @params = params[:params] || params["rack.request.query_hash"] || {}
16
+ @session_data = params[:session_data] || params["rack.session"] || {}
17
17
  @controller = params[:controller]
18
- @action = params[:action]
19
- @request_url = params[:request_url] || params["PATH_INFO"]
20
- @user_agent = params[:user_agent]
18
+ @action = params[:action] || params["REQUEST_PATH"]
19
+ @request_url = params[:request_url] || params["REQUEST_PATH"]
20
+ @user_agent = params[:user_agent] || params["HTTP_USER_AGENT"]
21
21
  @custom_data = params[:custom_data] || {}
22
22
  end
23
23
 
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.4.6"
2
+ VERSION = "0.4.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: errplane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.4.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: