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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d75e33d05a3e451e71ffa6379c421c7477c1555bcaf65d93b7d2a3246ecfb7d7
4
- data.tar.gz: 168ad5136f22cf3384a0c6c0374665f93d22862bd6da575950ffff324c69e849
3
+ metadata.gz: e159119ab8221c6fbd3c3cd0f1a195705a167240d521bf126b549a314877558c
4
+ data.tar.gz: 387879c25676511a10558f4cc9223ad6db4c5751eb4b512081e00fa35304a0e6
5
5
  SHA512:
6
- metadata.gz: d7ec864dbd743edc3855d1e8b8d8e24a0b770c0d9fd21f09396daec03d191d4dacbe3f89cbf5e27af32c8b66451e5020b7f891200225451a5e98bb511f341047
7
- data.tar.gz: 36b99ec0a5e6af0bf022ab8d7e267d7c903e4902fa428678ef66da3db149c58f920e8b35f93a2ad32221ce26d65ab31707a0047ad5d355a5f54e1e704619249a
6
+ metadata.gz: 8d075f0b378705e54eff22b81d87e7680c137f7b913fc6edf9fa614639481f2aef155eba215416f794a5cf32c4d742c876134ba25122eef5e76a44a713e882b6
7
+ data.tar.gz: 110ab6b9851efa8cbe25be85ef9e7a127eada1b24d2a5c4a56ef7bc21ae0fa7aa9bc18984e81340ead4f7febe60c2a0c9d98cc9f1695f3e43bf9def48c65f6f7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.24.0)
4
+ da_funk (3.25.0)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -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;
@@ -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
- "#{path.gsub("#{Device::Setting.company_name}_", "")}.zip"
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
 
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.24.0"
2
+ VERSION="3.25.0"
3
3
  end
4
4
 
@@ -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
@@ -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,
@@ -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.24.0
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-07-25 00:00:00.000000000 Z
11
+ date: 2020-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake