timeclock 0.8.4 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,7 @@ module Timeclock
17
17
 
18
18
  Thank you!
19
19
  </pre>"
20
+
20
21
  class << self
21
22
  def home_directory
22
23
  running_on_windows? ? ENV['USERPROFILE'] : ENV['HOME']
@@ -172,7 +173,7 @@ module Timeclock
172
173
  :subject => "Time card",
173
174
  :content_type => 'text/html',
174
175
  :domain => "localhost.localdomain",
175
- :html_body => ERB.new(File.new("templates/email.html.erb").read).result(binding),
176
+ :html_body => ERB.new(@template).result(binding),
176
177
  :body => "You are reading this because your email client sux and cant interperate html... fix it."
177
178
  )
178
179
  puts "Time card has been sent to #{to}."
@@ -1,3 +1,3 @@
1
1
  module Timeclock
2
- VERSION = "0.8.4"
2
+ VERSION = "0.8.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timeclock
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: