delayed-plugins-airbrake 1.0.0.beta.2 → 1.0.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS ADDED
@@ -0,0 +1,5 @@
1
+ In chronological order:
2
+
3
+ * Benjamin Oakes
4
+ * Romain Champourlier
5
+ * Grant Hollingworth
data/README.md CHANGED
@@ -19,6 +19,14 @@ Register the plugin like so:
19
19
 
20
20
  In a Rails project, this can be done in `config/initializers`.
21
21
 
22
+ ## System Integration Testing
23
+
24
+ A test class is provided:
25
+
26
+ Delayed::Plugins::Airbrake::Bomb.delay.blow_up
27
+
28
+ This raises an exception in `delayed_job` which should show up in Airbrake (if everything is set up correctly :) ).
29
+
22
30
  ## Contributing
23
31
 
24
32
  1. Fork it
@@ -27,4 +27,11 @@ module Delayed::Plugins::Airbrake
27
27
  end
28
28
  end
29
29
  end
30
+
31
+ # This can be used to test that the plugin is working
32
+ class Bomb
33
+ def self.blow_up
34
+ raise 'Test from Delayed::Plugins::Airbrake::Bomb'
35
+ end
36
+ end
30
37
  end
@@ -1,7 +1,7 @@
1
1
  module Delayed
2
2
  module Plugins
3
3
  module Airbrake
4
- VERSION = "1.0.0.beta.2"
4
+ VERSION = "1.0.0.beta.3"
5
5
  end
6
6
  end
7
7
  end
@@ -0,0 +1,11 @@
1
+ require 'delayed-plugins-airbrake'
2
+
3
+ module Delayed::Plugins::Airbrake
4
+ describe Bomb do
5
+ describe '.blow_up' do
6
+ it 'raises a test exception' do
7
+ lambda { Bomb.blow_up }.should raise_error(RuntimeError)
8
+ end
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed-plugins-airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.2
4
+ version: 1.0.0.beta.3
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -15,7 +15,7 @@ date: 2013-03-15 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: airbrake
18
- requirement: &19595260 !ruby/object:Gem::Requirement
18
+ requirement: &14799120 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *19595260
26
+ version_requirements: *14799120
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: delayed_job
29
- requirement: &19564020 !ruby/object:Gem::Requirement
29
+ requirement: &14798660 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *19564020
37
+ version_requirements: *14798660
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rake
40
- requirement: &19563400 !ruby/object:Gem::Requirement
40
+ requirement: &14798060 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '0'
46
46
  type: :development
47
47
  prerelease: false
48
- version_requirements: *19563400
48
+ version_requirements: *14798060
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rspec
51
- requirement: &19562600 !ruby/object:Gem::Requirement
51
+ requirement: &14797340 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,7 +56,7 @@ dependencies:
56
56
  version: '0'
57
57
  type: :development
58
58
  prerelease: false
59
- version_requirements: *19562600
59
+ version_requirements: *14797340
60
60
  description: delayed_job exception notification with airbrake
61
61
  email:
62
62
  - hello@benjaminoakes.com
@@ -65,6 +65,7 @@ extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
67
  - .gitignore
68
+ - AUTHORS
68
69
  - Gemfile
69
70
  - LICENSE.txt
70
71
  - README.md
@@ -74,6 +75,7 @@ files:
74
75
  - lib/delayed-plugins-airbrake.rb
75
76
  - lib/delayed-plugins-airbrake/version.rb
76
77
  - provision
78
+ - spec/lib/delayed-plugins-airbrake/bomb_spec.rb
77
79
  - spec/lib/delayed-plugins-airbrake/plugin_spec.rb
78
80
  homepage: ''
79
81
  licenses: []
@@ -101,5 +103,6 @@ specification_version: 3
101
103
  summary: Notify Airbrake on Delayed Job errors, including those on PerformableMethod. Packaged
102
104
  for use from https://gist.github.com/granth/2223758 and http://stackoverflow.com/questions/12683364/how-to-make-delayed-job-notify-airbrake-when-an-actionmailer-runs-into-an-error.
103
105
  test_files:
106
+ - spec/lib/delayed-plugins-airbrake/bomb_spec.rb
104
107
  - spec/lib/delayed-plugins-airbrake/plugin_spec.rb
105
108
  has_rdoc: