Permalink
Browse files

Release 1.0.2

Dho! I forgot to save some files on TextMate
  • Loading branch information...
weppos committed Feb 10, 2010
1 parent b7d4ab0 commit f85ab7aa61de072db4b04a08dfe7dab17fae5036
Showing with 122 additions and 117 deletions.
  1. +5 −0 CHANGELOG.rdoc
  2. +1 −1 lib/whois/answer/parser/jobswhois.verisign-grs.com.rb
  3. +1 −1 lib/whois/answer/parser/whois.adamsnames.tc.rb
  4. +5 −5 lib/whois/answer/parser/whois.biz.rb
  5. +4 −4 lib/whois/answer/parser/whois.cira.ca.rb
  6. +2 −2 lib/whois/answer/parser/whois.denic.de.rb
  7. +5 −5 lib/whois/answer/parser/whois.dk-hostmaster.dk.rb
  8. +3 −3 lib/whois/answer/parser/whois.domain-registry.nl.rb
  9. +3 −3 lib/whois/answer/parser/whois.domainregistry.ie.rb
  10. +4 −4 lib/whois/answer/parser/whois.educause.edu.rb
  11. +1 −1 lib/whois/answer/parser/whois.eu.org.rb
  12. +1 −1 lib/whois/answer/parser/whois.eu.rb
  13. +3 −3 lib/whois/answer/parser/whois.iana.org.rb
  14. +3 −3 lib/whois/answer/parser/whois.isnic.is.rb
  15. +3 −3 lib/whois/answer/parser/whois.nic.ac.rb
  16. +1 −1 lib/whois/answer/parser/whois.nic.ch.rb
  17. +5 −5 lib/whois/answer/parser/whois.nic.coop.rb
  18. +4 −4 lib/whois/answer/parser/whois.nic.fr.rb
  19. +4 −4 lib/whois/answer/parser/whois.nic.gl.rb
  20. +2 −2 lib/whois/answer/parser/whois.nic.hu.rb
  21. +2 −2 lib/whois/answer/parser/whois.nic.im.rb
  22. +1 −1 lib/whois/answer/parser/whois.nic.io.rb
  23. +2 −2 lib/whois/answer/parser/whois.nic.it.rb
  24. +4 −4 lib/whois/answer/parser/whois.nic.mu.rb
  25. +1 −1 lib/whois/answer/parser/whois.nic.name.rb
  26. +5 −5 lib/whois/answer/parser/whois.nic.nu.rb
  27. +4 −4 lib/whois/answer/parser/whois.nic.tel.rb
  28. +4 −4 lib/whois/answer/parser/whois.nic.tl.rb
  29. +5 −5 lib/whois/answer/parser/whois.nic.travel.rb
  30. +1 −1 lib/whois/answer/parser/whois.nic.tv.rb
  31. +6 −6 lib/whois/answer/parser/whois.nic.uk.rb
  32. +5 −5 lib/whois/answer/parser/whois.nic.us.rb
  33. +3 −3 lib/whois/answer/parser/whois.norid.no.rb
  34. +4 −4 lib/whois/answer/parser/whois.register.bg.rb
  35. +1 −1 lib/whois/answer/parser/whois.registro.br.rb
  36. +1 −1 lib/whois/answer/parser/whois.ripe.net.rb
  37. +4 −4 lib/whois/answer/parser/whois.ripn.net.rb
  38. +1 −1 lib/whois/answer/parser/whois.rotld.ro.rb
  39. +4 −4 lib/whois/answer/parser/whois.samoanic.ws.rb
  40. +3 −3 lib/whois/answer/parser/whois.za.org.rb
  41. +1 −1 lib/whois/version.rb
