todorb 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
data/lib/todorb.rb CHANGED
@@ -696,7 +696,7 @@ class Todo
696
696
  raise "Please load array first!" if @data.empty?
697
697
  verbose "get_item got #{item}."
698
698
  #rx = regexp_item(item)
699
- rx = Regexp.new("^ +#{item}$")
699
+ rx = Regexp.new("^ *#{item}$")
700
700
  rx2 = Regexp.new("^ +#{item}\.")
701
701
  rows = []
702
702
  @data.each { |row|
@@ -0,0 +1,39 @@
1
+ #!/bin/sh
2
+ test_description="Testing out show_actions "
3
+ . ./test-lib.sh
4
+
5
+
6
+
7
+
8
+ test_todo_session "Testing of show_actions" <<EOF
9
+ >>> todorb --show-actions
10
+ Commands are:
11
+ list : List tasks. --show-all and others
12
+ add : Add a task.
13
+ pri : Add priority to task.
14
+ depri : Remove priority of task.
15
+ todorb depri <TASK>
16
+ delete : Delete a task.
17
+ todorb delete <TASK>
18
+ status : Change the status of a task. <STATUS> are open closed started pending hold next
19
+ redo : Renumbers the todo file starting 1
20
+ note : Add a note to a task.
21
+ tag : Add a tag to an item/s.
22
+ archive : archive closed tasks to archive.txt
23
+ copyunder : Move first task under second (as a subtask). aka cu
24
+ addsub : Add a task under another.
25
+
26
+ Aliases:
27
+ a - add
28
+ p - pri
29
+ del - delete
30
+ cu - copyunder
31
+ open - ["status", "open"]
32
+ close - ["status", "closed"]
33
+
34
+
35
+ See '/opt/local/bin/todorb help COMMAND' for more information on a specific command.
36
+ >>> end
37
+
38
+ EOF
39
+ test_done
data/todorb.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{todorb}
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rahul Kumar"]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: todorb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.2.1
5
+ version: 1.2.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rahul Kumar
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-07-08 00:00:00 Z
13
+ date: 2011-09-21 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: subcommand
@@ -78,14 +78,15 @@ files:
78
78
  - tests/t0012-renumber.sh
79
79
  - tests/t0013-add_opt.sh
80
80
  - tests/t0014-grep.sh
81
+ - tests/t0015-show_actions.sh
81
82
  - tests/test-lib.sh
82
83
  - todorb.gemspec
83
84
  homepage: http://github.com/rkumar/todorb
84
85
  licenses: []
85
86
 
86
87
  post_install_message:
87
- rdoc_options:
88
- - --charset=UTF-8
88
+ rdoc_options: []
89
+
89
90
  require_paths:
90
91
  - lib
91
92
  required_ruby_version: !ruby/object:Gem::Requirement