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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b4e7fef12b5a2aa52d462f4c42ca761f93c4a8f
4
- data.tar.gz: 1c68dde6962d1ae0f36b57eeda5b576cef664dab
3
+ metadata.gz: baadc8483dae7f6cebe5df65964dda451a0099c2
4
+ data.tar.gz: 166ff988faa3c7d82417207b887c05ecc29e591e
5
5
  SHA512:
6
- metadata.gz: 8d6172a5a652ae72c06e3ad5a1977c86a8e45e5f9f7acfefc5279a48660d098a411dca420fd7b0b8ed5c758c029e25fac57ee40ffe4250797dadd26bbbf282ca
7
- data.tar.gz: 2e88094c810d43632913e2044c8c79628132fdbac19f2271e652aa78289dfe8de825bc96ec87d467e1ed5378dd56e1f7ffe7e0493293a79eb91322f9962e9711
6
+ metadata.gz: 17441b17a16be0869ece559ec3185a9f488f5a5199ea3581c2e26f089a5cec0bb680fbf97fa7bbe5754b8023fb5ab4167abd70e0969b09e2b1dd5821496250bf
7
+ data.tar.gz: 1619707b41698db66b2bc099590940f79aa9b275e0ee6ecf360cab1987bb2e604b63678433eee4d204d270880746d9159a6fb36154aa13dd9d3f6bae4404643b
data/.travis.yml CHANGED
@@ -7,6 +7,9 @@ rvm:
7
7
  - jruby-18mode
8
8
  - jruby-19mode
9
9
  - rbx
10
+ gemfile:
11
+ - gemfiles/rollbar-0.8.x.gemfile
12
+ - gemfiles/rollbar-1.0.x.gemfile
10
13
  matrix:
11
14
  allow_failures:
12
15
  - rvm: rbx
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
- # Resque::Rollbar [![Build Status](https://travis-ci.org/dimko/resque-rollbar.png?branch=master)](https://travis-ci.org/dimko/resque-rollbar)
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
- ## Installation
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
- ## Usage
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
- ## Contributing
34
+ ### Contributing
32
35
 
33
36
  1. Fork it
34
37
  2. Create your feature branch (`git checkout -b my-new-feature`)
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rollbar', '~> 0.8.0'
4
+ gemspec :path => '../'
5
+
6
+ platforms :rbx do
7
+ gem 'racc'
8
+ gem 'rubysl', '~> 2.0'
9
+ gem 'psych'
10
+ end
11
+
12
+ platforms :jruby do
13
+ gem 'jruby-openssl'
14
+ end
@@ -0,0 +1,14 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rollbar', '~> 1.0.0'
4
+ gemspec :path => '../'
5
+
6
+ platforms :rbx do
7
+ gem 'racc'
8
+ gem 'rubysl', '~> 2.0'
9
+ gem 'psych'
10
+ end
11
+
12
+ platforms :jruby do
13
+ gem 'jruby-openssl'
14
+ end
@@ -1 +1,8 @@
1
1
  require 'resque/failure/rollbar'
2
+
3
+ Resque.before_first_fork do
4
+ # Force synchronous reporting
5
+ ::Rollbar.configure do |config|
6
+ config.use_async = false
7
+ end
8
+ end
@@ -1,5 +1,5 @@
1
1
  module Resque
2
2
  module Rollbar
3
- VERSION = '0.0.5'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -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', '~> 2.5'
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.should_receive(:report_exception).with(exception, payload)
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
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rollbar do
4
+ describe '#configuration' do
5
+ let(:configuration) { described_class.configuration }
6
+
7
+ describe '#use_async' do
8
+ subject { configuration.use_async }
9
+ it { is_expected.to be false }
10
+ end
11
+ end
12
+ 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.5
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-07-19 00:00:00.000000000 Z
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: '2.5'
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: '2.5'
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