log_master 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/log_master/notifier.rb +2 -4
- data/log_master.gemspec +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/log_master/notifier.rb
CHANGED
@@ -2,6 +2,8 @@ module LogMaster
|
|
2
2
|
class Notifier < ActionMailer::Base
|
3
3
|
helper_method :stylize_output
|
4
4
|
|
5
|
+
self.template_root = File.expand_path(File.dirname(__FILE__) + "/../../lib/templates")
|
6
|
+
|
5
7
|
def update_notification(status, reports, logs)
|
6
8
|
@status = status
|
7
9
|
@configuration = Configuration.instance
|
@@ -14,10 +16,6 @@ module LogMaster
|
|
14
16
|
sent_on Time.now
|
15
17
|
body :title => @configuration.title, :logs => logs, :reports => reports
|
16
18
|
end
|
17
|
-
|
18
|
-
def template_path
|
19
|
-
File.expand_path(File.dirname(__FILE__) + "/../../templates/log_master/notifier/update_notification.html.erb")
|
20
|
-
end
|
21
19
|
|
22
20
|
def create_subject
|
23
21
|
@configuration.title + (@status ? " SUCCESSFUL" : " FAILED")
|
data/log_master.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -5,7 +5,7 @@ require 'rubygems'
|
|
5
5
|
# Explicitly required so we can set class vars before Notifier gets loaded
|
6
6
|
require 'action_mailer'
|
7
7
|
|
8
|
-
ActionMailer::Base.template_root = File.dirname(__FILE__) + "/../lib/templates"
|
8
|
+
# ActionMailer::Base.template_root = File.dirname(__FILE__) + "/../lib/templates"
|
9
9
|
ActionMailer::Base.delivery_method = :test
|
10
10
|
# ActionMailer::Base.logger = Logger.new('test.log')
|
11
11
|
|