Permalink
Browse files

whois.cctld.by scanner moved to folder whois/record/scanners/

  • Loading branch information...
kliuchnikau committed Mar 20, 2012
1 parent 89111f3 commit cab094850d1cd7b0f0e9724abad9bbf5bd9e4bb1
@@ -1,50 +0,0 @@
-#--
-# Ruby Whois
-#
-# An intelligent pure Ruby WHOIS client and parser.
-#
-# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
-#++
-
-require 'whois/record/parser/scanners/base'
-
-module Whois
- class Record
- class Parser
- module Scanners
-
- #
- # = whois.cctld.by scanner
- #
- # Scanner for the whois.cctld.by server.
- #
- # @author Aliaksei Kliuchnikau <aliaksei.kliuchnikau@gmail.com>
- class WhoisCctldBy < Base
-
- self.tokenizers += [
- :skip_empty_line,
- :scan_available,
- :scan_keyvalue,
- :skip_empty_line,
- :skip_dash_line,
- :skip_provider_signature,
- ]
-
- tokenizer :scan_available do
- if @input.scan(/^Object does not exist/)
- @ast["status:available"] = true
- end
- end
-
- tokenizer :skip_dash_line do
- @input.skip(/^-+\n/)
- end
-
- tokenizer :skip_provider_signature do
- @input.scan(/^(.+)\n/)
- end
- end
- end
- end
- end
-end
@@ -7,7 +7,7 @@
#++
require 'whois/record/parser/base'
-require 'whois/record/parser/scanners/whois.cctld.by'
+require 'whois/record/scanners/whois.cctld.by'
module Whois
class Record
@@ -0,0 +1,48 @@
+#--
+# Ruby Whois
+#
+# An intelligent pure Ruby WHOIS client and parser.
+#
+# Copyright (c) 2009-2012 Simone Carletti <weppos@weppos.net>
+#++
+
+require 'whois/record/scanners/base'
+
+module Whois
+ class Record
+ module Scanners
+
+ #
+ # = whois.cctld.by scanner
+ #
+ # Scanner for the whois.cctld.by server.
+ #
+ # @author Aliaksei Kliuchnikau <aliaksei.kliuchnikau@gmail.com>
+ class WhoisCctldBy < Base
+
+ self.tokenizers += [
+ :skip_empty_line,
+ :scan_available,
+ :scan_keyvalue,
+ :skip_empty_line,
+ :skip_dash_line,
+ :skip_provider_signature,
+ ]
+
+ tokenizer :scan_available do
+ if @input.scan(/^Object does not exist/)
+ @ast["status:available"] = true
+ end
+ end
+
+ tokenizer :skip_dash_line do
+ @input.skip(/^-+\n/)
+ end
+
+ tokenizer :skip_provider_signature do
+ @input.scan(/^(.+)\n/)
+ end
+ end
+ end
+ end
+end

0 comments on commit cab0948

Please sign in to comment.