tartarus 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,15 +4,14 @@ development:
4
4
  notification_address:
5
5
  notification_sender: noreply@example.com
6
6
  notification_threshold: 10
7
+ notification_prefix: (dev)
7
8
  test:
8
9
  logging_enabled: false
9
10
  logger_class: <%= class_name %>
10
- notification_address:
11
- notification_sender: noreply@example.com
12
- notification_threshold: 10
13
11
  production:
14
12
  logging_enabled: true
15
13
  logger_class: <%= class_name %>
16
14
  notification_address:
17
15
  notification_sender: noreply@example.com
18
16
  notification_threshold: 10
17
+ notification_prefix: (production)
@@ -1,8 +1,8 @@
1
1
  class Tartarus::Notifiers::Mail < ActionMailer::Base
2
2
 
3
3
  def notification(address, exception)
4
- subject = "Exception raised at #{exception.controller_path}##{exception.action_name} (#{exception.exception_class}) #{exception.message}"
5
- mail(:to => address, :from => Tartarus.configuration['sender'], :subject => subject) do |format|
4
+ subject = "#{Tartarus.configuration['notification_prefix']}Exception raised at #{exception.controller_path}##{exception.action_name} (#{exception.exception_class}) #{exception.message}"
5
+ mail(:to => address, :from => Tartarus.configuration['notification_sender'], :subject => subject) do |format|
6
6
  format.text do
7
7
  render :text => %{
8
8
  A new exception was raised (#{exception.created_at.strftime("%m/%d/%Y %I:%M%p")}):
@@ -1,3 +1,3 @@
1
1
  module Tartarus
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
data/tartarus.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{tartarus}
3
- s.version = "2.0.0"
3
+ s.version = "2.0.1"
4
4
  s.platform = Gem::Platform::RUBY
5
5
 
6
6
  s.authors = ["Daniel Insley"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tartarus
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Daniel Insley
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-04 00:00:00 -08:00
18
+ date: 2011-01-17 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency