exceptiontrap 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff8525dae639cb1e13860ed2726bd7ba7d1a5ce2
4
- data.tar.gz: 1fe09c4dc4592d48f727671272e0a9e09b401e4c
3
+ metadata.gz: 49907b23c4e9af081032e2c5580fc5a621635d92
4
+ data.tar.gz: 1dd093050c116d3fc04100109d679de0e6470a5e
5
5
  SHA512:
6
- metadata.gz: aa13f5655f356fcbebf2a68c19e3e63162f3e236e0b9f6a835ca673f650c53615dc9c21948f1ce8398453194b80e8c8a4f1279aaf72386e10bfe8aaac6071b47
7
- data.tar.gz: fe92a6d76aafe783dfb2ef023c1d7b6ca533c5138fbaa1209dc51aca7c095c32c75f8f962d16f19adef3b9d6de5bcb776714386eefe585f51f00145debb533d5
6
+ metadata.gz: 729ccbf4a33cf1c096a08696552c5c6cf63e7bb2cc42dbe51a520a120fcb2db81808576a9a7774ca2862681cb458a9acb007da6eb262708ee534ef7b366a18fa
7
+ data.tar.gz: 7869390f0b205b5ece24837fb8ad6eb8604287698c5dd588a3895928b66c6a6fba91652cb6d4a553aa68083f5e37093d96450dffbc677eb6fd493ef41a5eee31
@@ -1,6 +1,9 @@
1
1
  # Exceptiontrap Config File
2
+
3
+ # If ENV['api-key'] is set, it will be used instead of the following api-key
4
+ # This happens for example, if you use the exceptiontrap addon on heroku
2
5
  api-key: <%= api_key %>
3
- ssl: false
6
+ ssl: true
4
7
  timeout: 5000
5
8
  enabledEnvironments:
6
9
  - 'production'
@@ -7,9 +7,10 @@ module Exceptiontrap
7
7
  def call(env)
8
8
  begin
9
9
  response = @app.call(env)
10
- rescue Exception => raised
10
+ rescue Exception => exception
11
11
  puts '[Exceptiontrap] Raised Exceptiontrap::Rack::Exception'
12
- data = Exceptiontrap::Data.rack_data(raised, env)
12
+ puts "[Exceptiontrap] Catched Exception: #{exception.class.name}"
13
+ data = Exceptiontrap::Data.rack_data(exception, env)
13
14
  Exceptiontrap::Notifier.notify(data)
14
15
  raise
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module Exceptiontrap
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
@@ -1,6 +1,9 @@
1
1
  # Exceptiontrap Config File
2
+
3
+ # If ENV['api-key'] is set, it will be used instead of the following api-key
4
+ # This happens for example, if you use the exceptiontrap addon on heroku
2
5
  api-key: <%= api_key %>
3
- ssl: false
6
+ ssl: true
4
7
  timeout: 5000
5
8
  enabledEnvironments:
6
9
  - 'production'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exceptiontrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - tbuehl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-28 00:00:00.000000000 Z
11
+ date: 2013-09-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Exception notifier. The Gem catches your applications exceptions and
14
14
  sends those to the exceptiontrap webservice hosted at http://exceptiontrap.com
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  version: '0'
64
64
  requirements: []
65
65
  rubyforge_project: exceptiontrap
66
- rubygems_version: 2.0.3
66
+ rubygems_version: 2.0.6
67
67
  signing_key:
68
68
  specification_version: 4
69
69
  summary: Exception notifier, used to report your apps exceptions to the exceptiontrap
@@ -71,3 +71,4 @@ summary: Exception notifier, used to report your apps exceptions to the exceptio
71
71
  test_files:
72
72
  - test/exceptiontrap_test.rb
73
73
  - test/test_helper.rb
74
+ has_rdoc: