da_funk 2.0.3 → 2.0.4
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 +3 -3
- data/RELEASE_NOTES.md +6 -1
- data/lib/da_funk/helper.rb +9 -1
- data/lib/da_funk/params_dat.rb +6 -3
- data/lib/da_funk/version.rb +1 -1
- 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: f2ceffabe33ecdf275fec70ec8f2f273ce17e261
|
|
4
|
+
data.tar.gz: 0bfc156fd6b942bfa5a738fb7633ceecbcac175e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b237c4bcac1faac87599a43307f0a312d73e6307f2133045ba2645474d85c8d5cc31f5837413b9fe447754cb0440ee88293246e466c5f61386e1efcc8ff9bda
|
|
7
|
+
data.tar.gz: 7471562468f8bbc64201a98a123976132e960273cc9aa62a3f38a97e7b05f70a813f386bbd4312e45345ff93d241d81ac419ae7349fe984622a26a8499a4392a
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
da_funk (2.0.
|
|
4
|
+
da_funk (2.0.4)
|
|
5
5
|
archive-zip (~> 0.5)
|
|
6
6
|
bundler
|
|
7
7
|
cloudwalk_handshake
|
|
@@ -19,7 +19,7 @@ GEM
|
|
|
19
19
|
bundler
|
|
20
20
|
rake
|
|
21
21
|
cloudwalk_handshake (0.13.2)
|
|
22
|
-
funky-emv (0.20.
|
|
22
|
+
funky-emv (0.20.1)
|
|
23
23
|
funky-tlv (~> 0.2)
|
|
24
24
|
funky-simplehttp (0.5.0)
|
|
25
25
|
funky-tlv (0.2.3)
|
|
@@ -28,7 +28,7 @@ GEM
|
|
|
28
28
|
parallel (1.12.1)
|
|
29
29
|
parser (2.5.1.2)
|
|
30
30
|
ast (~> 2.4.0)
|
|
31
|
-
posxml_parser (2.8.
|
|
31
|
+
posxml_parser (2.8.5)
|
|
32
32
|
funky-emv (~> 0.3)
|
|
33
33
|
powerpack (0.1.2)
|
|
34
34
|
rainbow (3.0.0)
|
data/RELEASE_NOTES.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# DaFunk
|
|
2
2
|
|
|
3
|
-
### 2.0.
|
|
3
|
+
### 2.0.4 - 2018-10-11
|
|
4
|
+
|
|
5
|
+
- Do not print last if not in communication thread;
|
|
6
|
+
- Replace sleep by getc at ParamsDat download functions;
|
|
7
|
+
|
|
8
|
+
### 2.0.3 - 2018-10-10
|
|
4
9
|
|
|
5
10
|
- Fix I18n print and translate to check line and column.
|
|
6
11
|
|
data/lib/da_funk/helper.rb
CHANGED
|
@@ -14,6 +14,14 @@ module DaFunk
|
|
|
14
14
|
string
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
def attach_options
|
|
18
|
+
if DaFunk::PaymentChannel.client == Context::CommunicationChannel
|
|
19
|
+
{:print_last => true}
|
|
20
|
+
else
|
|
21
|
+
{:print_last => false}
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
17
25
|
# {
|
|
18
26
|
# :bmps => {
|
|
19
27
|
# :attach_connecting => "<path>",
|
|
@@ -25,7 +33,7 @@ module DaFunk
|
|
|
25
33
|
#
|
|
26
34
|
# {:print_last => true} || nil
|
|
27
35
|
|
|
28
|
-
def attach(options =
|
|
36
|
+
def attach(options = attach_options)
|
|
29
37
|
if Device::Network.configured?
|
|
30
38
|
print_attach(:attach_connecting, options)
|
|
31
39
|
unless Device::Network.connected?
|
data/lib/da_funk/params_dat.rb
CHANGED
|
@@ -112,9 +112,10 @@ module DaFunk
|
|
|
112
112
|
ret = try(3) do |attempt|
|
|
113
113
|
Device::Display.clear
|
|
114
114
|
I18n.pt(:downloading_content, :args => ["PARAMS", 1, 1])
|
|
115
|
+
getc(100)
|
|
115
116
|
ret = DaFunk::Transaction::Download.request_param_file(FILE_NAME)
|
|
116
117
|
unless check_download_error(ret)
|
|
117
|
-
|
|
118
|
+
getc(2000)
|
|
118
119
|
false
|
|
119
120
|
else
|
|
120
121
|
true
|
|
@@ -171,8 +172,9 @@ module DaFunk
|
|
|
171
172
|
try(3) do |attempt|
|
|
172
173
|
Device::Display.clear
|
|
173
174
|
I18n.pt(:downloading_content, :args => [I18n.t(:apps), index, all])
|
|
175
|
+
getc(100)
|
|
174
176
|
ret = check_download_error(application.download(force))
|
|
175
|
-
|
|
177
|
+
getc(1000)
|
|
176
178
|
ret
|
|
177
179
|
end
|
|
178
180
|
end
|
|
@@ -183,9 +185,10 @@ module DaFunk
|
|
|
183
185
|
try(3) do |attempt|
|
|
184
186
|
Device::Display.clear
|
|
185
187
|
I18n.pt(:downloading_content, :args => [I18n.t(:files), index, all])
|
|
188
|
+
getc(100)
|
|
186
189
|
ret = check_download_error(file_parameter.download(force))
|
|
187
190
|
file_parameter.unzip if ret
|
|
188
|
-
|
|
191
|
+
getc(1000)
|
|
189
192
|
ret
|
|
190
193
|
end
|
|
191
194
|
end
|
data/lib/da_funk/version.rb
CHANGED
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: 2.0.
|
|
4
|
+
version: 2.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thiago Scalone
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|