whodump 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,40 @@
1
+ whodump - A command line interface for checking domain name availability.
2
+ =========================================================================
3
+
4
+ ## DESCRIPTION
5
+
6
+ Whodump is a command line tool that accepts a list of domain names and checks
7
+ for their availability using the Whois protocol. A list of available domains are
8
+ returned.
9
+
10
+ Whodump follows the rules of [Semantic Versioning](http://semver.org/).
11
+
12
+
13
+ ## INSTALL
14
+
15
+ Whodump is easy to install using RubyGems:
16
+
17
+ $ [sudo] gem install whodump
18
+
19
+
20
+ ## GETTING STARTED
21
+
22
+ To use `whodump`, simply pass in a list of domain separated by new line
23
+ characters into the command:
24
+
25
+ $ whodump filter --available my_domain_list.txt
26
+
27
+
28
+ ## DISCUSS
29
+
30
+ If you want to submit an awesome idea or defect, use the following options:
31
+
32
+ * Submit a defect to the Issues list on the GitHub project page.
33
+ * Send an e-mail to [whodump@librelist.com](mailto://whodump@librelist.com)
34
+ to join the mailing list.
35
+
36
+
37
+ ## CONTRIBUTE
38
+
39
+ Send a pull request with some sweet code! However, if you're sending code,
40
+ please add RSpec tests and use a named branch. Thanks!
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ dir = File.dirname(File.expand_path(__FILE__))
4
+ $:.unshift(File.join(dir, '..', 'lib'))
5
+
6
+ require 'rubygems'
7
+ require 'whodump'
8
+ require 'commander/import'
9
+ require 'terminal-table/import'
10
+
11
+ program :name, 'whodump'
12
+ program :version, Whodump::VERSION
13
+ program :description, 'A command line interface for checking domain name availability.'
14
+
15
+
16
+ ################################################################################
17
+ # Initialization
18
+ ################################################################################
19
+
20
+ # Catch CTRL-C and exit cleanly
21
+ trap("INT") do
22
+ puts
23
+ exit()
24
+ end
25
+
26
+
27
+ ################################################################################
28
+ # Source
29
+ ################################################################################
30
+
31
+ command :filter do |c|
32
+ c.syntax = 'whodump filter [options] FILE'
33
+ c.description = 'Filters domain names.'
34
+ c.when_called do|args, options|
35
+ filename = *args
36
+ raise 'Filename is required' if filename.nil?
37
+ raise "File does not exist: #{filename}" unless File.exists?(filename)
38
+
39
+ # Read domain list
40
+ domains = IO.read(filename).split(/\r?\n/)
41
+
42
+ # Display results
43
+ domains.each do |domain|
44
+ if Whois.query(domain).available?
45
+ puts domain
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,8 @@
1
+ $:.unshift(File.dirname(__FILE__))
2
+
3
+ require 'whois'
4
+
5
+ require 'whodump/version'
6
+
7
+ class Whodump
8
+ end
@@ -0,0 +1,3 @@
1
+ class Whodump
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: whodump
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 0
10
+ version: 0.1.0
11
+ platform: ruby
12
+ authors:
13
+ - Ben Johnson
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-04-07 00:00:00 -06:00
19
+ default_executable: whodump
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: whois
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 13
30
+ segments:
31
+ - 2
32
+ - 0
33
+ - 1
34
+ version: 2.0.1
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: commander
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 57
46
+ segments:
47
+ - 4
48
+ - 0
49
+ - 3
50
+ version: 4.0.3
51
+ type: :runtime
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: terminal-table
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ hash: 3
62
+ segments:
63
+ - 1
64
+ - 4
65
+ - 2
66
+ version: 1.4.2
67
+ type: :runtime
68
+ version_requirements: *id003
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ hash: 31
78
+ segments:
79
+ - 2
80
+ - 4
81
+ - 0
82
+ version: 2.4.0
83
+ type: :development
84
+ version_requirements: *id004
85
+ - !ruby/object:Gem::Dependency
86
+ name: mocha
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ hash: 35
94
+ segments:
95
+ - 0
96
+ - 9
97
+ - 12
98
+ version: 0.9.12
99
+ type: :development
100
+ version_requirements: *id005
101
+ - !ruby/object:Gem::Dependency
102
+ name: rcov
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ hash: 41
110
+ segments:
111
+ - 0
112
+ - 9
113
+ - 9
114
+ version: 0.9.9
115
+ type: :development
116
+ version_requirements: *id006
117
+ description:
118
+ email:
119
+ - benbjohnson@yahoo.com
120
+ executables:
121
+ - whodump
122
+ extensions: []
123
+
124
+ extra_rdoc_files: []
125
+
126
+ files:
127
+ - lib/whodump/version.rb
128
+ - lib/whodump.rb
129
+ - README.md
130
+ - bin/whodump
131
+ has_rdoc: true
132
+ homepage: http://github.com/benbjohnson/whodump
133
+ licenses: []
134
+
135
+ post_install_message:
136
+ rdoc_options: []
137
+
138
+ require_paths:
139
+ - lib
140
+ required_ruby_version: !ruby/object:Gem::Requirement
141
+ none: false
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ hash: 3
146
+ segments:
147
+ - 0
148
+ version: "0"
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ none: false
151
+ requirements:
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ hash: 3
155
+ segments:
156
+ - 0
157
+ version: "0"
158
+ requirements: []
159
+
160
+ rubyforge_project:
161
+ rubygems_version: 1.3.7
162
+ signing_key:
163
+ specification_version: 3
164
+ summary: CLI for checking domain name availability
165
+ test_files: []
166
+