iso8583 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHORS +1 -0
- data/CHANGELOG +5 -0
- data/lib/iso8583/field.rb +2 -2
- data/lib/iso8583/version.rb +1 -1
- 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: 0881d56e13a87bfba361adb50daa0a22b61f2e02
|
4
|
+
data.tar.gz: 8334f84528ecbad4c5481068706326f6fa7489ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d259cbf42c0f4abde3af3622aa8792bbe89c6926628cc4adb091c8baf89023e2d1782f386ef1f001288743e60a29ac37db323b692ca58d1fd2bda2a6106da03
|
7
|
+
data.tar.gz: e242b86a519584d7f9a0e6252b0691cb05f6bd2de8606564ad037615b8ba88906da8e23309bfd4b6696fad0fc13f6d41157cbb1698b69b47095387cf69896594
|
data/AUTHORS
CHANGED
data/CHANGELOG
CHANGED
data/lib/iso8583/field.rb
CHANGED
@@ -19,7 +19,7 @@ module ISO8583
|
|
19
19
|
|
20
20
|
def parse(raw)
|
21
21
|
len, raw = case length
|
22
|
-
when
|
22
|
+
when Integer
|
23
23
|
[length, raw]
|
24
24
|
when Field
|
25
25
|
length.parse(raw)
|
@@ -67,7 +67,7 @@ module ISO8583
|
|
67
67
|
end
|
68
68
|
|
69
69
|
len_str = case length
|
70
|
-
when
|
70
|
+
when Integer
|
71
71
|
raise ISO8583Exception.new("Too long: #{value} (#{name})! length=#{length}") if encoded_value.length > length
|
72
72
|
raise ISO8583Exception.new("Too short: #{value} (#{name})! length=#{length}") if encoded_value.length < length
|
73
73
|
"".force_encoding("ASCII-8BIT")
|
data/lib/iso8583/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iso8583
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Becker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: |
|
15
15
|
Ruby implementation of ISO 8583 financial messaging
|