Permalink
Browse files

Fix whois.cira.ca parser incompatibility with Ruby 1.8

  • Loading branch information...
1 parent 675b405 commit 92c3a41d57bb44bef0fef0668fe1f5625cbc3993 @weppos committed Mar 28, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −1 lib/whois/record/scanners/whois.cira.ca.rb
  2. +2 −2 whois.gemspec
@@ -48,9 +48,10 @@ class WhoisCiraCa < Base
key, value = start.strip, @input[2].strip
# This is a nested key
- target = if start[0] == " "
+ target = if start.index(" ") == 0
error!("Expected group.") if @tmp["group"].nil?
@ast[@tmp["group"]] ||= {}
+ @ast[@tmp["group"]]
else
@tmp.delete("group")
@ast
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 92c3a41

Please sign in to comment.