Skip to content

Commit 135253b

Browse files
authored
Merge pull request #21 from nikhaldi/0.3-dev
Release candidate 0.3.0.rc1, compatible with exception_notification 4.2+ and Rails 4.2+
2 parents 5d4f9bb + 84c0513 commit 135253b

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ This Ruby gem is an extension of the [exception_notification gem](http://rubygem
77

88
## Installation
99

10+
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):
11+
12+
gem 'exception_notification-rake', '~> 0.3.0.rc1'
13+
1014
If you're using Rails 4.1.x (or you're not using Rails at all), use the latest version of the gem:
1115

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

2529
### Configuration for Email Notifications
2630

27-
**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).
31+
**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).
2832

2933
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:
3034

exception_notification-rake.gemspec

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,27 @@ Gem::Specification.new do |s|
1313
' sending mail upon failures in Rake tasks'
1414

1515
s.required_ruby_version = '>= 2.0'
16-
s.add_runtime_dependency 'exception_notification', '~> 4.1.0'
16+
s.add_runtime_dependency 'exception_notification', '~> 4.2.0'
1717
# NB: Rake before 0.9.0 won't support the exception hook we're using
1818
s.add_runtime_dependency 'rake', '>= 0.9.0'
19-
s.add_development_dependency 'rails', '~> 4.1.0'
19+
20+
# When developing/testing under various Ruby versions we have to set upper
21+
# version limits on some direct dependencies of exception_notification (and
22+
# some indirect dependencies such as nokogiri) because later versions are
23+
# not supported under the specific Ruby. This makes running tests on Travis
24+
# under all Rubies 2.0+ possible.
25+
# Note for future: Travis also supports giving multiple gemspecs:
26+
# https://docs.travis-ci.com/user/languages/ruby/#Testing-against-multiple-versions-of-dependencies
27+
if RUBY_VERSION >= '2.2'
28+
# No restrictions known at this point
29+
elsif RUBY_VERSION >= '2.1'
30+
s.add_development_dependency 'actionmailer', '~> 4.2.0'
31+
s.add_development_dependency 'activesupport', '~> 4.2.0'
32+
else
33+
s.add_development_dependency 'actionmailer', '~> 4.2.0'
34+
s.add_development_dependency 'activesupport', '~> 4.2.0'
35+
s.add_development_dependency 'nokogiri', '~> 1.6.0'
36+
end
2037

2138
s.files = Dir['LICENSE.md', 'README.md', 'lib/**/*']
2239
s.test_files = Dir['test/**/*.rb']
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module ExceptionNotifier
22
class Rake
3-
VERSION = '0.2.2'
3+
VERSION = '0.3.0.rc1'
44
end
55
end

0 commit comments

Comments
 (0)