dotime 0.0.6 → 0.0.7

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 +8 -3
  3. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.0.7 / 2007-02-22
2
+ * Making selection lists more user friendly
3
+
1
4
  == 0.0.6 / 2007-02-21
2
5
  * Allowing basic lists selection to access more than 10 items
3
6
  * Adding required basecamp account url to executable
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.6'
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
- puts " #{index+1}. #{item}"
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 "(use 0 & 1-9 OR 1-9 & enter/space to select 1-9)" if list.size > 9
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.6
7
- date: 2007-02-21 00:00:00 +00:00
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