npn47_iso8583 0.1.6 → 0.1.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c7b34d1e6978ee5662ee8ad63ed238fa87cbf06a
4
- data.tar.gz: 05f05e4dcdfa7e73ef84962e7b55859f18ca4ca4
3
+ metadata.gz: bac7d8b1df01a34976fd69ab0b36a41ee18e3f36
4
+ data.tar.gz: 689f7aff696ccdafa936ddb48396a667b560df26
5
5
  SHA512:
6
- metadata.gz: 156e7a71bad27ce1a77368fed4f986205890882be14d84e68e7435e23e4ac73d5398894723ef7375ad304d8c5033eeb951c84b46b349c6ad55719540ccc44c81
7
- data.tar.gz: ee1b2d8ec2e27dfd6a5fd18c08bb5794c957b1423141ff572f275227ef15eee76a5d62c2188603e5b86d04fcf9aafc05f0a2f38ae3ce42526c3915ac974e8eec
6
+ metadata.gz: db5eec9d42b390cac02c140e5f351ac484eb478430d71f70df4ea4f1e0987477a7b1cd414b8ce11d449d55684b9c84d6bac39ecc2aaebb53cabb3ddebd86df23
7
+ data.tar.gz: a0034930ee749b08d38fc884728ddbce2687dc1bdfc31aaf3ec946e2fa854d95b039c1399b5edc334452ed9aced350ee39131985f38036977ac0704b0810c61e
@@ -16,7 +16,16 @@ module ISO8583
16
16
  # [YYYYMMDDHH] Date, formatted as described in ASCII numerals
17
17
  # [YYYYMMDDHH24MISS] Date, formatted as named in ASCII numerals
18
18
 
19
- # Special form to de/encode variable length indicators, two bytes ASCII numerals
19
+ # Special form to de/encode variable length indicators, three bytes ASCII numerals
20
+ LLL = Field.new
21
+ LLL.name = "LLL"
22
+ LLL.length = 3
23
+ LLL.codec = ASCII_Number
24
+ LLL.padding = lambda {|value|
25
+ sprintf("%03d", value)
26
+ }
27
+
28
+ # Special form to de/encode variable length indicators, two bytes ASCII numerals
20
29
  LL = Field.new
21
30
  LL.name = "LL"
22
31
  LL.length = 2
@@ -40,6 +49,10 @@ module ISO8583
40
49
  LLVAR_ANS.codec = ANS_Codec
41
50
  LLVAR_ANS.padding = PADDING_LEFT_JUSTIFIED_SPACES
42
51
 
52
+ # Three byte variable length alpha-numeric with special characters.
53
+ LLLVAR_ANS = Field.new
54
+ LLLVAR_ANS.length = LLL
55
+
43
56
  # Two byte variable length ASCII letters
44
57
  # Fixed lengh numerals, repesented in ASCII, padding right justified using zeros
45
58
  N = Field.new
@@ -1,4 +1,4 @@
1
1
  # -*- mode: ruby; encoding: utf-8; tab-width: 2; indent-tabs-mode: nil -*-
2
2
  module ISO8583
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.6.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: npn47_iso8583
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Becker