rubdo 0.1.4 → 0.1.5

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 (3) hide show
  1. data/lib/rubdo/cli.rb +2 -2
  2. data/lib/rubdo/version.rb +1 -1
  3. 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.unlink
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
- Tempfile.delete(tmp_file)
52
+ tmp_file.delete
53
53
  end
54
54
 
55
55
  def remove
data/lib/rubdo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Rubdo
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: