dotime 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/History.txt +3 -0
  2. data/lib/do_time.rb +2 -2
  3. metadata +2 -2
@@ -1,3 +1,6 @@
1
+ == 0.0.4 / 2007-01-09
2
+ * Fixed bug that would strip content from todo titles within square brackets ([]). Now only strips the content if within double square brackets ([[]]).
3
+
1
4
  == 0.0.3 / 2006-12-23
2
5
 
3
6
  * Added to RubyForge
@@ -18,7 +18,7 @@ require File.dirname(__FILE__) + '/basecamp'
18
18
  require 'optparse'
19
19
 
20
20
  class DoTime
21
- VERSION = '0.0.3'
21
+ VERSION = '0.0.4'
22
22
 
23
23
  include HighLine::SystemExtensions
24
24
 
@@ -432,7 +432,7 @@ class DoTime
432
432
  list.each_with_index do |todo, i|
433
433
  hours = extract_elapsed_time_from(todo)
434
434
  running = is_todo_running?(todo) ? "[Running]" : ""
435
- say "<%=color('#{(i + 1).to_s}',:black, :bold)%>. - #{todo['content'].gsub(/(\[.*\])/,'').strip}"
435
+ say "<%=color('#{(i + 1).to_s}',:black, :bold)%>. - #{todo['content'].gsub(/(\[\[(.*)\]\])/,'').strip}"
436
436
  say "<%=color('Elapsed',:black, :bold)%>: #{time(hours*3600)} <%= color('#{running}',:red, :bold)%>"
437
437
  puts
438
438
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: dotime
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.3
7
- date: 2006-12-24 00:00:00 +00:00
6
+ version: 0.0.4
7
+ date: 2007-01-09 00:00:00 +00:00
8
8
  summary: Cheap time tracking for Basecamp todo lists
9
9
  require_paths:
10
10
  - lib