todorb 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/Makefile CHANGED
@@ -6,7 +6,7 @@ all: install
6
6
  install:
7
7
 
8
8
  # sed -i.bk 's/^VERSION = .*/VERSION = \"'$(VERSION)'\"/g' lib/todorb.rb
9
- rake build && sudo rake install
9
+ rake build && rake install
10
10
 
11
11
  #
12
12
  # Testing
data/Rakefile CHANGED
@@ -21,12 +21,12 @@ rescue LoadError
21
21
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
22
22
  end
23
23
 
24
- require 'rake/testtask'
25
- Rake::TestTask.new(:test) do |test|
26
- test.libs << 'lib' << 'test'
27
- test.pattern = 'test/**/test_*.rb'
28
- test.verbose = true
29
- end
24
+ #require 'rake/testtask'
25
+ #Rake::TestTask.new(:test) do |test|
26
+ #test.libs << 'lib' << 'test'
27
+ #test.pattern = 'test/**/test_*.rb'
28
+ #test.verbose = true
29
+ #end
30
30
 
31
31
  begin
32
32
  require 'rcov/rcovtask'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -8,7 +8,8 @@
8
8
  * License: Ruby License
9
9
 
10
10
  =end
11
- require 'common/sed'
11
+ #require 'common/sed'
12
+ require 'todorb/common/sed'
12
13
 
13
14
  ERRCODE = 1
14
15
 
data/lib/todorb.rb CHANGED
@@ -333,6 +333,8 @@ class Todo
333
333
  pri = self.class.const_get("PRI_#{m[1]}")
334
334
  #string = "#{YELLOW}#{BOLD}#{string}#{CLEAR}"
335
335
  string = "#{pri}#{string}#{CLEAR}"
336
+ when "X", "Y", "Z"
337
+ string = "#{BLUE}#{string}#{CLEAR}"
336
338
  else
337
339
  string = "#{NORMAL}#{GREEN}#{string}#{CLEAR}"
338
340
  #string = "#{BLUE}\e[6m#{string}#{CLEAR}"
@@ -665,7 +667,8 @@ class Todo
665
667
  raise "Please load array first!" if @data.empty?
666
668
  puts "get_item got #{item}." if @verbose
667
669
  #rx = regexp_item(item)
668
- rx = Regexp.new("^ +#{item}$")
670
+ #rx = Regexp.new("^ +#{item}$") # 3 digit ids failing
671
+ rx = Regexp.new("^ *#{item}$") # 2011-09-21 trying out
669
672
  @data.each { |row|
670
673
  puts " get_item read #{row[0]}." if @verbose
671
674
  return row if row[0] =~ rx
@@ -1078,7 +1081,7 @@ TEXT
1078
1081
  opts.description = "archive closed tasks to archive.txt"
1079
1082
  end
1080
1083
  Subcommands::command :copyunder, :cu do |opts|
1081
- opts.banner = "Usage: copyunder"
1084
+ opts.banner = "Usage: copyunder <task to move> <task to be moved under>"
1082
1085
  opts.description = "Move first task under second (as a subtask). aka cu"
1083
1086
  opts.on("-d", "--delete", "Delete old after copying") do |v|
1084
1087
  options[:delete_old] = v
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.0"
8
+ s.version = "1.2.1"
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
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: todorb
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 2
8
- - 0
9
- version: 1.2.0
4
+ prerelease:
5
+ version: 1.2.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Rahul Kumar
@@ -14,20 +10,16 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-07-08 00:00:00 +05:30
18
- default_executable: todorb
13
+ date: 2010-07-08 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: subcommand
22
17
  prerelease: false
23
18
  requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- - 5
31
23
  version: 1.0.5
32
24
  type: :development
33
25
  version_requirements: *id001
@@ -35,13 +27,10 @@ dependencies:
35
27
  name: subcommand
36
28
  prerelease: false
37
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
38
31
  requirements:
39
32
  - - ">="
40
33
  - !ruby/object:Gem::Version
41
- segments:
42
- - 1
43
- - 0
44
- - 5
45
34
  version: 1.0.5
46
35
  type: :runtime
47
36
  version_requirements: *id002
@@ -91,7 +80,6 @@ files:
91
80
  - tests/t0014-grep.sh
92
81
  - tests/test-lib.sh
93
82
  - todorb.gemspec
94
- has_rdoc: true
95
83
  homepage: http://github.com/rkumar/todorb
96
84
  licenses: []
97
85
 
@@ -101,23 +89,21 @@ rdoc_options:
101
89
  require_paths:
102
90
  - lib
103
91
  required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
104
93
  requirements:
105
94
  - - ">="
106
95
  - !ruby/object:Gem::Version
107
- segments:
108
- - 0
109
96
  version: "0"
110
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
111
99
  requirements:
112
100
  - - ">="
113
101
  - !ruby/object:Gem::Version
114
- segments:
115
- - 0
116
102
  version: "0"
117
103
  requirements: []
118
104
 
119
105
  rubyforge_project: todorb
120
- rubygems_version: 1.3.6
106
+ rubygems_version: 1.8.8
121
107
  signing_key:
122
108
  specification_version: 3
123
109
  summary: comprehensive command-line todo list manager with subtasks and more