da_funk 3.9.0 → 3.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/RELEASE_NOTES.md +7 -0
- data/lib/da_funk/payment_channel.rb +17 -2
- data/lib/da_funk/version.rb +1 -1
- data/lib/device/system.rb +5 -0
- data/utils/command_line_platform.rb +4 -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: 59e7847769b09af85140f7f55b98de9d85b7635f
|
4
|
+
data.tar.gz: d2ecbbee3123cbb88e9e87a5e8387e93b4a0908b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 523597cffdb33f4ecf7a1102ad8a6a9254eb10bc013335dadc9f45543cc38bdb3f4a25a1b236f75ce242e9335dd322ab55311bece1798f509493a0b5648eb7fd
|
7
|
+
data.tar.gz: dc805e11363b1a3c2718bc047d4c22fc1e34d0438340fe69d273e69b0214a8215427bb0398c2dd6731755f8bd82652c57d47c4b9566faaa4453d9caa7b2c91a0
|
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.10.0)
|
5
5
|
archive-zip (~> 0.5)
|
6
6
|
bundler
|
7
7
|
cloudwalk_handshake
|
@@ -18,22 +18,22 @@ GEM
|
|
18
18
|
cloudwalk (1.14.3)
|
19
19
|
bundler
|
20
20
|
rake
|
21
|
-
cloudwalk_handshake (1.
|
21
|
+
cloudwalk_handshake (1.5.0)
|
22
22
|
funky-simplehttp (~> 0.6)
|
23
|
-
funky-emv (1.1
|
23
|
+
funky-emv (1.2.1)
|
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
|
-
jaro_winkler (1.5.
|
28
|
+
jaro_winkler (1.5.3)
|
29
29
|
parallel (1.17.0)
|
30
30
|
parser (2.6.3.0)
|
31
31
|
ast (~> 2.4.0)
|
32
|
-
posxml_parser (2.
|
32
|
+
posxml_parser (2.22.0)
|
33
33
|
funky-emv (~> 1)
|
34
34
|
rainbow (3.0.0)
|
35
35
|
rake (12.3.2)
|
36
|
-
rubocop (0.
|
36
|
+
rubocop (0.72.0)
|
37
37
|
jaro_winkler (~> 1.5.1)
|
38
38
|
parallel (~> 1.10)
|
39
39
|
parser (>= 2.6)
|
@@ -42,7 +42,7 @@ GEM
|
|
42
42
|
unicode-display_width (>= 1.4.0, < 1.7)
|
43
43
|
ruby-progressbar (1.10.1)
|
44
44
|
unicode-display_width (1.6.0)
|
45
|
-
yard (0.9.
|
45
|
+
yard (0.9.20)
|
46
46
|
|
47
47
|
PLATFORMS
|
48
48
|
ruby
|
data/RELEASE_NOTES.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# DaFunk
|
2
2
|
|
3
|
+
### 3.10.0 - 2019-07-08
|
4
|
+
|
5
|
+
- Do not raise load error when cloudwalk_handshake doesn’t exists;
|
6
|
+
- Support to app set on PaymentChannel;
|
7
|
+
- Set PaymentChannel application on Device::System::klass=;
|
8
|
+
- Support CwHttpEvent on PaymentChannel.
|
9
|
+
|
3
10
|
### 3.9.0 - 2019-06-18
|
4
11
|
|
5
12
|
- Support to uncompress main application and reboot after it.
|
@@ -3,7 +3,7 @@ module DaFunk
|
|
3
3
|
DEFAULT_HEARBEAT = "180"
|
4
4
|
|
5
5
|
class << self
|
6
|
-
attr_accessor :client
|
6
|
+
attr_accessor :client, :app
|
7
7
|
end
|
8
8
|
|
9
9
|
attr_accessor :handshake_response, :handshake_request, :client, :host, :port
|
@@ -18,6 +18,17 @@ module DaFunk
|
|
18
18
|
Device::Setting.logical_number
|
19
19
|
end
|
20
20
|
|
21
|
+
def self.app=(application)
|
22
|
+
@app = application
|
23
|
+
# if Context::CommunicationChannel send application name thought threads
|
24
|
+
if @client == Context::CommunicationChannel
|
25
|
+
@client.app = application
|
26
|
+
else
|
27
|
+
Device::System.klass = application
|
28
|
+
end
|
29
|
+
@app
|
30
|
+
end
|
31
|
+
|
21
32
|
def self.handshake_message
|
22
33
|
{
|
23
34
|
"token" => DaFunk::ParamsDat.file["access_token"],
|
@@ -151,7 +162,11 @@ module DaFunk
|
|
151
162
|
end
|
152
163
|
|
153
164
|
def write(value)
|
154
|
-
|
165
|
+
if Object.const_defined?(:CwHttpEvent) && value.is_a?(CwHttpEvent)
|
166
|
+
@client.write(value.message)
|
167
|
+
else
|
168
|
+
@client.write(value)
|
169
|
+
end
|
155
170
|
end
|
156
171
|
|
157
172
|
def read
|
data/lib/da_funk/version.rb
CHANGED
data/lib/device/system.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: 3.
|
4
|
+
version: 3.10.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-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|