log_master 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
@@ -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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{log_master}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Zachary Belzer"]
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zachary Belzer