rollbar 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 629a976cd25d915aed389102855a596e77a6c8af
4
- data.tar.gz: 4dee53826f0b68b41031143156df4f74ed5a1edb
3
+ metadata.gz: bc55396a96c6b16fe230a587d3eb2486f40a1574
4
+ data.tar.gz: 7780ae62e54a6bc8e3977d1916361b6bf2fb1fd6
5
5
  SHA512:
6
- metadata.gz: 682326d676624bf665d6ecef1b0b5fb5d7040dd2acd44126b41070684fdb5a341d2464302e6fc6fc6ce5493483fe6dedf07359303d738c654f23463e773d75ee
7
- data.tar.gz: c56866b778b5209a2d273340c54ff01d7b6c72de07a986b38072d23e3e0e3c018440b5b2bb31c09c48383c25ed131aedfe0534662b72afbcb19c68228f191034
6
+ metadata.gz: a9a6cae7d73dac79d404562e86f40d395bacb8a98a02488df4c48b0da5e40ee11de4af3737c843f675a8aa40be11fad7ed514bac2c7ed13d9c95738fa1665851
7
+ data.tar.gz: 1527898a37f25131f5f060c52e1d42c3dc4ea7af55fc6203bf3ba73baf08943e79ab7cba8545f4a0762b17fe05dd633c871dd2adf70e9dea8c571fa4a58e2a54
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.5.2
4
+
5
+ Bug fixes:
6
+
7
+ - Fix minimum body truncation strategy when the payload is a message without exception. See [#240](https://github.com/rollbar/rollbar-gem/pull/240)
8
+
3
9
  ## 1.5.1
4
10
 
5
11
  Bug fixes:
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rollbar notifier for Ruby [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v1.5.1)](https://travis-ci.org/rollbar/rollbar-gem/branches)
1
+ # Rollbar notifier for Ruby [![Build Status](https://api.travis-ci.org/rollbar/rollbar-gem.svg?branch=v1.5.2)](https://travis-ci.org/rollbar/rollbar-gem/branches)
2
2
 
3
3
  <!-- RemoveNext -->
4
4
  [Rollbar](https://rollbar.com) is an error tracking service for Ruby and other languages. The Rollbar service will alert you of problems with your code and help you understand them in a ways never possible before. We love it and we hope you will too.
@@ -12,7 +12,7 @@ This is the Ruby library for Rollbar. It will instrument many kinds of Ruby appl
12
12
  Add this line to your application's Gemfile:
13
13
 
14
14
  ```ruby
15
- gem 'rollbar', '~> 1.5.1'
15
+ gem 'rollbar', '~> 1.5.2'
16
16
  ```
17
17
 
18
18
  And then execute:
@@ -17,7 +17,7 @@ module Rollbar
17
17
  body['trace_chain'] = body['trace_chain'].map do |trace_data|
18
18
  truncate_trace_data(trace_data)
19
19
  end
20
- else
20
+ elsif body['trace']
21
21
  body['trace'] = truncate_trace_data(body['trace'])
22
22
  end
23
23
 
@@ -1,3 +1,3 @@
1
1
  module Rollbar
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
@@ -0,0 +1,25 @@
1
+ {
2
+ "body": {
3
+ "message": {
4
+ "body": "Test message"
5
+ }
6
+ },
7
+ "uuid": "7160cbee-de83-4e5d-bdc9-3fe195b711e4",
8
+ "language": "ruby",
9
+ "level": "info",
10
+ "timestamp": 1429703495,
11
+ "server": {
12
+ "pid": 2515,
13
+ "host": "testing-worker-linux-docker-0201352d-3376-linux-15",
14
+ "root": "/home/travis/build/rollbar/rollbar-gem/spec/dummyapp"
15
+ },
16
+ "environment": "unspecified",
17
+ "framework": "Rails: 3.2.21",
18
+ "notifier": {
19
+ "version": "1.5.1",
20
+ "name": "rollbar-gem"
21
+ },
22
+ "metadata": {
23
+ "customer_timestamp": 1429703494
24
+ }
25
+ }
@@ -43,5 +43,15 @@ describe Rollbar::Truncation::MinBodyStrategy do
43
43
  expect(traces[1]['exception']['message']).to be_eql('a' * 255)
44
44
  end
45
45
  end
46
+
47
+ context 'with a message payload' do
48
+ let(:payload_fixture) { 'payloads/sample.trace_chain.json' }
49
+
50
+ it "doesn't truncate anything and returns same payload" do
51
+ result = MultiJson.load(described_class.call(payload))
52
+
53
+ expect(result).to be_eql(payload)
54
+ end
55
+ end
46
56
  end
47
57
  end
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: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rollbar, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-22 00:00:00.000000000 Z
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -299,6 +299,7 @@ files:
299
299
  - spec/dummyapp/public/500.html
300
300
  - spec/dummyapp/public/favicon.ico
301
301
  - spec/dummyapp/script/rails
302
+ - spec/fixtures/payloads/message.json
302
303
  - spec/fixtures/payloads/sample.trace.json
303
304
  - spec/fixtures/payloads/sample.trace_chain.json
304
305
  - spec/generators/rollbar/rollbar_generator_spec.rb
@@ -405,6 +406,7 @@ test_files:
405
406
  - spec/dummyapp/public/500.html
406
407
  - spec/dummyapp/public/favicon.ico
407
408
  - spec/dummyapp/script/rails
409
+ - spec/fixtures/payloads/message.json
408
410
  - spec/fixtures/payloads/sample.trace.json
409
411
  - spec/fixtures/payloads/sample.trace_chain.json
410
412
  - spec/generators/rollbar/rollbar_generator_spec.rb