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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbb46ee9400d7652a74252864cfe292c4dd0ea5d96ef09bc53505812f7c75e11
4
- data.tar.gz: 879162e1d06908fbabc24f462f47b365db1dbd8bed8fd66b3bdf4669de006f7d
3
+ metadata.gz: 8e875275390a4f7dc2339aee32563d421eefb5b8c99506ddad0d07259ea0d3dc
4
+ data.tar.gz: 66171f575862fa2b8706d489f6c30092508a57e97ef2b447aeba2905b4f5fbfa
5
5
  SHA512:
6
- metadata.gz: 4607840b3eae2bdd4e02463d0b89ce6f6b599bb75d25f00e6d9158592384626b2597dd81c327ac12cfd8d67a9752c6d297864bd489421f2b7c56de05017e9ae8
7
- data.tar.gz: 6bca8598d604b3c5532cb31e1ab64b5dc066be8e160be9ce28a5140a0b0c249082576e45d81751204ecc8160a7bab01ec0f7772cdadd655acce20bfc849a1595
6
+ metadata.gz: d10be46df2116e414f0d6b8b77f4018caf9edf7c9f4edce6b2b2870b1b40185ef89a4f058593940cfc5b21ca76a17fd1047b54afe19a2775fc3aac10a49d06f4
7
+ data.tar.gz: 659f95c34040693e80395f8fa006015e07b85d8ddd6e14eb3357ce8c484337eb96db92bcf9e163f16756aa8705f3493cf2ebc67164c74d59f83fe22fa49c7c02
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.21.1)
4
+ da_funk (3.21.2)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -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.
@@ -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
- options[:timeout]
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
 
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.21.1"
2
+ VERSION="3.21.2"
3
3
  end
4
4
 
@@ -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" => "0",
66
- "infinitepay_google_endpoint" => "1",
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,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_funk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.21.1
4
+ version: 3.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Scalone