grizzly_ber 1.0.6 → 1.0.7
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/lib/grizzly_ber.rb +2 -1
- data/lib/grizzly_tag.rb +1 -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: f7ae8c4643321026428536cfc08fed20ce944673
|
4
|
+
data.tar.gz: f0acebc235b93408dcb1623e2f848f73a0eb5b2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcd71e845da7713695b9f22d23a76c7779ca85ffed32ae6b150ffe02b875b406c909b8ca8af52f58d6b406fb5a4068a9b4806da92f0a2df0b4f41868eb62b5b5
|
7
|
+
data.tar.gz: 1af7fa7e474446f1ab06732a6a1d7abef9d4776425b379b5ce2e328a969d43ccfd15fdd7c81be1c99cba1879970223951a44658eb350706e442572516df64772
|
data/lib/grizzly_ber.rb
CHANGED
@@ -45,7 +45,8 @@ class GrizzlyBerElement
|
|
45
45
|
return false if tag_byte_array.size < 1
|
46
46
|
|
47
47
|
first_byte = tag_byte_array.shift
|
48
|
-
return false if tag_byte_array.size
|
48
|
+
return false if tag_byte_array.size == 0 and (first_byte & 0x1F) == 0x1F
|
49
|
+
return false if tag_byte_array.size > 0 and (first_byte & 0x1F) != 0x1F
|
49
50
|
|
50
51
|
last_byte = tag_byte_array.pop || 0x00
|
51
52
|
return false if (last_byte & 0x80) != 0x00
|
data/lib/grizzly_tag.rb
CHANGED
@@ -54,7 +54,7 @@ module GrizzlyTag
|
|
54
54
|
new_tag(:tag => "9F08", :name => "Application Version Number", :description => "Version number assigned by the payment system for the application"),
|
55
55
|
new_tag(:tag => "9F09", :name => "Application Version Number", :description => "Version number assigned by the payment system for the application"),
|
56
56
|
new_tag(:tag => "89", :name => "Authorisation Code", :description => "Value generated by the authorisation authority for an approved transaction"),
|
57
|
-
new_tag(:tag => "8A", :name => "Authorisation Response Code", :
|
57
|
+
new_tag(:tag => "8A", :name => "Authorisation Response Code", :description => "Code that defines the disposition of a message"),
|
58
58
|
new_tag(:tag => "5F54", :name => "Bank Identifier Code (BIC)", :description => "Uniquely identifies a bank as defined in ISO 9362."),
|
59
59
|
new_tag(:tag => "8C", :name => "Risk Management Data Object List 1 (CDOL1)", :description => "List of data objects (tag and length) to be passed to the ICC in the first GENERATE AC command"),
|
60
60
|
new_tag(:tag => "8D", :name => "Card Risk Management Data Object List 2 (CDOL2)", :description => "List of data objects (tag and length) to be passed to the ICC in the second GENERATE AC command"),
|