rollbar 0.10.8 → 0.10.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +3 -0
- data/THANKS.md +1 -0
- data/lib/rollbar.rb +10 -10
- data/lib/rollbar/version.rb +1 -1
- metadata +3 -2
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
**0.10.9**
|
4
|
+
- Fix regression introduced in 0.10.7 when ActiveRecord is not present.
|
5
|
+
|
3
6
|
**0.10.8**
|
4
7
|
- Better handling of internal errors. Internal errors (errors that occur while reporting something to Rollbar) are now themselves reported to Rollbar. If that fails, a failsafe message will be reported, and if that fails, the error will be logged as it is now.
|
5
8
|
- Fix bug reporting exceptions with backtraces containing frames that don't match our regex.
|
data/THANKS.md
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
Huge thanks to the following contributors (by github username). For the most up-to-date list, see https://github.com/rollbar/rollbar-gem/graphs/contributors
|
4
4
|
|
5
5
|
- [arr-ee](https://github.com/arr-ee)
|
6
|
+
- [awmichel](https://github.com/awmichel)
|
6
7
|
- [dimko](https://github.com/dimko)
|
7
8
|
- [fabsays](https://github.com/fabsays)
|
8
9
|
- [firstbanco](https://github.com/firstbanco)
|
data/lib/rollbar.rb
CHANGED
@@ -12,7 +12,7 @@ require 'rollbar/version'
|
|
12
12
|
require 'rollbar/configuration'
|
13
13
|
require 'rollbar/request_data_extractor'
|
14
14
|
require 'rollbar/exception_reporter'
|
15
|
-
require 'rollbar/active_record_extension'
|
15
|
+
require 'rollbar/active_record_extension' if defined?(ActiveRecord)
|
16
16
|
|
17
17
|
require 'rollbar/railtie' if defined?(Rails)
|
18
18
|
|
@@ -155,7 +155,7 @@ module Rollbar
|
|
155
155
|
require 'rollbar/rake' if defined?(Rake)
|
156
156
|
require 'rollbar/better_errors' if defined?(BetterErrors)
|
157
157
|
end
|
158
|
-
|
158
|
+
|
159
159
|
def log_instance_link(data)
|
160
160
|
log_info "[Rollbar] Details: #{configuration.web_base}/instance/uuid?uuid=#{data[:uuid]} (only available if report was successful)"
|
161
161
|
end
|
@@ -394,7 +394,7 @@ module Rollbar
|
|
394
394
|
puts "[Rollbar] #{message}"
|
395
395
|
end
|
396
396
|
end
|
397
|
-
|
397
|
+
|
398
398
|
def log_info(message)
|
399
399
|
begin
|
400
400
|
logger.info message
|
@@ -412,12 +412,12 @@ module Rollbar
|
|
412
412
|
puts "[Rollbar] #{message}"
|
413
413
|
end
|
414
414
|
end
|
415
|
-
|
415
|
+
|
416
416
|
# Reports an internal error in the Rollbar library. This will be reported within the configured
|
417
417
|
# Rollbar project. We'll first attempt to provide a report including the exception traceback.
|
418
418
|
# If that fails, we'll fall back to a more static failsafe response.
|
419
419
|
def report_internal_error(exception)
|
420
|
-
log_error "[Rollbar] Reporting internal error encountered while sending data to Rollbar."
|
420
|
+
log_error "[Rollbar] Reporting internal error encountered while sending data to Rollbar."
|
421
421
|
|
422
422
|
begin
|
423
423
|
data = exception_data(exception, 'error')
|
@@ -427,14 +427,14 @@ module Rollbar
|
|
427
427
|
end
|
428
428
|
|
429
429
|
data[:internal] = true
|
430
|
-
|
430
|
+
|
431
431
|
begin
|
432
432
|
payload = build_payload(data)
|
433
433
|
rescue => e
|
434
|
-
send_failsafe("error in build_payload", e)
|
434
|
+
send_failsafe("error in build_payload", e)
|
435
435
|
return
|
436
436
|
end
|
437
|
-
|
437
|
+
|
438
438
|
begin
|
439
439
|
schedule_payload(payload)
|
440
440
|
rescue => e
|
@@ -456,7 +456,7 @@ module Rollbar
|
|
456
456
|
|
457
457
|
config = configuration
|
458
458
|
environment = config.environment
|
459
|
-
|
459
|
+
|
460
460
|
failsafe_payload = <<-eos
|
461
461
|
{"access_token": "#{config.access_token}",
|
462
462
|
"data": {
|
@@ -476,7 +476,7 @@ module Rollbar
|
|
476
476
|
log_error "[Rollbar] Error sending failsafe : #{e}"
|
477
477
|
end
|
478
478
|
end
|
479
|
-
|
479
|
+
|
480
480
|
end
|
481
481
|
|
482
482
|
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.9
|
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-08-
|
12
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
@@ -288,3 +288,4 @@ test_files:
|
|
288
288
|
- spec/requests/home_spec.rb
|
289
289
|
- spec/rollbar_spec.rb
|
290
290
|
- spec/spec_helper.rb
|
291
|
+
has_rdoc:
|