todorb 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/todorb.rb +9 -1
- data/todorb.gemspec +45 -47
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
data/lib/todorb.rb
CHANGED
@@ -72,6 +72,14 @@ class Todo
|
|
72
72
|
def init_vars
|
73
73
|
@app_default_action = "list"
|
74
74
|
@app_file_path = @options[:file] || "TODO2.txt"
|
75
|
+
unless File.exist? @app_file_path
|
76
|
+
Dir.chdir ".."
|
77
|
+
if File.exist? @app_file_path
|
78
|
+
print_red "Using #{Dir.pwd} "
|
79
|
+
else
|
80
|
+
warning "Could not find #{@app_file_path} "
|
81
|
+
end
|
82
|
+
end
|
75
83
|
#@app_serial_path = File.expand_path("~/serial_numbers")
|
76
84
|
@app_serial_path = "serial_numbers"
|
77
85
|
@archive_path = "todo_archive.txt"
|
@@ -237,6 +245,7 @@ class Todo
|
|
237
245
|
filelist = [@file]
|
238
246
|
filelist << @archive_path if @options[:show_arch]
|
239
247
|
filelist.each do |file|
|
248
|
+
next unless File.exist? file # 2011-09-22
|
240
249
|
File.open(file).each do |line|
|
241
250
|
row = line.chomp.split "\t"
|
242
251
|
@total += 1
|
@@ -382,7 +391,6 @@ class Todo
|
|
382
391
|
def pri args
|
383
392
|
errors = 0
|
384
393
|
ctr = 0
|
385
|
-
#populate # populate removed closed task so later saving will lose tasks
|
386
394
|
load_array
|
387
395
|
## if the first arg is priority then following items all have that priority
|
388
396
|
## if the first arg is item/s then wait for priority and use that
|
data/todorb.gemspec
CHANGED
@@ -1,73 +1,71 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{todorb}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date = %q{
|
13
|
-
s.default_executable = %q{todorb}
|
11
|
+
s.authors = [%q{Rahul Kumar}]
|
12
|
+
s.date = %q{2011-10-01}
|
14
13
|
s.description = %q{command-line program that manages a todo list text file, incl subtasks, status, priorities etc }
|
15
14
|
s.email = %q{sentinel1879@gmail.com}
|
16
|
-
s.executables = [
|
15
|
+
s.executables = [%q{todorb}]
|
17
16
|
s.extra_rdoc_files = [
|
18
17
|
"LICENSE",
|
19
|
-
|
18
|
+
"README.markdown"
|
20
19
|
]
|
21
20
|
s.files = [
|
22
21
|
"CHANGELOG.rdoc",
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
22
|
+
"LICENSE",
|
23
|
+
"Makefile",
|
24
|
+
"README.markdown",
|
25
|
+
"Rakefile",
|
26
|
+
"VERSION",
|
27
|
+
"bin/todorb",
|
28
|
+
"lib/todorb.rb",
|
29
|
+
"lib/todorb/common/cmdapp.rb",
|
30
|
+
"lib/todorb/common/colorconstants.rb",
|
31
|
+
"lib/todorb/common/sed.rb",
|
32
|
+
"tests/Makefile",
|
33
|
+
"tests/README",
|
34
|
+
"tests/aggregate-results.sh",
|
35
|
+
"tests/clean.sh",
|
36
|
+
"tests/data.1",
|
37
|
+
"tests/data.2",
|
38
|
+
"tests/dataset1.txt",
|
39
|
+
"tests/recreate.sh",
|
40
|
+
"tests/rtest2.sh",
|
41
|
+
"tests/t0001-help.sh",
|
42
|
+
"tests/t0002-subc_help.sh",
|
43
|
+
"tests/t0003-add.sh",
|
44
|
+
"tests/t0004-list.sh",
|
45
|
+
"tests/t0005-pri.sh",
|
46
|
+
"tests/t0006-pri_sort.sh",
|
47
|
+
"tests/t0007-status.sh",
|
48
|
+
"tests/t0008-addsub.sh",
|
49
|
+
"tests/t0009-del.sh",
|
50
|
+
"tests/t0010-copyunder.sh",
|
51
|
+
"tests/t0011-redo.sh",
|
52
|
+
"tests/t0012-renumber.sh",
|
53
|
+
"tests/t0013-add_opt.sh",
|
54
|
+
"tests/t0014-grep.sh",
|
55
|
+
"tests/t0015-show_actions.sh",
|
56
|
+
"tests/test-lib.sh",
|
57
|
+
"todorb.gemspec"
|
58
58
|
]
|
59
59
|
s.homepage = %q{http://github.com/rkumar/todorb}
|
60
|
-
s.
|
61
|
-
s.require_paths = ["lib"]
|
60
|
+
s.require_paths = [%q{lib}]
|
62
61
|
s.rubyforge_project = %q{todorb}
|
63
|
-
s.rubygems_version = %q{1.
|
62
|
+
s.rubygems_version = %q{1.8.8}
|
64
63
|
s.summary = %q{comprehensive command-line todo list manager with subtasks and more}
|
65
64
|
|
66
65
|
if s.respond_to? :specification_version then
|
67
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
68
66
|
s.specification_version = 3
|
69
67
|
|
70
|
-
if Gem::Version.new(Gem::
|
68
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
71
69
|
s.add_development_dependency(%q<subcommand>, [">= 1.0.5"])
|
72
70
|
s.add_runtime_dependency(%q<subcommand>, [">= 1.0.5"])
|
73
71
|
else
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: todorb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.2.
|
5
|
+
version: 1.2.3
|
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: 2011-
|
13
|
+
date: 2011-10-01 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: subcommand
|