exception_notification-rake 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -0
- data/lib/exception_notifier/rake/version.rb +1 -1
- data/test/rake_test.rb +2 -2
- metadata +3 -7
- data/.gitignore +0 -19
- data/Gemfile +0 -2
- data/Rakefile +0 -13
- data/exception_notification-rake.gemspec +0 -25
data/README.md
CHANGED
@@ -3,6 +3,7 @@ exception_notification-rake - ExceptionNotifier for Rake tasks
|
|
3
3
|
|
4
4
|
This Ruby gem is an extension of the [exception_notification gem](http://rubygems.org/gems/exception_notification) to support sending mail upon failures in Rake tasks. This is useful if you run Rake tasks as batch jobs on a schedule, particularly if you're using the [Heroku Scheduler add-on](http://addons.heroku.com/scheduler).
|
5
5
|
|
6
|
+
[![Build Status](https://travis-ci.org/nikhaldi/exception_notification-rake.png)](https://travis-ci.org/nikhaldi/exception_notification-rake)
|
6
7
|
|
7
8
|
## Usage
|
8
9
|
|
data/test/rake_test.rb
CHANGED
@@ -12,8 +12,8 @@ class RakeTest < Test::Unit::TestCase
|
|
12
12
|
|
13
13
|
def expect_delivery(exception, options)
|
14
14
|
mail = Object.new
|
15
|
-
ExceptionNotifier::Notifier.expects(
|
16
|
-
.with(exception, options).returns(mail)
|
15
|
+
ExceptionNotifier::Notifier.expects(
|
16
|
+
:background_exception_notification).with(exception, options).returns(mail)
|
17
17
|
mail.expects(:deliver)
|
18
18
|
end
|
19
19
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exception_notification-rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: exception_notification
|
@@ -83,19 +83,15 @@ executables: []
|
|
83
83
|
extensions: []
|
84
84
|
extra_rdoc_files: []
|
85
85
|
files:
|
86
|
-
- .gitignore
|
87
|
-
- Gemfile
|
88
86
|
- LICENSE.md
|
89
87
|
- README.md
|
90
|
-
- Rakefile
|
91
|
-
- exception_notification-rake.gemspec
|
92
88
|
- lib/exception_notification/rake.rb
|
93
|
-
- lib/exception_notifier/rake.rb
|
94
89
|
- lib/exception_notifier/rake/rake.rb
|
95
90
|
- lib/exception_notifier/rake/rake_patch.rb
|
96
91
|
- lib/exception_notifier/rake/version.rb
|
97
92
|
- lib/exception_notifier/rake/views/exception_notifier/_rake.html.erb
|
98
93
|
- lib/exception_notifier/rake/views/exception_notifier/_rake.text.erb
|
94
|
+
- lib/exception_notifier/rake.rb
|
99
95
|
- test/rake_test.rb
|
100
96
|
homepage: https://github.com/nikhaldi/exception_notification-rake
|
101
97
|
licenses: []
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'bundler'
|
2
|
-
require 'rake/testtask'
|
3
|
-
|
4
|
-
Bundler::GemHelper.install_tasks
|
5
|
-
|
6
|
-
Rake::TestTask.new(:test) do |test|
|
7
|
-
test.libs << 'lib' << 'test'
|
8
|
-
test.test_files = FileList['test/*_test.rb']
|
9
|
-
test.verbose = true
|
10
|
-
test.warning = true
|
11
|
-
end
|
12
|
-
|
13
|
-
task :default => [:test]
|
@@ -1,25 +0,0 @@
|
|
1
|
-
$:.push File.expand_path("../lib", __FILE__)
|
2
|
-
require 'exception_notifier/rake/version'
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = 'exception_notification-rake'
|
6
|
-
s.version = ExceptionNotifier::Rake::VERSION
|
7
|
-
s.platform = Gem::Platform::RUBY
|
8
|
-
s.authors = ['Nik Haldimann']
|
9
|
-
s.email = ['nhaldimann@gmail.com']
|
10
|
-
s.homepage = 'https://github.com/nikhaldi/exception_notification-rake'
|
11
|
-
s.summary = 'Sending exception notifications upon Rake task failures'
|
12
|
-
s.description = 'An extension of the exception_notification gem to support' +
|
13
|
-
' sending mail upon failures in Rake tasks'
|
14
|
-
|
15
|
-
s.add_runtime_dependency 'exception_notification', '~> 3.0.1'
|
16
|
-
# NB: Rake before 0.9.0 won't support the exception hook we're using
|
17
|
-
s.add_runtime_dependency 'rake', '>= 0.9.0'
|
18
|
-
s.add_development_dependency 'rails', '~> 3.2.0'
|
19
|
-
s.add_development_dependency 'mocha', '~> 0.13.3'
|
20
|
-
|
21
|
-
s.files = `git ls-files`.split("\n")
|
22
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
23
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
24
|
-
s.require_paths = ['lib']
|
25
|
-
end
|