Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This Ruby gem is an extension of the [exception_notification gem](http://rubygem

## Installation

If you're using Rails 4.2 or higher, including Rails 5 (or you're not using Rails at all), use the latest version of the gem (this is currently a release candidate and not extensively tested yet):

gem 'exception_notification-rake', '~> 0.3.0.rc1'

If you're using Rails 4.1.x (or you're not using Rails at all), use the latest version of the gem:

gem 'exception_notification-rake', '~> 0.2.2'
Expand All @@ -24,7 +28,7 @@ If you're using Rails 3, use the 0.0.x line of versions:

### Configuration for Email Notifications

**Note:** These examples are for the latest version of the gem (using exception_notification 4.1 and Rails 4.1). For a Rails 3.2 example [see below](#rails-32-configuration-example).
**Note:** These examples are for the latest version of the gem (using exception_notification 4+ and Rails 4+). For a Rails 3.2 example [see below](#rails-32-configuration-example).

Exception notification must be set up in your Rails config files. In general, you'll want to do this in environment-specific config files, such as `config/environments/production.rb`. Minimal configuration:

Expand Down
21 changes: 19 additions & 2 deletions exception_notification-rake.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,27 @@ Gem::Specification.new do |s|
' sending mail upon failures in Rake tasks'

s.required_ruby_version = '>= 2.0'
s.add_runtime_dependency 'exception_notification', '~> 4.1.0'
s.add_runtime_dependency 'exception_notification', '~> 4.2.0'
# NB: Rake before 0.9.0 won't support the exception hook we're using
s.add_runtime_dependency 'rake', '>= 0.9.0'
s.add_development_dependency 'rails', '~> 4.1.0'

# When developing/testing under various Ruby versions we have to set upper
# version limits on some direct dependencies of exception_notification (and
# some indirect dependencies such as nokogiri) because later versions are
# not supported under the specific Ruby. This makes running tests on Travis
# under all Rubies 2.0+ possible.
# Note for future: Travis also supports giving multiple gemspecs:
# https://docs.travis-ci.com/user/languages/ruby/#Testing-against-multiple-versions-of-dependencies
if RUBY_VERSION >= '2.2'
# No restrictions known at this point
elsif RUBY_VERSION >= '2.1'
s.add_development_dependency 'actionmailer', '~> 4.2.0'
s.add_development_dependency 'activesupport', '~> 4.2.0'
else
s.add_development_dependency 'actionmailer', '~> 4.2.0'
s.add_development_dependency 'activesupport', '~> 4.2.0'
s.add_development_dependency 'nokogiri', '~> 1.6.0'
end

s.files = Dir['LICENSE.md', 'README.md', 'lib/**/*']
s.test_files = Dir['test/**/*.rb']
Expand Down
2 changes: 1 addition & 1 deletion lib/exception_notifier/rake/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ExceptionNotifier
class Rake
VERSION = '0.2.2'
VERSION = '0.3.0.rc1'
end
end