rollbar 0.12.10 → 0.12.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/generators/rollbar/templates/initializer.rb +1 -1
- data/lib/rollbar.rb +6 -4
- data/lib/rollbar/version.rb +1 -1
- data/spec/rollbar_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 224237219a5e86bf176e6b7bb6752e7afd93e4b2
|
4
|
+
data.tar.gz: 178f549cc06d75334172dceedecc3ba98e47c68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f71e6ece9ee2010b4b176757ba096652606ff415457a6c5304379a4c8c8af96d484da3662a0c73ebd4c3930c75c2478c3a8a52101984566a02f8061e689d0906
|
7
|
+
data.tar.gz: 761e80838ce6cbd442ea66eae9fb69bb3426f71194cb7003761587cd6a1f400c318fab09e47f203678c4c4b7d1d7b38f56e7b02e7aa39eb14b13435468e76942
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@ require 'rollbar/rails'
|
|
2
2
|
Rollbar.configure do |config|
|
3
3
|
config.access_token = <%= access_token_expr %>
|
4
4
|
|
5
|
-
# Without configuration, Rollbar is enabled
|
5
|
+
# Without configuration, Rollbar is enabled in all environments.
|
6
6
|
# To disable in specific environments, set config.enabled=false.
|
7
7
|
# Here we'll disable in 'test':
|
8
8
|
if Rails.env.test?
|
data/lib/rollbar.rb
CHANGED
@@ -19,7 +19,7 @@ require 'rollbar/util'
|
|
19
19
|
require 'rollbar/railtie' if defined?(Rails)
|
20
20
|
|
21
21
|
module Rollbar
|
22
|
-
MAX_PAYLOAD_SIZE =
|
22
|
+
MAX_PAYLOAD_SIZE = 128 * 1024 #128kb
|
23
23
|
|
24
24
|
class << self
|
25
25
|
attr_writer :configuration
|
@@ -512,9 +512,11 @@ module Rollbar
|
|
512
512
|
|
513
513
|
def send_failsafe(message, exception)
|
514
514
|
log_error "[Rollbar] Sending failsafe response due to #{message}."
|
515
|
-
|
516
|
-
|
517
|
-
|
515
|
+
if exception
|
516
|
+
begin
|
517
|
+
log_error "[Rollbar] #{exception.class.name}: #{exception}"
|
518
|
+
rescue => e
|
519
|
+
end
|
518
520
|
end
|
519
521
|
|
520
522
|
config = configuration
|
data/lib/rollbar/version.rb
CHANGED
data/spec/rollbar_spec.rb
CHANGED
@@ -621,7 +621,7 @@ describe Rollbar do
|
|
621
621
|
end
|
622
622
|
|
623
623
|
it 'should truncate large strings if the payload is too big' do
|
624
|
-
json = Rollbar.send(:build_payload, {:foo => {:bar => "baz"}, :large => 'a' * (
|
624
|
+
json = Rollbar.send(:build_payload, {:foo => {:bar => "baz"}, :large => 'a' * (128 * 1024), :small => 'b' * 1024})
|
625
625
|
hash = MultiJson.load(json)
|
626
626
|
hash["data"]["large"].should == '%s...' % ('a' * 1021)
|
627
627
|
hash["data"]["small"].should == 'b' * 1024
|
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.12.
|
4
|
+
version: 0.12.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Rue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|