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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/bin/tod +6 -0
  4. data/tod-gem.gemspec +2 -2
  5. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 316c0db9ee8e4d1d8f06cbc8a88dad4353d27b06
4
- data.tar.gz: 8a15944e15fa5bcc947742f66012b8aeb825e31c
3
+ metadata.gz: efb1e220bf30b78e97fa7d885beee28dd3276d5c
4
+ data.tar.gz: d009b05dc2942296479f09f28f18e700c520bad5
5
5
  SHA512:
6
- metadata.gz: 8d4eeacee2f51f1d34830169bf68e040818a3ef14c27294055f0cf3265c679239b9a8c12c1484a16105b6e8cc7133ca930b31afe1617e7f25c5ee9a1317758bd
7
- data.tar.gz: 2dfde49506997c1b3805ff37b316266c7f38844554714d3a47768fdef4b9fef576ca4d1cde9148396ef1f4843e78a1d8e6b1a363f24fdd0f19d75ea7a7c584a6
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")
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tod-gem
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Siwek
8
+ - Carl Furrow
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []