da_funk 3.24.1 → 3.25.1

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: d44dfedaab6c25ce6e052478bf489480dd2617e2c9f04537c0a57ac6742b526c
4
- data.tar.gz: 04d1789a605fb768e9689064d58b1dd9785379e8bbae3c4d75760a2605b57323
3
+ metadata.gz: c51a5629c6bb3c16b5c95f9f75c31fbdd0c4dad7ab85853b90f22b31c51ac07d
4
+ data.tar.gz: 0ec037b370257e24893d21e642144b63c94298d066d4539a7deface8906c82c2
5
5
  SHA512:
6
- metadata.gz: 70221b238e7627133daf23a8e64c1dbf44800c6a7181c45a5bed64bb0f20bb93f3d3fcd3fa8a01d6e5ea9be289d5e629921f52ae9adf6af63629c68afc1db7a6
7
- data.tar.gz: bedf894f506861b471d50b8798fed306d55b7fb84f7ab40c802a51e4545182930a0c45315fff21820673930dd1c5d0c2b253dc658b2de7cad3a93ed42cf24761
6
+ metadata.gz: 01332cd3a315619a08a7011d41b7d2a94d5c8ac4d9331a928a585a968eda3c5e05fb40f56776a4d7bed7b10db36072e5ba1314d71c08add652c653ffd01f1892
7
+ data.tar.gz: 2e0b2aff3a95c7e7e47b5b0c804e0011d218c42ed9a36ce114b6bf0194ecdf8b1aa52d06c84cdabd638055b19520a9c8e516facf535425d6cb2018509406ba45
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.24.1)
4
+ da_funk (3.25.1)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -1,5 +1,26 @@
1
1
  # DaFunk
2
2
 
3
+ ### 3.25.1 - 2020-08-28
4
+
5
+ - Set DaFunk::Helper::StatusBar#connected as false on system update process so it will cache again.
6
+
7
+ ### 3.25.0 - 2020-08-18
8
+
9
+ - Added switch_http_enabled setting;
10
+ - Removed infinitepay_authorizer and infinitepay_api settings.
11
+
12
+ ### 3.24.4 - 2020-08-07
13
+
14
+ - Add defensive code to gsub calls.
15
+
16
+ ### 3.24.3 - 2020-08-03
17
+
18
+ - Fixed path name on DaFunk::Application
19
+
20
+ ### 3.24.2 - 2020-08-01
21
+
22
+ - Do not remove company name to file path when ruby app
23
+
3
24
  ### 3.24.1 - 2020-07-27
4
25
 
5
26
  - Infinitepay authorizer setting 1 as default.
@@ -23,7 +23,7 @@ module DaFunk
23
23
  company = check_company(remote)
24
24
  @remote = remote.sub("#{company}_", "")
25
25
  @name = remote.sub("#{company}_", "").split(".")[0]
26
- @file = check_path(@remote)
26
+ @file = check_path("#{@remote}")
27
27
  end
28
28
 
29
29
  def crc_local
@@ -140,7 +140,11 @@ module DaFunk
140
140
  if posxml?
141
141
  "./shared/#{path}"
142
142
  else
143
- "#{path.gsub("#{Device::Setting.company_name}_", "")}.zip"
143
+ if ruby?
144
+ "#{path}.zip"
145
+ else
146
+ "#{path.to_s.gsub("#{Device::Setting.company_name}_", "")}.zip"
147
+ end
144
148
  end
145
149
  end
146
150
 
@@ -90,25 +90,28 @@ module DaFunk
90
90
  if File.exists?('./shared/system_update')
91
91
  PAX::Display.print_status_bar(SLOT_UPDATE, "./shared/system_update_download.png")
92
92
  PAX::Display.print_status_bar(3, nil)
93
+ self.connected = false
93
94
  else
94
95
  change_message
95
96
  end
96
97
  end
97
98
 
98
99
  def self.change_message
99
- connected = Device::Network.connected?
100
+ unless File.exists?('./shared/system_update')
101
+ connected = Device::Network.connected?
100
102
 
101
- if connected != self.connected
102
- self.connected = connected
103
+ if connected != self.connected
104
+ self.connected = connected
103
105
 
104
- slot_message_1 = SLOT_MESSAGE_CONNECTION[self.connected][:slot1]
105
- slot_message_2 = SLOT_MESSAGE_CONNECTION[self.connected][:slot2]
106
+ slot_message_1 = SLOT_MESSAGE_CONNECTION[self.connected][:slot1]
107
+ slot_message_2 = SLOT_MESSAGE_CONNECTION[self.connected][:slot2]
106
108
 
107
- message_1 = SLOT_MESSAGE_CONNECTION[self.connected][:message1]
108
- message_2 = SLOT_MESSAGE_CONNECTION[self.connected][:message2]
109
+ message_1 = SLOT_MESSAGE_CONNECTION[self.connected][:message1]
110
+ message_2 = SLOT_MESSAGE_CONNECTION[self.connected][:message2]
109
111
 
110
- Device::Display.print_status_bar(slot_message_1, message_1)
111
- Device::Display.print_status_bar(slot_message_2, message_2)
112
+ Device::Display.print_status_bar(slot_message_1, message_1)
113
+ Device::Display.print_status_bar(slot_message_2, message_2)
114
+ end
112
115
  end
113
116
  end
114
117
 
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.24.1"
2
+ VERSION="3.25.1"
3
3
  end
4
4
 
@@ -8,7 +8,7 @@ class Device
8
8
  #
9
9
  # @return [Class] the class object flatted
10
10
  def self.flat_api
11
- klass_version = Device.version.gsub(".", "")
11
+ klass_version = Device.version.to_s.gsub(".", "")
12
12
  # Sample
13
13
  #if Device.version == "0.4.3"
14
14
  #const_get("VersionFlat#{klass_version}").flat Device
@@ -60,10 +60,9 @@ class Device
60
60
  "metadata_timestamp" => "",
61
61
  "payment_channel_attempts" => "0",
62
62
  "payment_channel_date" => "",
63
- "infinitepay_authorizer" => "1",
64
- "infinitepay_api" => "0",
65
63
  "infinitepay_cw_endpoint" => "1",
66
64
  "infinitepay_google_endpoint" => "0",
65
+ "switch_http_enabled" => "0",
67
66
  "transaction_http_enabled" => "1",
68
67
  "transaction_http_host" => HTTP_HOST_PRODUCTION,
69
68
  "transaction_http_port" => HTTP_PORT,
@@ -23,7 +23,7 @@ module ISO8583
23
23
  # hex2b "abcd12" => "\xa\cd\12"
24
24
  #
25
25
  def hex2b(hex_string)
26
- string = hex_string.gsub(/\s+/, "")
26
+ string = hex_string.to_s.gsub(/\s+/, "")
27
27
  raise ISO8583Exception.new("Invalid Hex chars: #{hex_string}") unless string =~ /^[A-Fa-f0-9]*$/
28
28
  raise ISO8583Exception.new("Uneven number of Hex chars #{hex_string}") unless ( (string.length % 2) == 0)
29
29
  [string].pack("H*")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: da_funk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.24.1
4
+ version: 3.25.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Scalone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-27 00:00:00.000000000 Z
11
+ date: 2020-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake