rollbar 0.10.0 → 0.10.1
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.
- data/CHANGELOG.md +3 -0
- data/lib/rollbar/middleware/rails/show_exceptions.rb +13 -0
- data/lib/rollbar/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
**0.10.1**
|
4
|
+
- Fix regression in 0.10.0 reporting exceptions in development environments and rails < 3.2 apps.
|
5
|
+
|
3
6
|
**0.10.0**
|
4
7
|
- Fixed bug causing duplicate reports when used inside Rails in production with the default error pages. Bumping version to 0.10.0 in case this turns out to be backwards-incompatible for some use cases (i.e. for applications that were relying on the duplicate report that has now been removed).
|
5
8
|
|
@@ -4,15 +4,28 @@ module Rollbar
|
|
4
4
|
module ShowExceptions
|
5
5
|
include ExceptionReporter
|
6
6
|
|
7
|
+
def render_exception_with_rollbar(env, exception)
|
8
|
+
key = 'action_dispatch.show_detailed_exceptions'
|
9
|
+
|
10
|
+
# don't report production exceptions here as it is done below
|
11
|
+
# in call_with_rollbar() when show_detailed_exception is false
|
12
|
+
if not env.has_key?(key) or env[key]
|
13
|
+
report_exception_to_rollbar(env, exception)
|
14
|
+
end
|
15
|
+
render_exception_without_rollbar(env, exception)
|
16
|
+
end
|
17
|
+
|
7
18
|
def call_with_rollbar(env)
|
8
19
|
call_without_rollbar(env)
|
9
20
|
rescue => exception
|
21
|
+
# won't reach here if show_detailed_exceptions is true
|
10
22
|
report_exception_to_rollbar(env, exception)
|
11
23
|
raise exception
|
12
24
|
end
|
13
25
|
|
14
26
|
def self.included(base)
|
15
27
|
base.send(:alias_method_chain, :call, :rollbar)
|
28
|
+
base.send(:alias_method_chain, :render_exception, :rollbar)
|
16
29
|
end
|
17
30
|
end
|
18
31
|
end
|
data/lib/rollbar/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.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-06-
|
12
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|