exceptio-ruby 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,8 +17,8 @@ module ExceptIO
17
17
  end
18
18
  end
19
19
 
20
- def self.log(exception)
21
- res = self.post("/applications/#{@application}/errors", {:query => {:app_key => @app_key}, :body => {:error => {:message => exception.message, :backtrace => exception.backtrace}}})
20
+ def self.log(exception, environment = "production", params = {}, session = {})
21
+ res = self.post("/applications/#{@application}/errors", {:query => {:app_key => @app_key}, :body => {:error => {:message => exception.message, :backtrace => exception.backtrace, :environment => environment, :params => params, :session => session}}})
22
22
  res.code == 201
23
23
  end
24
24
  end
@@ -2,13 +2,13 @@ module ExceptIO
2
2
  module Hooks
3
3
  module Rails23
4
4
  def log_error(exception)
5
- ExceptIO::Client.log(exception)
5
+ ExceptIO::Client.log(exception, Rails.env, params, session)
6
6
  end
7
7
  end
8
8
 
9
9
  module Rails3
10
10
  def rescue_to_exceptio(exception = nil)
11
- ExceptIO::Client.log(exception)
11
+ ExceptIO::Client.log(exception, Rails.env, params, session)
12
12
  raise exception
13
13
  end
14
14
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Elliott Draper
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-12-09 00:00:00 +00:00
17
+ date: 2011-12-16 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency