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 +4 -4
- data/Gemfile.lock +1 -1
- data/RELEASE_NOTES.md +21 -0
- data/lib/da_funk/application.rb +6 -2
- data/lib/da_funk/helper/status_bar.rb +12 -9
- data/lib/da_funk/version.rb +1 -1
- data/lib/device.rb +1 -1
- data/lib/device/setting.rb +1 -2
- data/lib/iso8583/util.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c51a5629c6bb3c16b5c95f9f75c31fbdd0c4dad7ab85853b90f22b31c51ac07d
|
4
|
+
data.tar.gz: 0ec037b370257e24893d21e642144b63c94298d066d4539a7deface8906c82c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01332cd3a315619a08a7011d41b7d2a94d5c8ac4d9331a928a585a968eda3c5e05fb40f56776a4d7bed7b10db36072e5ba1314d71c08add652c653ffd01f1892
|
7
|
+
data.tar.gz: 2e0b2aff3a95c7e7e47b5b0c804e0011d218c42ed9a36ce114b6bf0194ecdf8b1aa52d06c84cdabd638055b19520a9c8e516facf535425d6cb2018509406ba45
|
data/Gemfile.lock
CHANGED
data/RELEASE_NOTES.md
CHANGED
@@ -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.
|
data/lib/da_funk/application.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
100
|
+
unless File.exists?('./shared/system_update')
|
101
|
+
connected = Device::Network.connected?
|
100
102
|
|
101
|
-
|
102
|
-
|
103
|
+
if connected != self.connected
|
104
|
+
self.connected = connected
|
103
105
|
|
104
|
-
|
105
|
-
|
106
|
+
slot_message_1 = SLOT_MESSAGE_CONNECTION[self.connected][:slot1]
|
107
|
+
slot_message_2 = SLOT_MESSAGE_CONNECTION[self.connected][:slot2]
|
106
108
|
|
107
|
-
|
108
|
-
|
109
|
+
message_1 = SLOT_MESSAGE_CONNECTION[self.connected][:message1]
|
110
|
+
message_2 = SLOT_MESSAGE_CONNECTION[self.connected][:message2]
|
109
111
|
|
110
|
-
|
111
|
-
|
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
|
|
data/lib/da_funk/version.rb
CHANGED
data/lib/device.rb
CHANGED
@@ -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
|
data/lib/device/setting.rb
CHANGED
@@ -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,
|
data/lib/iso8583/util.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2020-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|