Permalink
Browse files

Fix for nil to String conversion issue

  • Loading branch information...
1 parent 935e20b commit 343e731d67204ef4ba562cf5cfa5b5df748ba137 @tadman committed Mar 12, 2012
Showing with 6 additions and 4 deletions.
  1. +1 −1 VERSION
  2. +3 −1 lib/redns/record/null.rb
  3. +2 −2 redns.gemspec
View
@@ -1 +1 @@
-0.1.16
+0.1.17
View
@@ -28,7 +28,9 @@ def deserialize(buffer)
while (!buffer.empty?)
if (content_length = buffer.unpack('C')[0])
- self.contents << buffer.unpack("a#{content_length}")[0]
+ if (string = buffer.unpack("a#{content_length}")[0])
+ self.contents << string
+ end
end
end
View
@@ -5,11 +5,11 @@
Gem::Specification.new do |s|
s.name = "redns"
- s.version = "0.1.16"
+ s.version = "0.1.17"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["tadman"]
- s.date = "2012-02-13"
+ s.date = "2012-03-12"
s.description = "ReDNS is a pure Ruby DNS library with drivers for reactor-model engines such as EventMachine"
s.email = "github@tadman.ca"
s.executables = ["redig"]

0 comments on commit 343e731

Please sign in to comment.