RubyGems
npm
Organizations
Log in
Sign up
RubyGems
hash-ber-tlv
Versions diffs
1.0.2 → 1.0.3
hash-ber-tlv 1.0.2 → 1.0.3
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/lib/hash-ber-tlv.rb
+1
-1
metadata
+2
-2
data/lib/hash-ber-tlv.rb
CHANGED
Viewed
@@ -29,7 +29,7 @@ class Hash
29
29
remainder = data[tag.length + 1 + num_octets + length..-1]
30
30
end
31
31
32
-
if remainder.length > 2
32
+
if remainder
and remainder
.length > 2
33
33
self.from_ber_tlv(remainder)
34
34
end
35
35
metadata
CHANGED
Viewed
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
segments:
6
6
- 1
7
7
- 0
8
-
-
2
9
-
version: 1.0.
2
8
+
-
3
9
+
version: 1.0.
3
10
10
platform: ruby
11
11
authors:
12
12
- Maxim Chechel