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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/grizzly_ber.rb +1 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 197fe67463fcd1af134d84732341c8435b612cd4
4
- data.tar.gz: fceb778efeb1487b9c8f78354ac9929f7eddc778
3
+ metadata.gz: 4e2715e53f0e96ea767575b1d1bf94038c320aa0
4
+ data.tar.gz: 20645e44a3b9aa80b6d789c04ab9e62630f82365
5
5
  SHA512:
6
- metadata.gz: b757d1f3b8ca70deb671d9ff044b50efd758aca1b75e1acebf8b1cc6a4cdaf878a0cd7f4dbde5afd201f31ad00076a5df0e28d694a193307f836eeffed75800c
7
- data.tar.gz: 6baacf28e6b0c6e38eecd285073d5e12d20561a5a82311131e943c8bb7159b36d67d9daf8ab77c74dcf30a0722bb8f6e2f9ba736d357db7ed7ccaf6b66c21a8c
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
- return nil if element.tag.nil?
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.5
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-06-15 00:00:00.000000000 Z
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