da_funk 3.10.5 → 3.10.6
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 +4 -4
- data/Gemfile.lock +1 -1
- data/RELEASE_NOTES.md +4 -0
- data/lib/da_funk/version.rb +1 -1
- data/lib/iso8583/bitmap.rb +9 -2
- data/lib/iso8583/message.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85e0f8a4a1c98aa9122c819a59f720f05132e871
|
4
|
+
data.tar.gz: f3ddcfbe75273da967e1a9e984a4a4805d4ce5f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4be177fed99b81a3ffdb0de1a9c6695aadb458f8c7a3d1fc12df42a7b1a33df91bcd1e0f99162315290bd93b62b571c4b2f56fbb0d46700c39ec90c7093910c
|
7
|
+
data.tar.gz: 07e615cbe14726e4d041f5e3d63b015723301428b0e92ed1686d6bb9a0e0f45ede41650edc43e363768e098b3db82f2b999d1883e329216f0a3f3d9297e22fbc
|
data/Gemfile.lock
CHANGED
data/RELEASE_NOTES.md
CHANGED
data/lib/da_funk/version.rb
CHANGED
data/lib/iso8583/bitmap.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
1
3
|
# Copyright 2009 by Tim Becker (tim.becker@kuriostaet.de)
|
2
4
|
# MIT License, for details, see the LICENSE file accompaning
|
3
5
|
# this distribution
|
@@ -76,13 +78,18 @@ module ISO8583
|
|
76
78
|
end
|
77
79
|
bitmap_hex.reverse.upcase
|
78
80
|
else
|
79
|
-
[to_s].pack("B*")
|
81
|
+
[to_s].pack("B*").force_encoding('UTF-8')
|
80
82
|
end
|
81
83
|
end
|
82
84
|
alias_method :to_b, :to_bytes
|
83
85
|
|
84
86
|
def to_hex
|
85
|
-
self.to_s.to_i(2).to_s(16).upcase
|
87
|
+
value = self.to_s.to_i(2).to_s(16).upcase
|
88
|
+
if value.respond_to? :force_encoding
|
89
|
+
value.force_encoding('UTF-8')
|
90
|
+
else
|
91
|
+
value
|
92
|
+
end
|
86
93
|
end
|
87
94
|
|
88
95
|
# Generate a String representation of this bitmap in the form:
|
data/lib/iso8583/message.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
#
|
1
3
|
# Copyright 2009 by Tim Becker (tim.becker@kuriostaet.de)
|
2
4
|
# MIT License, for details, see the LICENSE file accompaning
|
3
5
|
# this distribution
|
@@ -180,7 +182,7 @@ module ISO8583
|
|
180
182
|
def to_b
|
181
183
|
raise ISO8583Exception.new "no MTI set!" unless mti
|
182
184
|
mti_enc = self.class._mti_format.encode(mti).force_encoding('UTF-8')
|
183
|
-
mti_enc << _body.join
|
185
|
+
mti_enc << _body.join.force_encoding('UTF-8')
|
184
186
|
end
|
185
187
|
|
186
188
|
# Returns a nicely formatted representation of this
|