grizzly_ber 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/grizzly_ber.rb +1 -2
- 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: 4e2715e53f0e96ea767575b1d1bf94038c320aa0
|
4
|
+
data.tar.gz: 20645e44a3b9aa80b6d789c04ab9e62630f82365
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bb4e2d38657bc03e7136e5678b5c3eff077e17bc7069d0c3ab288de0382918468f9727633d4a10f6aa9a2dc3948394b641cc3468dc918bb727a490c583a7998
|
7
|
+
data.tar.gz: c93a27ed8d47b0e270113335017fe997449f4a0dabd71e36d88759c99f0ebf8678adf90d18b530bafce325f1f7d4a967daa903036b61cc08b043dad3d5d95dd0
|
data/lib/grizzly_ber.rb
CHANGED
@@ -118,8 +118,7 @@ class GrizzlyBer
|
|
118
118
|
raise ArgumentError, "byte_array must be an array of bytes" unless byte_array.is_a? Array and byte_array.all? {|byte| byte.is_a? Integer and byte <= 0xFF}
|
119
119
|
while byte_array.size > 0
|
120
120
|
element = GrizzlyBerElement.new(byte_array)
|
121
|
-
|
122
|
-
return nil if element.value.nil?
|
121
|
+
break if element.tag.nil? or element.value.nil?
|
123
122
|
@elements << element
|
124
123
|
end
|
125
124
|
self
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grizzly_ber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Balsdon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: CODEC for EMV TLV-BER encoded strings.
|
14
14
|
email: ryan.balsdon@shopify.com
|