rollbar 0.10.12 → 0.10.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +6 -0
- data/lib/rollbar.rb +4 -0
- data/lib/rollbar/better_errors.rb +8 -7
- data/lib/rollbar/configuration.rb +2 -0
- data/lib/rollbar/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDc4YjdkMjFkMWM2Y2ZjODM5MjVjOTRmOTkyYzdkNTdjOWZjMGU2Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTg3YWJmOWNjZThlZmM4ZGEyZjFiOWRjMmRmYWVkMzU4OTQ5NWU0Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDk2YTk4NmVkYzJlZGQwZmFmZWU3ZmM0YmEzYWEzZjIwYzlhYzMxMjFhN2Uy
|
10
|
+
Mzc1YTRhNWViNzE5NjgzNGFjMzMxYjgxYTI1Y2MwZDEwZDM0ZThmNDVkYzgz
|
11
|
+
NDY5MTZkY2U2OTkyYWExZjE0OWI3NDBmOTYxMDE0MWFjZWEwMjM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODZmMzhiY2ZlNGQ3YmI5OTI3NTU5ZGRmOGExY2YwOTlkZTVkYzM0MDBmMmZk
|
14
|
+
YzQzZWNiNWNiZGM3OGY5NmQ4NzBkMTlhZjE1OWU4NGNkNmE4YzFjMTExODc2
|
15
|
+
NDZiZTUxZTIxNmRkMzE3MTUzN2IyYmMzNWIwNDg5ZTNiYzFiNjk=
|
data/CHANGELOG.md
CHANGED
data/lib/rollbar.rb
CHANGED
@@ -3,12 +3,13 @@ require 'better_errors'
|
|
3
3
|
module BetterErrors
|
4
4
|
class Middleware
|
5
5
|
alias_method :orig_show_error_page, :show_error_page
|
6
|
-
|
6
|
+
|
7
7
|
private
|
8
8
|
|
9
|
-
def show_error_page(
|
9
|
+
def show_error_page(*args)
|
10
10
|
exception = @error_page.exception
|
11
|
-
|
11
|
+
|
12
|
+
env = args.first
|
12
13
|
exception_data = nil
|
13
14
|
begin
|
14
15
|
controller = env['action_controller.instance']
|
@@ -17,9 +18,9 @@ module BetterErrors
|
|
17
18
|
exception_data = Rollbar.report_exception(exception, request_data, person_data)
|
18
19
|
rescue => e
|
19
20
|
# TODO use logger here?
|
20
|
-
puts "[Rollbar] Exception while reporting exception to Rollbar: #{e}"
|
21
|
+
puts "[Rollbar] Exception while reporting exception to Rollbar: #{e}"
|
21
22
|
end
|
22
|
-
|
23
|
+
|
23
24
|
# if an exception was reported, save uuid in the env
|
24
25
|
# so it can be displayed to the user on the error page
|
25
26
|
if exception_data.is_a?(Hash)
|
@@ -30,9 +31,9 @@ module BetterErrors
|
|
30
31
|
elsif exception_data == 'ignored'
|
31
32
|
puts "[Rollbar] Exception not reported because it was ignored"
|
32
33
|
end
|
33
|
-
|
34
|
+
|
34
35
|
# now continue as normal
|
35
|
-
orig_show_error_page(
|
36
|
+
orig_show_error_page(*args)
|
36
37
|
end
|
37
38
|
end
|
38
39
|
end
|
@@ -6,6 +6,7 @@ module Rollbar
|
|
6
6
|
attr_accessor :access_token
|
7
7
|
attr_accessor :async_handler
|
8
8
|
attr_accessor :branch
|
9
|
+
attr_accessor :code_version
|
9
10
|
attr_accessor :custom_data_method
|
10
11
|
attr_accessor :default_logger
|
11
12
|
attr_accessor :enabled
|
@@ -35,6 +36,7 @@ module Rollbar
|
|
35
36
|
|
36
37
|
def initialize
|
37
38
|
@async_handler = nil
|
39
|
+
@code_version = nil
|
38
40
|
@custom_data_method = nil
|
39
41
|
@default_logger = lambda { Logger.new(STDERR) }
|
40
42
|
@enabled = nil # set to true when configure is called
|
data/lib/rollbar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Rue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|