rubdo 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubdo/cli.rb +8 -3
- data/lib/rubdo/version.rb +1 -1
- metadata +2 -2
data/lib/rubdo/cli.rb
CHANGED
@@ -8,9 +8,14 @@ module Rubdo
|
|
8
8
|
def add
|
9
9
|
@list.add ARGV[1] if ARGV[1]
|
10
10
|
unless ARGV[1]
|
11
|
-
|
12
|
-
|
13
|
-
File.
|
11
|
+
tmp_file = '/tmp/new_task.txt'
|
12
|
+
system("$EDITOR #{tmp_file}")
|
13
|
+
if File.exists? tmp_file
|
14
|
+
@list.add File.read(tmp_file).chomp
|
15
|
+
File.delete(tmp_file)
|
16
|
+
else
|
17
|
+
puts "aborted because of empty file"
|
18
|
+
end
|
14
19
|
end
|
15
20
|
end
|
16
21
|
|
data/lib/rubdo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A quick and dirty todo application
|
15
15
|
email:
|