timeclock 0.8.4 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/timeclock/clock.rb +2 -1
- data/lib/timeclock/version.rb +1 -1
- metadata +1 -1
data/lib/timeclock/clock.rb
CHANGED
@@ -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(
|
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}."
|
data/lib/timeclock/version.rb
CHANGED