dmenu 0.0.1 → 0.0.2
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.
- data/lib/dmenu.rb +3 -1
- metadata +3 -3
data/lib/dmenu.rb
CHANGED
|
@@ -7,6 +7,8 @@ require "dmenu/item"
|
|
|
7
7
|
#
|
|
8
8
|
# menu.run # this will return a Dmenu::Item, according to what the user selected.
|
|
9
9
|
class Dmenu
|
|
10
|
+
VERSION = "0.0.2"
|
|
11
|
+
|
|
10
12
|
# @return [Array<#to_s, Item>] Items to display in the menu. Items
|
|
11
13
|
# that are not an instance of the {Item} class will transparently
|
|
12
14
|
# be converted into one.
|
|
@@ -73,7 +75,7 @@ class Dmenu
|
|
|
73
75
|
end
|
|
74
76
|
|
|
75
77
|
selection = items.find {|item|
|
|
76
|
-
item.key == value
|
|
78
|
+
item.key.to_s == value
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
return selection
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: 0.0.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.0.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Dominik Honnef
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-10-
|
|
17
|
+
date: 2010-10-03 00:00:00 +02:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies: []
|
|
20
20
|
|