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 +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +2 -2
- data/lib/rollbar/truncation/min_body_strategy.rb +1 -1
- data/lib/rollbar/version.rb +1 -1
- data/spec/fixtures/payloads/message.json +25 -0
- data/spec/rollbar/truncation/min_body_strategy_spec.rb +10 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc55396a96c6b16fe230a587d3eb2486f40a1574
|
4
|
+
data.tar.gz: 7780ae62e54a6bc8e3977d1916361b6bf2fb1fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9a6cae7d73dac79d404562e86f40d395bacb8a98a02488df4c48b0da5e40ee11de4af3737c843f675a8aa40be11fad7ed514bac2c7ed13d9c95738fa1665851
|
7
|
+
data.tar.gz: 1527898a37f25131f5f060c52e1d42c3dc4ea7af55fc6203bf3ba73baf08943e79ab7cba8545f4a0762b17fe05dd633c871dd2adf70e9dea8c571fa4a58e2a54
|
data/CHANGELOG.md
CHANGED
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
|
+
# 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.
|
15
|
+
gem 'rollbar', '~> 1.5.2'
|
16
16
|
```
|
17
17
|
|
18
18
|
And then execute:
|
data/lib/rollbar/version.rb
CHANGED
@@ -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.
|
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-
|
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
|