da_funk 3.1.1 → 3.2.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/RELEASE_NOTES.md +4 -0
- data/lib/da_funk/helper.rb +16 -0
- data/lib/da_funk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03471ebb21256854e18323132924129cbaa4e934
|
4
|
+
data.tar.gz: 631d211bfead33ff374846d2c0f13a1ccef96978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 398b8b52adbb9ff45fa57ceaa7136615147770df89b6b63ebf44fabefdf3566919f9fa51a7e8e00ed2b6a6410ab272633355c52365af7f7aeb37b2e882710ff4
|
7
|
+
data.tar.gz: bf4a3c9a5dde48b39978facf54822cb69c5424cf039e3812d9fe49a4f15e1bbb982dc2ff3769de06fcabda2e4494f5601c997971deee46cac7cb22436f269180
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
da_funk (3.
|
4
|
+
da_funk (3.2.0)
|
5
5
|
archive-zip (~> 0.5)
|
6
6
|
bundler
|
7
7
|
cloudwalk_handshake
|
@@ -18,7 +18,7 @@ GEM
|
|
18
18
|
cloudwalk (1.14.0)
|
19
19
|
bundler
|
20
20
|
rake
|
21
|
-
cloudwalk_handshake (1.2.
|
21
|
+
cloudwalk_handshake (1.2.1)
|
22
22
|
funky-emv (0.20.2)
|
23
23
|
funky-tlv (~> 0.2)
|
24
24
|
funky-simplehttp (0.5.0)
|
data/RELEASE_NOTES.md
CHANGED
data/lib/da_funk/helper.rb
CHANGED
@@ -129,6 +129,22 @@ module DaFunk
|
|
129
129
|
processing
|
130
130
|
end
|
131
131
|
|
132
|
+
def menu_image(path, selection, options = {})
|
133
|
+
return nil if selection.empty?
|
134
|
+
|
135
|
+
Device::Display.print_bitmap(path)
|
136
|
+
|
137
|
+
keys = ((1..(selection.size)).to_a.map(&:to_s) + [Device::IO::CANCEL])
|
138
|
+
key = try_key(keys, options[:timeout] || Device::IO.timeout)
|
139
|
+
selected = selection[key.to_i-1] if key.integer?
|
140
|
+
|
141
|
+
if key == Device::IO::ENTER || key == Device::IO::CANCEL
|
142
|
+
options[:default]
|
143
|
+
else
|
144
|
+
selected
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
132
148
|
# Create a form menu.
|
133
149
|
#
|
134
150
|
# @param title [String] Text to display on line 0. If nil title won't be
|
data/lib/da_funk/version.rb
CHANGED