exceptiontrap 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -5,11 +5,11 @@ This gem is used to catch and report your Ruby on Rails applications errors and
5
5
  The gem is compatible with the following Rails versions
6
6
 
7
7
  - >= 2.3
8
- - >= 3
8
+ - 3 and 4
9
9
 
10
10
  ## Setup
11
11
 
12
- ### Rails 3
12
+ ### Rails 3 / 4
13
13
 
14
14
  #### 1. Install
15
15
 
@@ -25,7 +25,6 @@ module Exceptiontrap
25
25
 
26
26
  # Sends the exception to exceptiontrap
27
27
  def handle_with_exceptiontrap(exception)
28
- # puts "DEBUG: Raised Exceptiontrap::Catcher::Exception"
29
28
  data = Exceptiontrap::Data.rails2_data(exception, request, session, response)
30
29
  Exceptiontrap::Notifier.notify(data)
31
30
  end
@@ -2,16 +2,12 @@ module Exceptiontrap
2
2
  class Notifier
3
3
  class << self
4
4
  def notify(data)
5
- puts 'DEBUG: Notify Exception'
6
-
7
5
  @data = data
8
6
  serialized_data = { :problem => data }.to_json
9
7
  send_problem(serialized_data) unless ignore_exception?
10
8
  end
11
9
 
12
10
  def send_problem(serialized_data)
13
- puts 'DEBUG: Send Exception'
14
-
15
11
  url = URI.parse((Config.use_ssl? ? 'https://' : 'http://') << NOTIFICATION_URL)
16
12
  client = prepare_client(url)
17
13
 
@@ -6,7 +6,6 @@ module Exceptiontrap
6
6
 
7
7
  def call(env)
8
8
  begin
9
- puts 'DEBUG: Begin Exceptiontrap::Rack'
10
9
  response = @app.call(env)
11
10
  rescue Exception => raised
12
11
  puts 'DEBUG: Raised Exceptiontrap::Rack::Exception'
@@ -1,3 +1,3 @@
1
1
  module Exceptiontrap
2
- VERSION = '1.0.0'
2
+ VERSION = '1.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exceptiontrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
12
+ date: 2013-05-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Exception notifier. The Gem catches your applications exceptions and
15
15
  sends those to the exceptiontrap webservice hosted at http://exceptiontrap.com