da_funk 3.24.3 → 3.24.4

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: 91f0c14d46a6f608799ab707b6a4ae79b403f3e8bb510eae756e39e599cf518e
4
- data.tar.gz: '058eab0c210e854e5da8ca0ef52335054d0298c907734e44057e99b802f65abb'
3
+ metadata.gz: 6d190ea42757a9e1a847740dc4321adcc7bf2bf356f90185fdd8c8b7de3c2398
4
+ data.tar.gz: b116514238c4c9b2d0458b08231619cbeaa8533ba264491716d5685fd64bbf13
5
5
  SHA512:
6
- metadata.gz: 00d71a62fa02c271681106685ed444ffd3ab5501ee3e31cb28eba17a50144d387c71a37cdf978b90886385a01eb3727f514773fa4458f3877b38fe0986325264
7
- data.tar.gz: 2ac216bfb1fbf10e02c8024b523369b7a570876d1052fa17e2d5c3a6b19b7ad7f8e5a74ddabf7c1db63c0068c1a1e1b9a4a5f972349eccac12cecd15cdcb672e
6
+ metadata.gz: 0bedf7264f973b4f96e7de1f8e70a599e47e026cc5c00a1b2418674ab6ed32a32a178b41fa6d4d8ecb5ed5a23ec46bfd894a5b087e71d26997b8326c10d26f56
7
+ data.tar.gz: c3d53db9952a1e942ba42308491726700809ad5435c1d66d7b8c9dd67099b737063b540e9f0a64f8aede8aed718c1aefcca456ba3658c12f575b4c18d8956305
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- da_funk (3.24.3)
4
+ da_funk (3.24.4)
5
5
  archive-zip (~> 0.5)
6
6
  bundler
7
7
  cloudwalk_handshake
@@ -1,5 +1,9 @@
1
1
  # DaFunk
2
2
 
3
+ ### 3.24.4 - 2020-08-07
4
+
5
+ - Add defensive code to gsub calls.
6
+
3
7
  ### 3.24.3 - 2020-08-03
4
8
 
5
9
  - Fixed path name on DaFunk::Application
@@ -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
@@ -143,7 +143,7 @@ module DaFunk
143
143
  if ruby?
144
144
  "#{path}.zip"
145
145
  else
146
- "#{path.gsub("#{Device::Setting.company_name}_", "")}.zip"
146
+ "#{path.to_s.gsub("#{Device::Setting.company_name}_", "")}.zip"
147
147
  end
148
148
  end
149
149
  end
@@ -1,4 +1,4 @@
1
1
  module DaFunk
2
- VERSION="3.24.3"
2
+ VERSION="3.24.4"
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
@@ -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.3
4
+ version: 3.24.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: 2020-08-03 00:00:00.000000000 Z
11
+ date: 2020-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake