resque-honeybadger 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1bb2f9dee3f6a0f51d97cdfb7e1f17de9fc8ffd6
4
+ data.tar.gz: 512457ca4bb21f69b3dd9cefa2c2e31eae68d29b
5
+ SHA512:
6
+ metadata.gz: dd8efab8dd9f9c5aa99a19d0333fce16d75f68e6b787df9c6a09af164219bf77a86045667116ab4f8799d7669b1c3b91ce04d4fcd7a5bb944b92a607cd9bba6a
7
+ data.tar.gz: dd107a598cdecb506c09c760dfd86ad5509d5e33a8305af8d476d9e3e6e04f9c3a571c0a541ec062eba91e090c3561e61225c9f18d566f746b541e5f1d8c1994
@@ -15,12 +15,24 @@ module Resque
15
15
  end
16
16
 
17
17
  def save
18
- ::Honeybadger.notify_or_ignore(exception,
19
- :parameters => {
20
- :payload_class => payload['class'].to_s,
21
- :payload_args => payload['args'].inspect
22
- }
23
- )
18
+ flush_if_v2 do
19
+ ::Honeybadger.notify_or_ignore(exception,
20
+ :parameters => {
21
+ :payload_class => payload['class'].to_s,
22
+ :payload_args => payload['args'].inspect
23
+ }
24
+ )
25
+ end
26
+ end
27
+
28
+ private
29
+
30
+ def flush_if_v2
31
+ if ::Honeybadger.respond_to?(:flush)
32
+ ::Honeybadger.flush { yield }
33
+ else
34
+ yield
35
+ end
24
36
  end
25
37
  end
26
38
  end
metadata CHANGED
@@ -1,77 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque-honeybadger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
5
- prerelease:
4
+ version: 1.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Luke Antins
9
8
  - Jacques Crocker
10
9
  - Henrik Nyh
10
+ - Joshua Wood
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-12-23 00:00:00.000000000 Z
14
+ date: 2015-02-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: resque
18
- requirement: &70111095364020 !ruby/object:Gem::Requirement
19
- none: false
18
+ requirement: !ruby/object:Gem::Requirement
20
19
  requirements:
21
- - - ! '>='
20
+ - - ">="
22
21
  - !ruby/object:Gem::Version
23
22
  version: 1.8.0
24
23
  type: :runtime
25
24
  prerelease: false
26
- version_requirements: *70111095364020
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: 1.8.0
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: honeybadger
29
- requirement: &70111095363600 !ruby/object:Gem::Requirement
30
- none: false
32
+ requirement: !ruby/object:Gem::Requirement
31
33
  requirements:
32
- - - ! '>='
34
+ - - ">="
33
35
  - !ruby/object:Gem::Version
34
36
  version: '0'
35
37
  type: :runtime
36
38
  prerelease: false
37
- version_requirements: *70111095363600
38
- description: ! ' Provides a Resque failure backend that sends exceptions raised
39
- by jobs to the Honeybadger service.
40
-
41
- '
42
- email: henrik@nyh.se
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ description: |2
45
+ Provides a Resque failure backend that sends exceptions raised by jobs to the Honeybadger service.
46
+ email: support@honeybadger.io
43
47
  executables: []
44
48
  extensions: []
45
49
  extra_rdoc_files: []
46
50
  files:
51
+ - HISTORY.md
47
52
  - LICENSE
48
- - Rakefile
49
53
  - README.md
50
- - HISTORY.md
51
- - lib/resque/failure/honeybadger.rb
54
+ - Rakefile
52
55
  - lib/resque-honeybadger.rb
53
- homepage: http://github.com/henrik/resque-honeybadger
56
+ - lib/resque/failure/honeybadger.rb
57
+ homepage: http://github.com/honeybadger-io/resque-honeybadger
54
58
  licenses: []
59
+ metadata: {}
55
60
  post_install_message:
56
61
  rdoc_options: []
57
62
  require_paths:
58
63
  - lib
59
64
  required_ruby_version: !ruby/object:Gem::Requirement
60
- none: false
61
65
  requirements:
62
- - - ! '>='
66
+ - - ">="
63
67
  - !ruby/object:Gem::Version
64
68
  version: '0'
65
69
  required_rubygems_version: !ruby/object:Gem::Requirement
66
- none: false
67
70
  requirements:
68
- - - ! '>='
71
+ - - ">="
69
72
  - !ruby/object:Gem::Version
70
73
  version: '0'
71
74
  requirements: []
72
75
  rubyforge_project:
73
- rubygems_version: 1.8.5
76
+ rubygems_version: 2.4.5
74
77
  signing_key:
75
- specification_version: 3
78
+ specification_version: 4
76
79
  summary: A Resque failure backend for Honeybadger.
77
80
  test_files: []
81
+ has_rdoc: false