rollbar 0.12.10 → 0.12.11

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: 88ac00441d336613c80d821e682e4e8c5250cbd4
4
- data.tar.gz: d6441c75660074ac8aa6b2108cd2a6f20bff35d8
3
+ metadata.gz: 224237219a5e86bf176e6b7bb6752e7afd93e4b2
4
+ data.tar.gz: 178f549cc06d75334172dceedecc3ba98e47c68e
5
5
  SHA512:
6
- metadata.gz: 68bbecf026c56a3320a84cf58af48a5ef9b5d42b7c13e10fe5c0ceba680419d6fb61ce5babcffb51b92e17449d8eb6c1db65eab86b6a4d263393f4d178938ab9
7
- data.tar.gz: c5798afb37d2f45b8de7b05c6052d97742bc5a31ecd78e850bcdb5d1326426a26e0f2c7c392d9d450c0ddfdadc651a4597e054a90409c4b9d17a8195e22b6549
6
+ metadata.gz: f71e6ece9ee2010b4b176757ba096652606ff415457a6c5304379a4c8c8af96d484da3662a0c73ebd4c3930c75c2478c3a8a52101984566a02f8061e689d0906
7
+ data.tar.gz: 761e80838ce6cbd442ea66eae9fb69bb3426f71194cb7003761587cd6a1f400c318fab09e47f203678c4c4b7d1d7b38f56e7b02e7aa39eb14b13435468e76942
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ **0.12.11**
4
+ - Raise payload size limit to 128k
5
+
3
6
  **0.12.10**
4
7
  - Log payloads that are too large to be sent to Rollbar
5
8
  - Don't record controller context if request route info isn't readily available (ex. non-Rails)
@@ -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 by in all environments.
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?
@@ -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 = 32 * 1042 #32kb
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
- begin
516
- log_error "[Rollbar] #{exception.class.name}: #{exception}"
517
- rescue => e
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
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "0.12.10"
2
+ VERSION = "0.12.11"
3
3
  end
@@ -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' * (64 * 1024), :small => 'b' * 1024})
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.10
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-05 00:00:00.000000000 Z
11
+ date: 2014-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json