tod-gem 0.2 → 0.2.1
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.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/bin/tod +6 -0
- data/tod-gem.gemspec +2 -2
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efb1e220bf30b78e97fa7d885beee28dd3276d5c
|
4
|
+
data.tar.gz: d009b05dc2942296479f09f28f18e700c520bad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 154f49571c3f77247ae6bbbf049787efce92cb15eb02b8efb499f49efd568e08b6799f740145656a2319c4f5a07d1839f10e2420b27e743312b59a7cf71cde1c
|
7
|
+
data.tar.gz: 65c34b2ffc1301f6ec03e48fa13e4a70bdba36541bb27b87d9cc2a81b02739e8f92d03ffebe78b91de89360114eab233fccdff05daa4151bfea231d06a4a138e
|
data/README.md
CHANGED
@@ -29,8 +29,12 @@ Usage
|
|
29
29
|
|
30
30
|
* `tod clear` permanently deletes todos marked as done from the register of current directory.
|
31
31
|
|
32
|
+
* `tod local` creates a '.todfile' in your current directory. Useful when you don't want to use a shared .todfile in a parent dir.
|
33
|
+
|
32
34
|
The todo register is kept in the file named `.todfile` once you create at least one todo in given directory. This way you can add the file to a git or svn repository and distribute it between machines.
|
33
35
|
|
36
|
+
*Note* by default, the `.todfile` will be created in your home dir, unless you run `tod local` to force the creation of the file in your current directory.
|
37
|
+
|
34
38
|
License
|
35
39
|
-------
|
36
40
|
Copyright 2013 Michal Siwek
|
data/bin/tod
CHANGED
@@ -71,6 +71,10 @@ def replace_todfile_with(lines)
|
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
|
+
def touch_todfile(path=nil)
|
75
|
+
`touch #{File.expand_path(File.join(path,'.todfile'))}`
|
76
|
+
end
|
77
|
+
|
74
78
|
@command = ARGV[0]
|
75
79
|
@todfile_path = find_todfile(".")
|
76
80
|
@todfile_exists = File.exists?(@todfile_path)
|
@@ -90,4 +94,6 @@ when 'done'
|
|
90
94
|
done @query
|
91
95
|
when 'clear'
|
92
96
|
clear_done
|
97
|
+
when 'local'
|
98
|
+
touch_todfile('.')
|
93
99
|
end
|
data/tod-gem.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'tod-gem'
|
3
|
-
s.version = '0.2'
|
3
|
+
s.version = '0.2.1'
|
4
4
|
s.summary = 'Simple command line todo manager'
|
5
|
-
s.authors = ['Michal Siwek']
|
5
|
+
s.authors = ['Michal Siwek', 'Carl Furrow']
|
6
6
|
s.email = 'mike21@aol.pl'
|
7
7
|
s.license = 'GPL-3.0'
|
8
8
|
s.files = `git ls-files`.split("\n")
|