rubdo 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rubdo/cli.rb +2 -2
- data/lib/rubdo/version.rb +1 -1
- metadata +1 -1
data/lib/rubdo/cli.rb
CHANGED
@@ -13,7 +13,7 @@ module Rubdo
|
|
13
13
|
system("$EDITOR #{tmp_file.path}")
|
14
14
|
unless File.read(tmp_file.path).empty?
|
15
15
|
@list.add File.read(tmp_file).chomp
|
16
|
-
tmp_file.
|
16
|
+
tmp_file.delete
|
17
17
|
else
|
18
18
|
puts "aborted due to empty file"
|
19
19
|
end
|
@@ -49,7 +49,7 @@ module Rubdo
|
|
49
49
|
File.open(tmp_file.path, 'w') { |f| f.write(@list.items[@id].description) }
|
50
50
|
system("$EDITOR #{tmp_file.path}")
|
51
51
|
@list.items[@id].description = File.read(tmp_file).chomp
|
52
|
-
|
52
|
+
tmp_file.delete
|
53
53
|
end
|
54
54
|
|
55
55
|
def remove
|
data/lib/rubdo/version.rb
CHANGED