View
@@ -1,6 +1,11 @@
= Changelog
+== Release 1.0.2
+
+* CHANGED: Changed Parsers to use a normalized content version called Whois::Parser::Base#content_for_scanner (Dho! I forgot to save some files on TextMate)
+
+
== Release 1.0.1
* CHANGED: Changed Parsers to use a normalized content version called Whois::Parser::Base#content_for_scanner
@@ -89,7 +89,7 @@ class JobswhoisVerisignGrsCom < Base
protected
def parse
- Scanners::VerisignScanner.new(content.to_s).parse
+ Scanners::VerisignScanner.new(content_for_scanner).parse
end
end
@@ -43,7 +43,7 @@ class WhoisAdamsnamesTc < Base
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /is not registered/)
+ @available ||= !!(content_for_scanner =~ /is not registered/)
end
property_supported :registered? do
@@ -35,11 +35,11 @@ class Parser
class WhoisBiz < Base
property_supported :status do
- @status ||= content.to_s.scan(/Domain Status:\s+(.*?)\n/).flatten
+ @status ||= content_for_scanner.scan(/Domain Status:\s+(.*?)\n/).flatten
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /Not found:/)
+ @available ||= !!(content_for_scanner =~ /Not found:/)
end
property_supported :registered? do
@@ -48,19 +48,19 @@ class WhoisBiz < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /Domain Registration Date:\s+(.*)\n/
+ @created_on ||= if content_for_scanner =~ /Domain Registration Date:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :updated_on do
- @updated_on ||= if content.to_s =~ /Domain Last Updated Date:\s+(.*)\n/
+ @updated_on ||= if content_for_scanner =~ /Domain Last Updated Date:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :expires_on do
- @expires_on ||= if content.to_s =~ /Domain Expiration Date:\s+(.*)\n/
+ @expires_on ||= if content_for_scanner =~ /Domain Expiration Date:\s+(.*)\n/
Time.parse($1)
end
end
@@ -35,7 +35,7 @@ class Parser
class WhoisCiraCa < Base
property_supported :status do
- @status ||= if content.to_s =~ /Domain status:\s+(.*?)\n/
+ @status ||= if content_for_scanner =~ /Domain status:\s+(.*?)\n/
case $1.downcase.to_sym
when :exist then :registered
when :avail then :available
@@ -53,19 +53,19 @@ class WhoisCiraCa < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /Approval date:\s+(.*?)\n/
+ @created_on ||= if content_for_scanner =~ /Approval date:\s+(.*?)\n/
Time.parse($1)
end
end
property_supported :updated_on do
- @updated_on ||= if content.to_s =~ /Updated date:\s+(.*?)\n/
+ @updated_on ||= if content_for_scanner =~ /Updated date:\s+(.*?)\n/
Time.parse($1)
end
end
property_supported :expires_on do
- @expires_on ||= if content.to_s =~ /Renewal date:\s+(.*?)\n/
+ @expires_on ||= if content_for_scanner =~ /Renewal date:\s+(.*?)\n/
Time.parse($1)
end
end
@@ -91,14 +91,14 @@ class WhoisDenicDe < Base
protected
def parse
- Scanner.new(content.to_s).parse
+ Scanner.new(content_for_scanner).parse
end
class Scanner
def initialize(content)
- @input = StringScanner.new(content.to_s)
+ @input = StringScanner.new(content)
end
def parse
@@ -35,13 +35,13 @@ class Parser
class WhoisDkHostmasterDk < Base
property_supported :status do
- @status ||= if content.to_s =~ /Status:\s+(.*)\n/
+ @status ||= if content_for_scanner =~ /Status:\s+(.*)\n/
$1.downcase.to_sym
end
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /No entries found for the selected source/)
+ @available ||= !!(content_for_scanner =~ /No entries found for the selected source/)
end
property_supported :registered? do
@@ -50,22 +50,22 @@ class WhoisDkHostmasterDk < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /Registered:\s+(.*)\n/
+ @created_on ||= if content_for_scanner =~ /Registered:\s+(.*)\n/
Time.parse($1)
end
end
property_not_supported :updated_on
property_supported :expires_on do
- @expires_on ||= if content.to_s =~ /Expires:\s+(.*)\n/
+ @expires_on ||= if content_for_scanner =~ /Expires:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :nameservers do
- @nameservers ||= content.to_s.scan(/Hostname:\s+(.*)\n/).flatten
+ @nameservers ||= content_for_scanner.scan(/Hostname:\s+(.*)\n/).flatten
end
end
@@ -43,7 +43,7 @@ class WhoisDomainRegistryNl < Base
end
property_supported :available? do
- @available ||= !(content.to_s =~ /Status: active/)
+ @available ||= !(content_for_scanner =~ /Status: active/)
end
property_supported :registered? do
@@ -52,13 +52,13 @@ class WhoisDomainRegistryNl < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /Date registered:\s+(.*)\n/
+ @created_on ||= if content_for_scanner =~ /Date registered:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :updated_on do
- @updated_on ||= if content.to_s =~ /Record last updated:\s+(.*)\n/
+ @updated_on ||= if content_for_scanner =~ /Record last updated:\s+(.*)\n/
Time.parse($1)
end
end
@@ -35,15 +35,15 @@ class Parser
class WhoisDomainregistryIe < Base
property_supported :status do
- @status ||= if content.to_s =~ /status:\s+(.*)\n/
+ @status ||= if content_for_scanner =~ /status:\s+(.*)\n/
$1.downcase.to_sym
else
:available
end
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /Not Registered - The domain you have requested is not a registered .ie domain name/)
+ @available ||= !!(content_for_scanner =~ /Not Registered - The domain you have requested is not a registered .ie domain name/)
end
property_supported :registered? do
@@ -56,7 +56,7 @@ class WhoisDomainregistryIe < Base
property_not_supported :updated_on
property_supported :expires_on do
- @expires_on ||= if content.to_s =~ /renewal:\s+(.*)\n/
+ @expires_on ||= if content_for_scanner =~ /renewal:\s+(.*)\n/
Time.parse($1)
end
end
@@ -43,7 +43,7 @@ class WhoisEducauseEdu < Base
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /No Match/)
+ @available ||= !!(content_for_scanner =~ /No Match/)
end
property_supported :registered? do
@@ -52,19 +52,19 @@ class WhoisEducauseEdu < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /Domain record activated:\s+(.*)\n/
+ @created_on ||= if content_for_scanner =~ /Domain record activated:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :updated_on do
- @updated_on ||= if content.to_s =~ /Domain record last updated:\s+(.*)\n/
+ @updated_on ||= if content_for_scanner =~ /Domain record last updated:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :expires_on do
- @expires_on ||= if content.to_s =~ /Domain expires:\s+(.*)\n/
+ @expires_on ||= if content_for_scanner =~ /Domain expires:\s+(.*)\n/
Time.parse($1)
end
end
@@ -43,7 +43,7 @@ class WhoisEuOrg < Base
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /Key not found/)
+ @available ||= !!(content_for_scanner =~ /Key not found/)
end
property_supported :registered? do
@@ -43,7 +43,7 @@ class WhoisEu < Base
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /Status:\s+AVAILABLE/)
+ @available ||= !!(content_for_scanner =~ /Status:\s+AVAILABLE/)
end
property_supported :registered? do
@@ -43,7 +43,7 @@ class WhoisIanaOrg < Base
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /Domain (.*?) not found/)
+ @available ||= !!(content_for_scanner =~ /Domain (.*?) not found/)
end
property_supported :registered? do
@@ -52,13 +52,13 @@ class WhoisIanaOrg < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /\nRegistration Date:\s+(.*)\n/
+ @created_on ||= if content_for_scanner =~ /\nRegistration Date:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :updated_on do
- @updated_on ||= if content.to_s =~ /\nLast Updated Date:\s+(.*)\n/
+ @updated_on ||= if content_for_scanner =~ /\nLast Updated Date:\s+(.*)\n/
Time.parse($1)
end
end
@@ -43,7 +43,7 @@ class WhoisIsnicIs < Base
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /No entries found for query/)
+ @available ||= !!(content_for_scanner =~ /No entries found for query/)
end
property_supported :registered? do
@@ -52,15 +52,15 @@ class WhoisIsnicIs < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /created:\s+(.*)\n/
+ @created_on ||= if content_for_scanner =~ /created:\s+(.*)\n/
Time.parse($1)
end
end
property_not_supported :updated_on
property_supported :expires_on do
- @expires_on ||= if content.to_s =~ /expires:\s+(.*)\n/
+ @expires_on ||= if content_for_scanner =~ /expires:\s+(.*)\n/
Time.parse($1)
end
end
@@ -32,7 +32,7 @@ class WhoisNicAc < Base
property_supported :domain do
@domain ||= Proc.new do
- content.to_s =~ /Domain "(.*?)"/
+ content_for_scanner =~ /Domain "(.*?)"/
$1.downcase
end.call
end
@@ -49,7 +49,7 @@ class WhoisNicAc < Base
end
property_supported :available? do
- @available ||= !(content.to_s =~ /Not available/)
+ @available ||= !(content_for_scanner =~ /Not available/)
end
property_supported :registered? do
@@ -82,7 +82,7 @@ class WhoisNicAc < Base
property_supported :unchanged? do |other|
self == other ||
- self.content.to_s == other.content.to_s
+ self.content_for_scanner == other.content_for_scanner
end
end
@@ -43,7 +43,7 @@ class WhoisNicCh < Base
end
property_supported :available? do
- @available ||= (content.to_s =~ /We do not have an entry/)
+ @available ||= (content_for_scanner =~ /We do not have an entry/)
end
property_supported :registered? do
@@ -35,13 +35,13 @@ class Parser
class WhoisNicCoop < Base
property_supported :status do
- @status ||= if content.to_s =~ /Status:\s+(.*)\r\n/
+ @status ||= if content_for_scanner =~ /Status:\s+(.*)\n/
$1.downcase.to_sym
end
end
property_supported :available? do
- @available ||= !!(content.to_s =~ /No domain records were found to match/)
+ @available ||= !!(content_for_scanner =~ /No domain records were found to match/)
end
property_supported :registered? do
@@ -50,19 +50,19 @@ class WhoisNicCoop < Base
property_supported :created_on do
- @created_on ||= if content.to_s =~ /Created:\s+(.*)\r\n/
+ @created_on ||= if content_for_scanner =~ /Created:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :updated_on do
- @updated_on ||= if content.to_s =~ /Last updated:\s+(.*)\r\n/
+ @updated_on ||= if content_for_scanner =~ /Last updated:\s+(.*)\n/
Time.parse($1)
end
end
property_supported :expires_on do
- @expires_on ||= if content.to_s =~ /Expiry Date:\s+(.*)\r\n/
+ @expires_on ||= if content_for_scanner =~ /Expiry Date:\s+(.*)\n/
Time.parse($1)
end
end
Oops, something went wrong.

0 comments on commit f85ab7a

Please sign in to comment.