j 0.6 → 0.6.11
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/.gitignore +1 -0
- data/README.md +10 -6
- data/bin/j +73 -0
- data/j.gemspec +1 -1
- metadata +33 -38
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,14 +1,20 @@
|
|
1
1
|
j - task manager (v0.5.1)
|
2
|
-
|
2
|
+
==========================
|
3
3
|
|
4
4
|
j, stands for jot and is a simple command-line task manager written in Ruby. Inspired by [t-](http://www.penzba.co.uk/t-/t-.html) which was written in Python.
|
5
5
|
|
6
|
-
|
6
|
+
|
7
|
+
Install
|
7
8
|
--------
|
8
9
|
|
9
10
|
gem install j
|
10
11
|
|
11
|
-
|
12
|
+
Note
|
13
|
+
-----
|
14
|
+
|
15
|
+
As of version 0.6.11, the executable is available as both "j" and "jot". So feel free to use whichever you feel is world changing ;)
|
16
|
+
|
17
|
+
Usage
|
12
18
|
-------
|
13
19
|
|
14
20
|
* List todo tasks
|
@@ -29,6 +35,4 @@ Usage:
|
|
29
35
|
|
30
36
|
Key is a number that you will find next to a task, when you list tasks. It isn't the same everytime. So watch out!
|
31
37
|
|
32
|
-
All tasks are stored in the *.todo* file in your *$HOME* directory. However, if your current directory contains a *.todo* file, then that file will be used
|
33
|
-
|
34
|
-
|
38
|
+
**All tasks are stored in the *.todo* file in your *$HOME* directory. However, if your current directory contains a *.todo* file, then that file will be used.**
|
data/bin/j
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
require 'rainbow'
|
3
|
+
require 'optparse'
|
4
|
+
require File.expand_path('../lib/j', File.dirname(__FILE__))
|
5
|
+
|
6
|
+
|
7
|
+
j = J.new
|
8
|
+
|
9
|
+
validOptions = ["-a", "--all",
|
10
|
+
"-f", "--finished",
|
11
|
+
"-t", "--todo",
|
12
|
+
"-m", "--mark",
|
13
|
+
"-d", "--delete",
|
14
|
+
"-c", "--clear",
|
15
|
+
"-h", "--help"]
|
16
|
+
|
17
|
+
if ARGV.length > 0 and validOptions.include?(ARGV.first)
|
18
|
+
|
19
|
+
options = OptionParser.new do |o|
|
20
|
+
o.banner = "j task manager"
|
21
|
+
|
22
|
+
o.on('-a', "--all", "List all tasks") do |b|
|
23
|
+
j.listTasks(:all)
|
24
|
+
exit
|
25
|
+
end
|
26
|
+
|
27
|
+
o.on('-t', "--todo", "List todo. Same as using command without options") do |b|
|
28
|
+
j.listTasks(:todo)
|
29
|
+
exit
|
30
|
+
end
|
31
|
+
|
32
|
+
o.on('-f', "--finished", "List finished tasks") do |b|
|
33
|
+
j.listTasks(:done)
|
34
|
+
exit
|
35
|
+
end
|
36
|
+
|
37
|
+
o.on('-m KEY', "--mark KEY", "Mark a task a completed") do |key|
|
38
|
+
if j.validKey key
|
39
|
+
j.markTask key
|
40
|
+
else
|
41
|
+
puts o
|
42
|
+
end
|
43
|
+
exit
|
44
|
+
end
|
45
|
+
|
46
|
+
o.on('-d KEY', "--delete KEY", "Delete a task") do |key|
|
47
|
+
if j.validKey key
|
48
|
+
j.deleteTask key
|
49
|
+
else
|
50
|
+
puts o
|
51
|
+
end
|
52
|
+
exit
|
53
|
+
end
|
54
|
+
|
55
|
+
o.on('-c', "--clear", "Clears the todo list") do |b|
|
56
|
+
j.clearList
|
57
|
+
exit
|
58
|
+
end
|
59
|
+
|
60
|
+
o.on('-h', "--help", "Displays this message") do |b|
|
61
|
+
puts o
|
62
|
+
exit
|
63
|
+
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
options.parse!
|
68
|
+
|
69
|
+
elsif ARGV.length > 0
|
70
|
+
j.addTask ARGV.join(" ")
|
71
|
+
elsif ARGV.length == 0
|
72
|
+
j.listTasks(:todo)
|
73
|
+
end
|
data/j.gemspec
CHANGED
metadata
CHANGED
@@ -1,74 +1,69 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: j
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.6.11
|
4
5
|
prerelease:
|
5
|
-
version: "0.6"
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Akash Manohar
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-08-08 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: rainbow
|
18
|
-
|
19
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2157891880 !ruby/object:Gem::Requirement
|
20
17
|
none: false
|
21
|
-
requirements:
|
18
|
+
requirements:
|
22
19
|
- - ~>
|
23
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
24
21
|
version: 1.1.1
|
25
22
|
type: :runtime
|
26
|
-
|
27
|
-
|
28
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2157891880
|
25
|
+
description: j, stands for jot and is a simple command-line task manager. Inspired
|
26
|
+
by t- task manager which is written in python. The binary for is called jot. You
|
27
|
+
can alias it to j.
|
28
|
+
email:
|
29
29
|
- akash@akash.im
|
30
|
-
executables:
|
30
|
+
executables:
|
31
|
+
- j
|
31
32
|
- jot
|
32
33
|
extensions: []
|
33
|
-
|
34
34
|
extra_rdoc_files: []
|
35
|
-
|
36
|
-
files:
|
35
|
+
files:
|
37
36
|
- .gitignore
|
38
37
|
- Gemfile
|
39
38
|
- README.md
|
40
39
|
- Rakefile
|
40
|
+
- bin/j
|
41
41
|
- bin/jot
|
42
42
|
- how-does-it-work.md
|
43
43
|
- j.gemspec
|
44
44
|
- lib/j.rb
|
45
|
-
has_rdoc: true
|
46
45
|
homepage: http://akash.im/j
|
47
46
|
licenses: []
|
48
|
-
|
49
47
|
post_install_message:
|
50
48
|
rdoc_options: []
|
51
|
-
|
52
|
-
require_paths:
|
49
|
+
require_paths:
|
53
50
|
- lib
|
54
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
51
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
55
52
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
version:
|
60
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ! '>='
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
57
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
58
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
version:
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
66
63
|
requirements: []
|
67
|
-
|
68
64
|
rubyforge_project:
|
69
|
-
rubygems_version: 1.
|
65
|
+
rubygems_version: 1.8.7
|
70
66
|
signing_key:
|
71
67
|
specification_version: 3
|
72
|
-
summary: j task manager - v0.6
|
68
|
+
summary: j task manager - v0.6.11
|
73
69
|
test_files: []
|
74
|
-
|