rudo 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rudo.rb +4 -1
  2. metadata +4 -4
@@ -34,7 +34,9 @@ class Rudo
34
34
  count = Integer($1)
35
35
  count.times { @tasks.shift }
36
36
  else
37
- @tasks.delete_at(position.to_i - 1)
37
+ position = position.to_i
38
+ position -= 1 if position > 0
39
+ @tasks.delete_at(position)
38
40
  end
39
41
  write_tasks
40
42
  end
@@ -53,5 +55,6 @@ private
53
55
  File.open(@file_path, 'w') do |file|
54
56
  file.write(YAML.dump(@tasks))
55
57
  end
58
+ true
56
59
  end
57
60
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robert Fletcher
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-15 00:00:00 -07:00
18
+ date: 2011-07-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency