errplane 0.4.8 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,6 +3,7 @@
3
3
  if ENV["BUNDLE_GEMFILE"] == File.expand_path("Gemfile")
4
4
  ENV["BUNDLE_GEMFILE"] = "gemfiles/Gemfile.rails-3.2.x"
5
5
  end
6
+ puts "RAKEFILE"
6
7
 
7
8
  require 'bundler'
8
9
  Bundler::GemHelper.install_tasks
@@ -12,12 +12,12 @@ module Errplane
12
12
 
13
13
  def initialize(params = {})
14
14
  @exception = params[:exception]
15
- @params = params[:params] || params["rack.request.query_hash"] || {}
16
- @session_data = params[:session_data] || params["rack.session"] || {}
15
+ @params = params[:params]
16
+ @session_data = params[:session_data]
17
17
  @controller = params[:controller]
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"]
18
+ @action = params[:action]
19
+ @request_url = params[:request_url]
20
+ @user_agent = params[:user_agent]
21
21
  @custom_data = params[:custom_data] || {}
22
22
  end
23
23
 
@@ -1,5 +1,5 @@
1
1
  Errplane.configure(true) do |config|
2
- config.logger ||= (defined?(logger) ? logger : ENV['rack.logger'])
2
+ config.logger ||= (defined?(logger) ? logger : ENV['rack.logger'])
3
3
  config.framework = "Sinatra"
4
4
  config.framework_version = ::Sinatra::VERSION
5
5
 
@@ -13,7 +13,9 @@ def handle_exception(e)
13
13
  request_data = {
14
14
  :request_url => request.env["REQUEST_URI"],
15
15
  :user_agent => request.env["HTTP_USER_AGENT"],
16
- :session => (defined?(session) ? session : {})
16
+ :params => params["rack.request.query_hash"],
17
+ :action => params["REQUEST_PATH"],
18
+ :session => (defined?(session) ? session : params["rack.session"]) || {}
17
19
  }
18
20
 
19
21
  Errplane.transmit_unless_ignorable(e, request_data)
@@ -1,3 +1,3 @@
1
1
  module Errplane
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.9"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
  ENV["RAILS_ENV"] ||= "test"
4
4
 
5
+ puts "CALLING"
5
6
  require 'rails/version'
6
7
 
7
8
  if Rails::VERSION::MAJOR > 2
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.8
4
+ version: 0.4.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-08-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &70155376260180 !ruby/object:Gem::Requirement
16
+ requirement: &70288038296100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70155376260180
24
+ version_requirements: *70288038296100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &70155376259420 !ruby/object:Gem::Requirement
27
+ requirement: &70288038295540 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.3.14
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70155376259420
35
+ version_requirements: *70288038295540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: actionpack
38
- requirement: &70155376258880 !ruby/object:Gem::Requirement
38
+ requirement: &70288038294940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.3.14
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70155376258880
46
+ version_requirements: *70288038294940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &70155376258160 !ruby/object:Gem::Requirement
49
+ requirement: &70288038294180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70155376258160
57
+ version_requirements: *70288038294180
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: fakeweb
60
- requirement: &70155376257460 !ruby/object:Gem::Requirement
60
+ requirement: &70288038293280 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70155376257460
68
+ version_requirements: *70288038293280
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard
71
- requirement: &70155376256680 !ruby/object:Gem::Requirement
71
+ requirement: &70288038292780 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70155376256680
79
+ version_requirements: *70288038292780
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: guard-rspec
82
- requirement: &70155376256160 !ruby/object:Gem::Requirement
82
+ requirement: &70288038292260 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70155376256160
90
+ version_requirements: *70288038292260
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rake
93
- requirement: &70155376255620 !ruby/object:Gem::Requirement
93
+ requirement: &70288038291760 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70155376255620
101
+ version_requirements: *70288038291760
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: rdoc
104
- requirement: &70155376255060 !ruby/object:Gem::Requirement
104
+ requirement: &70288038291240 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *70155376255060
112
+ version_requirements: *70288038291240
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: rspec
115
- requirement: &70155376254580 !ruby/object:Gem::Requirement
115
+ requirement: &70288038290680 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *70155376254580
123
+ version_requirements: *70288038290680
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: tzinfo
126
- requirement: &70155376254080 !ruby/object:Gem::Requirement
126
+ requirement: &70288038290160 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70155376254080
134
+ version_requirements: *70288038290160
135
135
  description: This gem provides exception reporting with Errplane for Rails 3.x applications.
136
136
  email:
137
137
  - todd@errplane.com