da_funk 3.24.0 → 3.25.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 +1 -1
- data/RELEASE_NOTES.md +21 -0
- data/lib/da_funk/application.rb +6 -2
- 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: e159119ab8221c6fbd3c3cd0f1a195705a167240d521bf126b549a314877558c
|
4
|
+
data.tar.gz: 387879c25676511a10558f4cc9223ad6db4c5751eb4b512081e00fa35304a0e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d075f0b378705e54eff22b81d87e7680c137f7b913fc6edf9fa614639481f2aef155eba215416f794a5cf32c4d742c876134ba25122eef5e76a44a713e882b6
|
7
|
+
data.tar.gz: 110ab6b9851efa8cbe25be85ef9e7a127eada1b24d2a5c4a56ef7bc21ae0fa7aa9bc18984e81340ead4f7febe60c2a0c9d98cc9f1695f3e43bf9def48c65f6f7
|
data/Gemfile.lock
CHANGED
data/RELEASE_NOTES.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# DaFunk
|
2
2
|
|
3
|
+
### 3.25.0 - 2020-08-18
|
4
|
+
|
5
|
+
- Added switch_http_enabled setting;
|
6
|
+
- Removed infinitepay_authorizer and infinitepay_api settings.
|
7
|
+
|
8
|
+
### 3.24.4 - 2020-08-07
|
9
|
+
|
10
|
+
- Add defensive code to gsub calls.
|
11
|
+
|
12
|
+
### 3.24.3 - 2020-08-03
|
13
|
+
|
14
|
+
- Fixed path name on DaFunk::Application
|
15
|
+
|
16
|
+
### 3.24.2 - 2020-08-01
|
17
|
+
|
18
|
+
- Do not remove company name to file path when ruby app
|
19
|
+
|
20
|
+
### 3.24.1 - 2020-07-27
|
21
|
+
|
22
|
+
- Infinitepay authorizer setting 1 as default.
|
23
|
+
|
3
24
|
### 3.24.0 - 2020-07-25
|
4
25
|
|
5
26
|
- Added Device::Signature class;
|
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
|
|
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" => "0",
|
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.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: 2020-
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|