resque-rollbar 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/README.md +7 -4
- data/gemfiles/rollbar-0.8.x.gemfile +14 -0
- data/gemfiles/rollbar-1.0.x.gemfile +14 -0
- data/lib/resque/rollbar.rb +7 -0
- data/lib/resque/rollbar/version.rb +1 -1
- data/resque-rollbar.gemspec +1 -1
- data/spec/resque/failure/rollbar_spec.rb +1 -1
- data/spec/rollbar_spec.rb +12 -0
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: baadc8483dae7f6cebe5df65964dda451a0099c2
|
4
|
+
data.tar.gz: 166ff988faa3c7d82417207b887c05ecc29e591e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17441b17a16be0869ece559ec3185a9f488f5a5199ea3581c2e26f089a5cec0bb680fbf97fa7bbe5754b8023fb5ab4167abd70e0969b09e2b1dd5821496250bf
|
7
|
+
data.tar.gz: 1619707b41698db66b2bc099590940f79aa9b275e0ee6ecf360cab1987bb2e604b63678433eee4d204d270880746d9159a6fb36154aa13dd9d3f6bae4404643b
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
1
|
+
## Resque::Rollbar
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/dimko/resque-rollbar.svg)](https://travis-ci.org/dimko/resque-rollbar)
|
2
4
|
|
3
5
|
Resque failure backend for reporting exceptions to [Rollbar](https://rollbar.com).
|
4
6
|
|
5
|
-
|
7
|
+
### Installation
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
@@ -16,19 +18,20 @@ Or install it yourself as:
|
|
16
18
|
|
17
19
|
$ gem install resque-rollbar
|
18
20
|
|
19
|
-
|
21
|
+
### Usage
|
20
22
|
|
21
23
|
In your resque's config:
|
22
24
|
|
23
25
|
```ruby
|
24
26
|
require 'resque/failure/multiple'
|
27
|
+
require 'resque/failure/redis'
|
25
28
|
require 'resque/rollbar'
|
26
29
|
|
27
30
|
Resque::Failure::Multiple.classes = [ Resque::Failure::Redis, Resque::Failure::Rollbar ]
|
28
31
|
Resque::Failure.backend = Resque::Failure::Multiple
|
29
32
|
```
|
30
33
|
|
31
|
-
|
34
|
+
### Contributing
|
32
35
|
|
33
36
|
1. Fork it
|
34
37
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
data/lib/resque/rollbar.rb
CHANGED
data/resque-rollbar.gemspec
CHANGED
@@ -22,5 +22,5 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.add_development_dependency 'rake'
|
23
23
|
gem.add_development_dependency 'json'
|
24
24
|
gem.add_development_dependency 'bundler', '~> 1.0'
|
25
|
-
gem.add_development_dependency 'rspec', '~>
|
25
|
+
gem.add_development_dependency 'rspec', '~> 3.0'
|
26
26
|
end
|
@@ -7,7 +7,7 @@ describe Resque::Failure::Rollbar do
|
|
7
7
|
queue = 'test'
|
8
8
|
payload = { 'class' => Object, 'args' => 89 }
|
9
9
|
|
10
|
-
Rollbar.
|
10
|
+
expect(Rollbar).to receive(:report_exception).with(exception, payload)
|
11
11
|
backend = Resque::Failure::Rollbar.new(exception, worker, queue, payload)
|
12
12
|
backend.save
|
13
13
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-rollbar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dimko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: resque
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '3.0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '3.0'
|
97
97
|
description: Resque failure backend for Rollbar
|
98
98
|
email:
|
99
99
|
- deemox@gmail.com
|
@@ -108,11 +108,14 @@ files:
|
|
108
108
|
- LICENSE.txt
|
109
109
|
- README.md
|
110
110
|
- Rakefile
|
111
|
+
- gemfiles/rollbar-0.8.x.gemfile
|
112
|
+
- gemfiles/rollbar-1.0.x.gemfile
|
111
113
|
- lib/resque/failure/rollbar.rb
|
112
114
|
- lib/resque/rollbar.rb
|
113
115
|
- lib/resque/rollbar/version.rb
|
114
116
|
- resque-rollbar.gemspec
|
115
117
|
- spec/resque/failure/rollbar_spec.rb
|
118
|
+
- spec/rollbar_spec.rb
|
116
119
|
- spec/spec_helper.rb
|
117
120
|
homepage: https://github.com/dimko/resque-rollbar
|
118
121
|
licenses: []
|
@@ -139,4 +142,5 @@ specification_version: 4
|
|
139
142
|
summary: Resque failure backend for Rollbar
|
140
143
|
test_files:
|
141
144
|
- spec/resque/failure/rollbar_spec.rb
|
145
|
+
- spec/rollbar_spec.rb
|
142
146
|
- spec/spec_helper.rb
|