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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e2715e53f0e96ea767575b1d1bf94038c320aa0
4
- data.tar.gz: 20645e44a3b9aa80b6d789c04ab9e62630f82365
3
+ metadata.gz: f7ae8c4643321026428536cfc08fed20ce944673
4
+ data.tar.gz: f0acebc235b93408dcb1623e2f848f73a0eb5b2d
5
5
  SHA512:
6
- metadata.gz: 5bb4e2d38657bc03e7136e5678b5c3eff077e17bc7069d0c3ab288de0382918468f9727633d4a10f6aa9a2dc3948394b641cc3468dc918bb727a490c583a7998
7
- data.tar.gz: c93a27ed8d47b0e270113335017fe997449f4a0dabd71e36d88759c99f0ebf8678adf90d18b530bafce325f1f7d4a967daa903036b61cc08b043dad3d5d95dd0
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 > 0 and (first_byte & 0x1F) != 0x1F
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", :format => :string, :description => "Code that defines the disposition of a message"),
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"),
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grizzly_ber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Balsdon