timesheet 0.2.3 → 0.2.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/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.4 2010-02-07
2
+
3
+ * removed dependency on ruport
4
+
1
5
  === 0.0.1 2009-11-29
2
6
 
3
7
  * 1 major enhancement:
data/lib/timesheet.rb CHANGED
@@ -17,7 +17,7 @@ require 'timesheet/timesheet_parser'
17
17
 
18
18
  class Timesheet
19
19
 
20
- VERSION = '0.2.3'
20
+ VERSION = '0.2.4'
21
21
 
22
22
  def self.run(params)
23
23
  command_hash = {}
@@ -38,6 +38,10 @@ class ReportItem < DelegateClass(TimeEntry)
38
38
  str << end_time.strftime("%I:%M %p")
39
39
  end
40
40
 
41
+ def comment
42
+ @entry.comment || "N/A"
43
+ end
44
+
41
45
  def formatted_duration
42
46
  str = ""
43
47
  str << @time_entry.duration.strftime("%d Days ") if @time_entry.duration.days > 0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timesheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John F. Schank III