rudo 0.0.4 → 0.0.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 (2) hide show
  1. data/bin/dun +7 -1
  2. metadata +3 -3
data/bin/dun CHANGED
@@ -7,6 +7,12 @@ options = Trollop::options do
7
7
  opt :color, "Print with colors", :default => true
8
8
  end
9
9
 
10
+ begin
11
+ selection = Integer(ARGV[0]) - 1
12
+ rescue
13
+ selection = ARGV[0]
14
+ end
15
+
10
16
  r = Rudo.new(options)
11
- r.remove(ARGV[0])
17
+ r.remove(selection)
12
18
  r.print(options)
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Robert Fletcher