da_funk 3.21.1 → 3.21.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/RELEASE_NOTES.md +5 -0
- data/lib/da_funk/helper.rb +3 -3
- data/lib/da_funk/version.rb +1 -1
- data/lib/device/setting.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e875275390a4f7dc2339aee32563d421eefb5b8c99506ddad0d07259ea0d3dc
|
4
|
+
data.tar.gz: 66171f575862fa2b8706d489f6c30092508a57e97ef2b447aeba2905b4f5fbfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d10be46df2116e414f0d6b8b77f4018caf9edf7c9f4edce6b2b2870b1b40185ef89a4f058593940cfc5b21ca76a17fd1047b54afe19a2775fc3aac10a49d06f4
|
7
|
+
data.tar.gz: 659f95c34040693e80395f8fa006015e07b85d8ddd6e14eb3357ce8c484337eb96db92bcf9e163f16756aa8705f3493cf2ebc67164c74d59f83fe22fa49c7c02
|
data/Gemfile.lock
CHANGED
data/RELEASE_NOTES.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# DaFunk
|
2
2
|
|
3
|
+
### 3.21.2 - 2020-06-16
|
4
|
+
|
5
|
+
- Fixed timeout return on DaFunK::Helper#menu, it should return Device::IO::KEY_TIMEOUT not options[:timeout];
|
6
|
+
- Set cloudwalk endpoint as default.
|
7
|
+
|
3
8
|
### 3.21.1 - 2020-06-16
|
4
9
|
|
5
10
|
- Fix error when timeout on DaFunk::menu_image_touchscreen_or_keyboard.
|
data/lib/da_funk/helper.rb
CHANGED
@@ -276,7 +276,7 @@ module DaFunk
|
|
276
276
|
# }
|
277
277
|
#
|
278
278
|
# menu("Option menu", selection, options)
|
279
|
-
#
|
279
|
+
# @return nil if user canceled or Device::IO::KEY_TIMEOUT if timeout or option selected
|
280
280
|
def menu(title, selection, options = {})
|
281
281
|
return nil if selection.empty?
|
282
282
|
options[:number] = true if options[:number].nil?
|
@@ -299,7 +299,7 @@ module DaFunk
|
|
299
299
|
if key == Device::IO::ENTER
|
300
300
|
options[:default]
|
301
301
|
elsif key == Device::IO::KEY_TIMEOUT
|
302
|
-
|
302
|
+
Device::IO::KEY_TIMEOUT
|
303
303
|
else
|
304
304
|
selected
|
305
305
|
end
|
@@ -307,7 +307,7 @@ module DaFunk
|
|
307
307
|
|
308
308
|
# TODO Scalone: Refactor.
|
309
309
|
def pagination(title, options, collection, &block)
|
310
|
-
timeout = Device::IO.timeout
|
310
|
+
timeout = options[:timeout].nil? ? options[:timeout] : Device::IO.timeout
|
311
311
|
touchscreen_options = {}
|
312
312
|
start_line, options[:limit], options[:header] = pagination_limit(title, options)
|
313
313
|
|
data/lib/da_funk/version.rb
CHANGED
data/lib/device/setting.rb
CHANGED
@@ -62,8 +62,8 @@ class Device
|
|
62
62
|
"payment_channel_date" => "",
|
63
63
|
"infinitepay_authorizer" => "0",
|
64
64
|
"infinitepay_api" => "0",
|
65
|
-
"infinitepay_cw_endpoint" => "
|
66
|
-
"infinitepay_google_endpoint" => "
|
65
|
+
"infinitepay_cw_endpoint" => "1",
|
66
|
+
"infinitepay_google_endpoint" => "0",
|
67
67
|
"transaction_http_enabled" => "1",
|
68
68
|
"transaction_http_host" => HTTP_HOST_PRODUCTION,
|
69
69
|
"transaction_http_port" => HTTP_PORT,
|