resque-sentry 0.1.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,8 +17,7 @@ module Resque
17
17
  #
18
18
  class Sentry < Base
19
19
  def save
20
- event = Raven::Event.capture_exception(exception)
21
- Raven.send(event) if event
20
+ Raven.capture_exception(exception)
22
21
  end
23
22
 
24
23
  def self.count
@@ -1,13 +1,13 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'resque-sentry'
3
- gem.version = '0.1.0'
3
+ gem.version = '1.0.0'
4
4
  gem.authors = ['Harry Marr']
5
5
  gem.email = ['harry@gocardless.com']
6
6
  gem.summary = 'A failure backend for Resque that sends events to Sentry'
7
7
  gem.homepage = 'https://github.com/gocardless/resque-sentry'
8
8
 
9
9
  gem.add_dependency 'resque', '>= 1.18.0'
10
- gem.add_dependency 'sentry-raven', '>= 0.1'
10
+ gem.add_dependency 'sentry-raven', '~> 0.4.6'
11
11
  gem.add_development_dependency 'rspec', '~> 2.6'
12
12
  gem.add_development_dependency 'mocha', '~> 0.11.0'
13
13
 
@@ -8,8 +8,7 @@ describe Resque::Failure::Sentry do
8
8
  payload = {'class' => Object, 'args' => 1}
9
9
 
10
10
  event = mock
11
- Raven::Event.expects(:capture_exception).with(exception).returns(event)
12
- Raven.expects(:send).with(event)
11
+ Raven.expects(:capture_exception).with(exception)
13
12
 
14
13
  backend = Resque::Failure::Sentry.new(exception, worker, queue, payload)
15
14
  backend.save
metadata CHANGED
@@ -1,60 +1,80 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-sentry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
4
  prerelease:
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Harry Marr
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-18 00:00:00.000000000 Z
12
+ date: 2013-05-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: resque
16
- requirement: &70212326189100 !ruby/object:Gem::Requirement
17
- none: false
15
+ version_requirements: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 1.18.0
20
+ none: false
21
+ name: resque
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70212326189100
25
- - !ruby/object:Gem::Dependency
26
- name: sentry-raven
27
- requirement: &70212326188460 !ruby/object:Gem::Requirement
28
- none: false
24
+ requirement: !ruby/object:Gem::Requirement
29
25
  requirements:
30
26
  - - ! '>='
31
27
  - !ruby/object:Gem::Version
32
- version: '0.1'
28
+ version: 1.18.0
29
+ none: false
30
+ - !ruby/object:Gem::Dependency
31
+ version_requirements: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ~>
34
+ - !ruby/object:Gem::Version
35
+ version: 0.4.6
36
+ none: false
37
+ name: sentry-raven
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70212326188460
36
- - !ruby/object:Gem::Dependency
37
- name: rspec
38
- requirement: &70212326168260 !ruby/object:Gem::Requirement
40
+ requirement: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ version: 0.4.6
39
45
  none: false
46
+ - !ruby/object:Gem::Dependency
47
+ version_requirements: !ruby/object:Gem::Requirement
40
48
  requirements:
41
49
  - - ~>
42
50
  - !ruby/object:Gem::Version
43
51
  version: '2.6'
52
+ none: false
53
+ name: rspec
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *70212326168260
47
- - !ruby/object:Gem::Dependency
48
- name: mocha
49
- requirement: &70212326167340 !ruby/object:Gem::Requirement
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: '2.6'
50
61
  none: false
62
+ - !ruby/object:Gem::Dependency
63
+ version_requirements: !ruby/object:Gem::Requirement
51
64
  requirements:
52
65
  - - ~>
53
66
  - !ruby/object:Gem::Version
54
67
  version: 0.11.0
68
+ none: false
69
+ name: mocha
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *70212326167340
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: 0.11.0
77
+ none: false
58
78
  description:
59
79
  email:
60
80
  - harry@gocardless.com
@@ -78,23 +98,24 @@ rdoc_options: []
78
98
  require_paths:
79
99
  - lib
80
100
  required_ruby_version: !ruby/object:Gem::Requirement
81
- none: false
82
101
  requirements:
83
102
  - - ! '>='
84
103
  - !ruby/object:Gem::Version
85
104
  version: '0'
86
- required_rubygems_version: !ruby/object:Gem::Requirement
87
105
  none: false
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
107
  requirements:
89
108
  - - ! '>='
90
109
  - !ruby/object:Gem::Version
91
110
  version: '0'
111
+ none: false
92
112
  requirements: []
93
113
  rubyforge_project:
94
- rubygems_version: 1.8.15
114
+ rubygems_version: 1.8.23
95
115
  signing_key:
96
116
  specification_version: 3
97
117
  summary: A failure backend for Resque that sends events to Sentry
98
118
  test_files:
99
119
  - spec/sentry_spec.rb
100
120
  - spec/spec_helper.rb
121
+ has_rdoc: