dotime 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/do_time.rb +8 -3
- metadata +2 -2
data/History.txt
CHANGED
data/lib/do_time.rb
CHANGED
@@ -18,7 +18,7 @@ require File.dirname(__FILE__) + '/basecamp'
|
|
18
18
|
require 'optparse'
|
19
19
|
|
20
20
|
class DoTime
|
21
|
-
VERSION = '0.0.
|
21
|
+
VERSION = '0.0.7'
|
22
22
|
|
23
23
|
include HighLine::SystemExtensions
|
24
24
|
|
@@ -525,11 +525,16 @@ class DoTime
|
|
525
525
|
def select_from(question, list)
|
526
526
|
say "<%=color('#{question.strip}',:bold)%>"
|
527
527
|
list.each_with_index do |item, index|
|
528
|
-
|
528
|
+
if list.size > 9
|
529
|
+
puts " 0#{index+1}. #{item}" if index < 9
|
530
|
+
puts " #{index+1}. #{item}" if index >= 9
|
531
|
+
else
|
532
|
+
puts " #{index+1}. #{item}"
|
533
|
+
end
|
529
534
|
end
|
530
535
|
puts " q - quit"
|
531
536
|
puts if list.size > 9
|
532
|
-
puts "(
|
537
|
+
puts "(To select an item between 1-9 you can also type: 1-9 and enter)" if list.size > 9
|
533
538
|
puts if list.size > 9
|
534
539
|
print "> "
|
535
540
|
second_key = nil
|
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.
|
7
|
-
date: 2007-02-
|
6
|
+
version: 0.0.7
|
7
|
+
date: 2007-02-22 00:00:00 +00:00
|
8
8
|
summary: Cheap time tracking for Basecamp todo lists
|
9
9
|
require_paths:
|
10
10
|
- lib
|