da_funk 3.7.0 → 3.8.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 +10 -14
- data/RELEASE_NOTES.md +7 -0
- data/lib/da_funk/application.rb +15 -0
- data/lib/da_funk/payment_channel.rb +1 -2
- data/lib/da_funk/screen.rb +0 -1
- data/lib/da_funk/version.rb +1 -1
- data/lib/device/runtime.rb +9 -1
- data/lib/device/setting.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33d6e374ebba38edfb83b1e024d15ffb3bb83398
|
4
|
+
data.tar.gz: 2ce938d609c4ff4413ed6e043659af99195a70e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 831a04e935e0f7bdc606256128664f7730689fe4cd4a32433717433f56261a66b525f7d4b197a2d1f74b15ce8ad44fe9702bf422a8683ffa73ff44e6e397553e
|
7
|
+
data.tar.gz: eba0516c0d1a09532a3b174ad81216ace47dc18395fd8ce83f9bd6a849bd76a8d684598a7e44254252451c3368dd45cc9238b71c71624cbdaba2e732d5c7b359
|
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.8.0)
|
5
5
|
archive-zip (~> 0.5)
|
6
6
|
bundler
|
7
7
|
cloudwalk_handshake
|
@@ -15,37 +15,33 @@ GEM
|
|
15
15
|
archive-zip (0.12.0)
|
16
16
|
io-like (~> 0.3.0)
|
17
17
|
ast (2.4.0)
|
18
|
-
cloudwalk (1.14.
|
18
|
+
cloudwalk (1.14.3)
|
19
19
|
bundler
|
20
20
|
rake
|
21
|
-
cloudwalk_handshake (1.
|
21
|
+
cloudwalk_handshake (1.3.0)
|
22
22
|
funky-simplehttp (~> 0.6)
|
23
|
-
funky-emv (0.
|
23
|
+
funky-emv (0.25.0)
|
24
24
|
funky-tlv (~> 0.2)
|
25
25
|
funky-simplehttp (0.6.0)
|
26
26
|
funky-tlv (0.2.3)
|
27
27
|
io-like (0.3.0)
|
28
28
|
jaro_winkler (1.5.2)
|
29
29
|
parallel (1.17.0)
|
30
|
-
parser (2.6.
|
30
|
+
parser (2.6.3.0)
|
31
31
|
ast (~> 2.4.0)
|
32
32
|
posxml_parser (2.18.0)
|
33
33
|
funky-emv (~> 0.3)
|
34
|
-
psych (3.1.0)
|
35
|
-
psych (3.1.0-x64-mingw32)
|
36
|
-
psych (3.1.0-x86-mingw32)
|
37
34
|
rainbow (3.0.0)
|
38
35
|
rake (12.3.2)
|
39
|
-
rubocop (0.
|
36
|
+
rubocop (0.71.0)
|
40
37
|
jaro_winkler (~> 1.5.1)
|
41
38
|
parallel (~> 1.10)
|
42
|
-
parser (>= 2.
|
43
|
-
psych (>= 3.1.0)
|
39
|
+
parser (>= 2.6)
|
44
40
|
rainbow (>= 2.2.2, < 4.0)
|
45
41
|
ruby-progressbar (~> 1.7)
|
46
|
-
unicode-display_width (>= 1.4.0, < 1.
|
47
|
-
ruby-progressbar (1.10.
|
48
|
-
unicode-display_width (1.
|
42
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
43
|
+
ruby-progressbar (1.10.1)
|
44
|
+
unicode-display_width (1.6.0)
|
49
45
|
yard (0.9.19)
|
50
46
|
|
51
47
|
PLATFORMS
|
data/RELEASE_NOTES.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# DaFunk
|
2
2
|
|
3
|
+
### 3.8.0 - 2019-06-06
|
4
|
+
|
5
|
+
- Do not send host/port information to CwHttpSocket, let it deal with host and port config from config.dat and/or params.dat;
|
6
|
+
- Added infinitepay_authorizer and infinitepay_api on config.dat;
|
7
|
+
- Divide Runtime execution in two steps, start (application loading) execute (application execution);
|
8
|
+
- Support to cache an application after downloading;
|
9
|
+
|
3
10
|
### 3.7.0 - 2019-05-22
|
4
11
|
|
5
12
|
- Added support to get http code status using payment channel interface.
|
data/lib/da_funk/application.rb
CHANGED
@@ -44,11 +44,13 @@ module DaFunk
|
|
44
44
|
if ret == DaFunk::Transaction::Download::SUCCESS
|
45
45
|
if ((@crc_local = calculate_crc) == @crc)
|
46
46
|
unzip
|
47
|
+
restart
|
47
48
|
else
|
48
49
|
ret = DaFunk::Transaction::Download::COMMUNICATION_ERROR
|
49
50
|
end
|
50
51
|
elsif ret == DaFunk::Transaction::Download::FILE_NOT_CHANGE
|
51
52
|
unzip
|
53
|
+
restart
|
52
54
|
end
|
53
55
|
else
|
54
56
|
ret = DaFunk::Transaction::Download::FILE_NOT_CHANGE
|
@@ -101,6 +103,19 @@ module DaFunk
|
|
101
103
|
end
|
102
104
|
end
|
103
105
|
|
106
|
+
def restart
|
107
|
+
stop
|
108
|
+
start
|
109
|
+
end
|
110
|
+
|
111
|
+
def stop
|
112
|
+
Device::Runtime.stop(name) if ruby? && exists?
|
113
|
+
end
|
114
|
+
|
115
|
+
def start
|
116
|
+
Device::Runtime.start(name) if ruby? && exists?
|
117
|
+
end
|
118
|
+
|
104
119
|
def posxml?
|
105
120
|
@type == "posxml" || remote.include?(".posxml")
|
106
121
|
end
|
@@ -136,8 +136,7 @@ module DaFunk
|
|
136
136
|
@host = Device::Setting.host
|
137
137
|
@port = (Device::Setting.apn == "gprsnac.com.br") ? 32304 : 443
|
138
138
|
if PaymentChannel.transaction_http?
|
139
|
-
@client = client || CwHttpSocket.new
|
140
|
-
Device::Setting.transaction_http_port)
|
139
|
+
@client = client || CwHttpSocket.new
|
141
140
|
else
|
142
141
|
@client = client || CwWebSocket::Client.new(@host, @port)
|
143
142
|
end
|
data/lib/da_funk/screen.rb
CHANGED
data/lib/da_funk/version.rb
CHANGED
data/lib/device/runtime.rb
CHANGED
@@ -12,11 +12,19 @@ class Device
|
|
12
12
|
# @param json [String] Parameters to confifure new aplication.
|
13
13
|
# @return [Object] From the new runtime instance.
|
14
14
|
def self.execute(app, json = nil)
|
15
|
-
execution_ret = mrb_eval("Context.
|
15
|
+
execution_ret = mrb_eval("Context.execute('#{app}', '#{Device.adapter}', '#{json}')", app)
|
16
16
|
self.system_reload
|
17
17
|
return execution_ret
|
18
18
|
end
|
19
19
|
|
20
|
+
def self.start(app, json = nil)
|
21
|
+
mrb_eval("Context.start('#{app}', '#{Device.adapter}', '#{json}')", app)
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.stop(app)
|
25
|
+
mrb_stop(app)
|
26
|
+
end
|
27
|
+
|
20
28
|
# Check if any change has happen to Network, Settings or ParamsDat
|
21
29
|
# @return [NilClass] From the new runtime instance.
|
22
30
|
def self.system_reload
|
data/lib/device/setting.rb
CHANGED
@@ -60,6 +60,8 @@ class Device
|
|
60
60
|
"metadata_timestamp" => "",
|
61
61
|
"payment_channel_attempts" => "0",
|
62
62
|
"payment_channel_date" => "",
|
63
|
+
"infinitepay_authorizer" => "0",
|
64
|
+
"infinitepay_api" => "0",
|
63
65
|
"transaction_http_enabled" => "1",
|
64
66
|
"transaction_http_host" => HTTP_HOST_PRODUCTION,
|
65
67
|
"transaction_http_port" => HTTP_PORT
|
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.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thiago Scalone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|