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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8ac875a6f534b775b75d7916ca20f6b7a130570
4
- data.tar.gz: b922d999c566ea6640cb1497210a421cee7e42fb
3
+ metadata.gz: f2ceffabe33ecdf275fec70ec8f2f273ce17e261
4
+ data.tar.gz: 0bfc156fd6b942bfa5a738fb7633ceecbcac175e
5
5
  SHA512:
6
- metadata.gz: 2fc5073ce2164129329220eaecceabb4b34b8a92bb2f2bc0b134de0c1376b4b152b3a30246d815bf2e3167e0b3a5abc81d1e875ab34fbe32b68d177fcacde4a8
7
- data.tar.gz: aae1d51168aa0440891cce0e247a6b7ec130a12e5d16c5ef195b46b16e74b65eb4fa866f09baeeb2f28fd2cb8be4f19b5c97e0cb3eec1facd78de2bc6e7753f0
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.3)
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.0)
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.4)
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.2 - 2018-10-10
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
 
@@ -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 = {:print_last => true})
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?
@@ -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
- sleep(2)
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
- sleep(1)
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
- sleep(1)
191
+ getc(1000)
189
192
  ret
190
193
  end
191
194
  end
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="2.0.3"
2
+ VERSION="2.0.4"
3
3
  end
4
4
 
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.3
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-10 00:00:00.000000000 Z
11
+ date: 2018-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake