rollbar 0.10.5 → 0.10.6
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.
- data/CHANGELOG.md +3 -0
- data/THANKS.md +1 -0
- data/lib/rollbar.rb +4 -1
- data/lib/rollbar/version.rb +1 -1
- data/rollbar.gemspec +1 -1
- data/spec/rollbar_spec.rb +20 -0
- metadata +6 -6
data/CHANGELOG.md
CHANGED
data/THANKS.md
CHANGED
@@ -14,6 +14,7 @@ Huge thanks to the following contributors (by github username). For the most up-
|
|
14
14
|
- [kavu](https://github.com/kavu)
|
15
15
|
- [magnolia-fan](https://github.com/magnolia-fan)
|
16
16
|
- [mipearson](https://github.com/mipearson)
|
17
|
+
- [rogercampos](https://github.com/rogercampos)
|
17
18
|
- [siong1987](https://github.com/siong1987)
|
18
19
|
- [trisweb](https://github.com/trisweb)
|
19
20
|
- [tysontate](https://github.com/tysontate)
|
data/lib/rollbar.rb
CHANGED
@@ -75,7 +75,10 @@ module Rollbar
|
|
75
75
|
return 'ignored' if ignored?(exception)
|
76
76
|
|
77
77
|
data = exception_data(exception, filtered_level(exception))
|
78
|
-
|
78
|
+
if request_data
|
79
|
+
request_data[:env].reject!{|k, v| v.is_a?(IO) } if request_data[:env]
|
80
|
+
data[:request] = request_data
|
81
|
+
end
|
79
82
|
data[:person] = person_data if person_data
|
80
83
|
|
81
84
|
@last_report = data
|
data/lib/rollbar/version.rb
CHANGED
data/rollbar.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
|
19
19
|
gem.add_development_dependency 'rails', '>= 3.0.0'
|
20
20
|
gem.add_development_dependency 'rspec-rails', '~> 2.12.0'
|
21
|
-
gem.add_development_dependency 'database_cleaner', '
|
21
|
+
gem.add_development_dependency 'database_cleaner', '~> 1.0.0'
|
22
22
|
gem.add_development_dependency 'girl_friday', '>= 0.11.1'
|
23
23
|
gem.add_development_dependency 'genspec', '>= 0.2.7'
|
24
24
|
end
|
data/spec/rollbar_spec.rb
CHANGED
@@ -83,6 +83,26 @@ describe Rollbar do
|
|
83
83
|
Rollbar.report_exception(@exception, request_data, person_data)
|
84
84
|
end
|
85
85
|
|
86
|
+
it "should work with an IO object as rack.errors" do
|
87
|
+
logger_mock.should_receive(:info).with('[Rollbar] Success')
|
88
|
+
request_data = {
|
89
|
+
:params => { :foo => "bar" },
|
90
|
+
:url => 'http://localhost/',
|
91
|
+
:user_ip => '127.0.0.1',
|
92
|
+
:headers => {},
|
93
|
+
:GET => { "baz" => "boz" },
|
94
|
+
:session => { :user_id => 123 },
|
95
|
+
:method => "GET",
|
96
|
+
:env => { :"rack.errors" => IO.new(2, File::WRONLY) },
|
97
|
+
}
|
98
|
+
person_data = {
|
99
|
+
:id => 1,
|
100
|
+
:username => "test",
|
101
|
+
:email => "test@example.com"
|
102
|
+
}
|
103
|
+
Rollbar.report_exception(@exception, request_data, person_data)
|
104
|
+
end
|
105
|
+
|
86
106
|
it 'should ignore ignored exception classes' do
|
87
107
|
saved_filters = Rollbar.configuration.exception_level_filters
|
88
108
|
Rollbar.configure do |config|
|
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.6
|
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-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|
@@ -64,17 +64,17 @@ dependencies:
|
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.
|
69
|
+
version: 1.0.0
|
70
70
|
type: :development
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 1.0.0
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: girl_friday
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|