whos 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -48,7 +48,11 @@ Added verisign spam
48
48
 
49
49
  == 0.1.4 2011/09/01
50
50
 
51
- Fixed "host" bug in --open option``
51
+ Fixed "host" bug in --open option` `
52
52
  More spam
53
53
 
54
+ == 0.1.6 2011/09/02
55
+
56
+ Fixed whitespace matching bug (catches way more spam now)
57
+ Oops! spam db was not included by gemspec!
54
58
 
data/lib/whos/spam.rb CHANGED
@@ -9,19 +9,23 @@ module Whos
9
9
  end
10
10
  end
11
11
 
12
+ def << s
13
+ @lines << s.strip
14
+ end
15
+
12
16
  def read file
13
17
  File.read(file).each_line do |line|
14
- @lines << line.chomp.strip
18
+ self << line
15
19
  end
16
20
  end
17
21
 
18
22
  def include? s
19
- @lines.include? s.strip
23
+ s.strip!
24
+ s == "" or @lines.include? s
20
25
  end
21
26
 
22
27
  def filter s
23
28
  s.each_line.reject do |line|
24
- line.chomp!
25
29
  include? line
26
30
  end.join("\n")
27
31
  end
data/spam/1-and-1.txt ADDED
@@ -0,0 +1,16 @@
1
+ % The data in the WHOIS database of 1&1 Internet AG is provided by
2
+ % 1&1 for information purposes, and to assist persons in obtaining
3
+ % information about or related to a domain name registration record.
4
+ % 1&1 does not guarantee its accuracy. By submitting a WHOIS query,
5
+ % you agree that you will use this data only for lawful purposes and that,
6
+ % under no circumstances, you will use this data to
7
+ % (1) allow, enable, or otherwise support the transmission by e-mail,
8
+ % telephone, or facsimile of mass, unsolicited, commercial advertising or
9
+ % solicitations to entities other than the data recipient's own existing
10
+ % customers; or
11
+ % (2) enable high volume, automated, electronic processes that send queries or
12
+ % data to the systems of any Registry Operator or ICANN-Accredited registrar,
13
+ % except as reasonably necessary to register domain names or modify existing
14
+ % registrations.
15
+ % 1&1 reserves the right to modify these terms at any time.
16
+ % By submitting this query, you agree to abide by this policy.
data/spam/dotorg.txt ADDED
@@ -0,0 +1,15 @@
1
+ NOTICE: Access to .ORG WHOIS information is provided to assist persons in
2
+ determining the contents of a domain name registration record in the Public Interest Registry
3
+ registry database. The data in this record is provided by Public Interest Registry
4
+ for informational purposes only, and Public Interest Registry does not guarantee its
5
+ accuracy. This service is intended only for query-based access. You agree
6
+ that you will use this data only for lawful purposes and that, under no
7
+ circumstances will you use this data to: (a) allow, enable, or otherwise
8
+ support the transmission by e-mail, telephone, or facsimile of mass
9
+ unsolicited, commercial advertising or solicitations to entities other than
10
+ the data recipient's own existing customers; or (b) enable high volume,
11
+ automated, electronic processes that send queries or data to the systems of
12
+ Registry Operator or any ICANN-Accredited Registrar, except as reasonably
13
+ necessary to register domain names or modify existing registrations. All
14
+ rights reserved. Public Interest Registry reserves the right to modify these terms at any
15
+ time. By submitting this query, you agree to abide by this policy.
data/spam/godaddy.txt ADDED
@@ -0,0 +1,38 @@
1
+ The data contained in GoDaddy.com, Inc.'s WhoIs database,
2
+ while believed by the company to be reliable, is provided "as is"
3
+ with no guarantee or warranties regarding its accuracy. This
4
+ information is provided for the sole purpose of assisting you
5
+ in obtaining information about domain name registration records.
6
+ Any use of this data for any other purpose is expressly forbidden without the prior written
7
+ permission of GoDaddy.com, Inc. By submitting an inquiry,
8
+ you agree to these terms of usage and limitations of warranty. In particular,
9
+ you agree not to use this data to allow, enable, or otherwise make possible,
10
+ dissemination or collection of this data, in part or in its entirety, for any
11
+ purpose, such as the transmission of unsolicited advertising and
12
+ and solicitations of any kind, including spam. You further agree
13
+ not to use this data to enable high volume, automated or robotic electronic
14
+ processes designed to collect or compile this data for any purpose,
15
+ including mining this data for your own personal or commercial purposes.
16
+ Please note: the registrant of the domain name is specified
17
+ in the "registrant" field. In most cases, GoDaddy.com, Inc.
18
+ is not the registrant of domain names listed in this database.
19
+
20
+ The data contained in GoDaddy.com, Inc.'s WhoIs database,
21
+ while believed by the company to be reliable, is provided "as is"
22
+ with no guarantee or warranties regarding its accuracy. This
23
+ information is provided for the sole purpose of assisting you
24
+ in obtaining information about domain name registration records.
25
+ Any use of this data for any other purpose is expressly forbidden without the prior written
26
+ permission of GoDaddy.com, Inc. By submitting an inquiry,
27
+ you agree to these terms of usage and limitations of warranty. In particular,
28
+ you agree not to use this data to allow, enable, or otherwise make possible,
29
+ dissemination or collection of this data, in part or in its entirety, for any
30
+ purpose, such as the transmission of unsolicited advertising and
31
+ and solicitations of any kind, including spam. You further agree
32
+ not to use this data to enable high volume, automated or robotic electronic
33
+ processes designed to collect or compile this data for any purpose,
34
+ including mining this data for your own personal or commercial purposes.
35
+
36
+ Please note: the registrant of the domain name is specified
37
+ in the "registrant" field. In most cases, GoDaddy.com, Inc.
38
+ is not the registrant of domain names listed in this database.
data/spam/kica.txt ADDED
@@ -0,0 +1,12 @@
1
+ Welcome to KICA, Inc. dba DomainCA.COM's WHOIS Service
2
+ (Acceptable use policy for WHOIS service of DomainCA.com)
3
+ WHOIS information of DomainCA.com is provided by the database of DomainCA.com.
4
+ We do not guarantee the accuracy about the purpose of providing information,
5
+ the purpose of obtaining identity information, and the records of the domain registration.
6
+ The requested WHOIS information is used only as a legitimate purpose,
7
+ is not used for any other purpose such as the following.
8
+ 1) Commercial advertisement or solicitation mail/spam mail without the consent
9
+ 2) Automation of mass information process by applying DomainCA.com or DomainCA service system
10
+ DomainCA reserves the right to add,
11
+ delete or modify any provision of this policy at any time without notice.
12
+ You have accepted and agreed to this policy by providing this information.
@@ -0,0 +1,18 @@
1
+ MarkMonitor is the Global Leader in Enterprise Brand Protection.
2
+ Domain Management
3
+ MarkMonitor Brand Protection™
4
+ AntiFraud Solutions
5
+ Corporate Consulting Services
6
+ Visit MarkMonitor at www.markmonitor.com
7
+ Contact us at 1 800 745 9229
8
+ In Europe, at +44 (0) 20 7840 1300
9
+ The Data in MarkMonitor.com's WHOIS database is provided by MarkMonitor.com
10
+ for information purposes, and to assist persons in obtaining information
11
+ about or related to a domain name registration record. MarkMonitor.com
12
+ does not guarantee its accuracy. By submitting a WHOIS query, you agree
13
+ that you will use this Data only for lawful purposes and that, under no
14
+ circumstances will you use this Data to: (1) allow, enable, or otherwise
15
+ solicitations via e-mail (spam); or (2) enable high volume, automated,
16
+ electronic processes that apply to MarkMonitor.com (or its systems).
17
+ MarkMonitor.com reserves the right to modify these terms at any time.
18
+ By submitting this query, you agree to abide by this policy.
data/spam/neustar.txt ADDED
@@ -0,0 +1,20 @@
1
+ NeuStar, Inc., the Registry Operator for .BIZ, has collected this information
2
+ for the WHOIS database through an ICANN-Accredited Registrar. This information
3
+ is provided to you for informational purposes only and is designed to assist
4
+ persons in determining contents of a domain name registration record in the
5
+ NeuStar registry database. NeuStar makes this information available to you
6
+ "as is" and does not guarantee its accuracy. By submitting a WHOIS query, you
7
+ agree that you will use this data only for lawful purposes and that, under no
8
+ circumstances will you use this data: (1) to allow, enable, or otherwise
9
+ support the transmission of mass unsolicited, commercial advertising or
10
+ solicitations via direct mail, electronic mail, or by telephone; (2) in
11
+ contravention of any applicable data and privacy protection acts; or (3) to
12
+ enable high volume, automated, electronic processes that apply to the registry
13
+ (or its systems). Compilation, repackaging, dissemination, or other use of the
14
+ WHOIS database in its entirety, or of a substantial portion thereof, is not
15
+ allowed without NeuStar's prior written permission. NeuStar reserves the
16
+ right to modify or change these conditions at any time without prior or
17
+ subsequent notification of any kind. By executing this query, in any manner
18
+ whatsoever, you agree to abide by these terms.
19
+ NOTE: FAILURE TO LOCATE A RECORD IN THE WHOIS DATABASE IS NOT INDICATIVE
20
+ OF THE AVAILABILITY OF A DOMAIN NAME.
data/spam/tucows.txt ADDED
@@ -0,0 +1,70 @@
1
+ Whois Server Version 2.0
2
+
3
+ Domain names in the .com and .net domains can now be registered
4
+ with many different competing registrars. Go to http://www.internic.net
5
+ for detailed information.
6
+ NOTICE: The expiration date displayed in this record is the date the
7
+ registrar's sponsorship of the domain name registration in the registry is
8
+ currently set to expire. This date does not necessarily reflect the expiration
9
+ date of the domain name registrant's agreement with the sponsoring
10
+ registrar. Users may consult the sponsoring registrar's Whois database to
11
+ view the registrar's reported date of expiration for this registration.
12
+
13
+ TERMS OF USE: You are not authorized to access or query our Whois
14
+ database through the use of electronic processes that are high-volume and
15
+ automated except as reasonably necessary to register domain names or
16
+ modify existing registrations; the Data in VeriSign Global Registry
17
+ Services' ("VeriSign") Whois database is provided by VeriSign for
18
+ information purposes only, and to assist persons in obtaining information
19
+ about or related to a domain name registration record. VeriSign does not
20
+ guarantee its accuracy. By submitting a Whois query, you agree to abide
21
+ by the following terms of use: You agree that you may use this Data only
22
+ for lawful purposes and that under no circumstances will you use this Data
23
+ to: (1) allow, enable, or otherwise support the transmission of mass
24
+ unsolicited, commercial advertising or solicitations via e-mail, telephone,
25
+ or facsimile; or (2) enable high volume, automated, electronic processes
26
+ that apply to VeriSign (or its computer systems). The compilation,
27
+ repackaging, dissemination or other use of this Data is expressly
28
+ prohibited without the prior written consent of VeriSign. You agree not to
29
+ use electronic processes that are automated and high-volume to access or
30
+ query the Whois database except as reasonably necessary to register
31
+ domain names or modify existing registrations. VeriSign reserves the right
32
+ to restrict your access to the Whois database in its sole discretion to ensure
33
+ operational stability. VeriSign may restrict or terminate your access to the
34
+ Whois database for failure to abide by these terms of use. VeriSign
35
+ reserves the right to modify these terms at any time.
36
+
37
+ The Registry database contains ONLY .COM, .NET, .EDU domains and
38
+ Registrars.
39
+
40
+ The Data in the Tucows Registrar WHOIS database is provided to you by Tucows
41
+ for information purposes only, and may be used to assist you in obtaining
42
+ information about or related to a domain name's registration record.
43
+
44
+ Tucows makes this information available "as is," and does not guarantee its
45
+ accuracy.
46
+
47
+ By submitting a WHOIS query, you agree that you will use this data only for
48
+ lawful purposes and that, under no circumstances will you use this data to:
49
+ a) allow, enable, or otherwise support the transmission by e-mail,
50
+ telephone, or facsimile of mass, unsolicited, commercial advertising or
51
+ solicitations to entities other than the data recipient's own existing
52
+ customers; or (b) enable high volume, automated, electronic processes that
53
+ send queries or data to the systems of any Registry Operator or
54
+ ICANN-Accredited registrar, except as reasonably necessary to register
55
+ domain names or modify existing registrations.
56
+
57
+ The compilation, repackaging, dissemination or other use of this Data is
58
+ expressly prohibited without the prior written consent of Tucows.
59
+
60
+ Tucows reserves the right to terminate your access to the Tucows WHOIS
61
+ database in its sole discretion, including without limitation, for excessive
62
+ querying of the WHOIS database or for failure to otherwise abide by this
63
+ policy.
64
+
65
+ Tucows reserves the right to modify these terms at any time.
66
+
67
+ By submitting this query, you agree to abide by these terms.
68
+
69
+ NOTE: THE WHOIS DATABASE IS A CONTACT DATABASE ONLY. LACK OF A DOMAIN
70
+ RECORD DOES NOT SIGNIFY DOMAIN AVAILABILITY.
data/spam/verisign.txt ADDED
@@ -0,0 +1,60 @@
1
+ Whois Server Version 2.0
2
+
3
+ Domain names in the .com and .net domains can now be registered
4
+ with many different competing registrars. Go to http://www.internic.net
5
+ for detailed information.
6
+
7
+ NOTICE: The expiration date displayed in this record is the date the
8
+ registrar's sponsorship of the domain name registration in the registry is
9
+ currently set to expire. This date does not necessarily reflect the expiration
10
+ date of the domain name registrant's agreement with the sponsoring
11
+ registrar. Users may consult the sponsoring registrar's Whois database to
12
+ view the registrar's reported date of expiration for this registration.
13
+
14
+ TERMS OF USE: You are not authorized to access or query our Whois
15
+ database through the use of electronic processes that are high-volume and
16
+ automated except as reasonably necessary to register domain names or
17
+ modify existing registrations; the Data in VeriSign Global Registry
18
+ Services' ("VeriSign") Whois database is provided by VeriSign for
19
+ information purposes only, and to assist persons in obtaining information
20
+ about or related to a domain name registration record. VeriSign does not
21
+ guarantee its accuracy. By submitting a Whois query, you agree to abide
22
+ by the following terms of use: You agree that you may use this Data only
23
+ for lawful purposes and that under no circumstances will you use this Data
24
+ to: (1) allow, enable, or otherwise support the transmission of mass
25
+ unsolicited, commercial advertising or solicitations via e-mail, telephone,
26
+ or facsimile; or (2) enable high volume, automated, electronic processes
27
+ that apply to VeriSign (or its computer systems). The compilation,
28
+ repackaging, dissemination or other use of this Data is expressly
29
+ prohibited without the prior written consent of VeriSign. You agree not to
30
+ use electronic processes that are automated and high-volume to access or
31
+ query the Whois database except as reasonably necessary to register
32
+ domain names or modify existing registrations. VeriSign reserves the right
33
+ to restrict your access to the Whois database in its sole discretion to ensure
34
+ operational stability. VeriSign may restrict or terminate your access to the
35
+ Whois database for failure to abide by these terms of use. VeriSign
36
+ reserves the right to modify these terms at any time.
37
+
38
+ The Registry database contains ONLY .COM, .NET, .EDU domains and
39
+ Registrars.
40
+ =-=-=-=
41
+
42
+ Get Noticed on the Internet! Increase visibility for this domain name by listing it at www.whoisbusinesslistings.com
43
+ =-=-=-=
44
+ The data in this whois database is provided to you for information
45
+ purposes only, that is, to assist you in obtaining information about or
46
+ related to a domain name registration record. We make this information
47
+ available "as is," and do not guarantee its accuracy. By submitting a
48
+ whois query, you agree that you will use this data only for lawful
49
+ purposes and that, under no circumstances will you use this data to: (1)
50
+ enable high volume, automated, electronic processes that stress or load
51
+ this whois database system providing you this information; or (2) allow,
52
+ enable, or otherwise support the transmission of mass unsolicited,
53
+ commercial advertising or solicitations via direct mail, electronic
54
+ mail, or by telephone. The compilation, repackaging, dissemination or
55
+ other use of this data is expressly prohibited without prior written
56
+ consent from us.
57
+
58
+ We reserve the right to modify these terms at any time. By submitting
59
+ this query, you agree to abide by these terms.
60
+ Version 6.3 4/3/2002
data/whos.gemspec CHANGED
@@ -3,7 +3,7 @@ $spec = Gem::Specification.new do |s|
3
3
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
4
 
5
5
  s.name = 'whos'
6
- s.version = '0.1.4'
6
+ s.version = '0.1.6'
7
7
 
8
8
  s.description = "Wraps whois and removes the BS"
9
9
  s.summary = "Wraps whois and removes the registrar legal/marketing spam from the response."
@@ -16,7 +16,9 @@ $spec = Gem::Specification.new do |s|
16
16
  LICENSE
17
17
  Rakefile
18
18
  whos.gemspec
19
- bin/whos] + Dir.glob("lib/**/*.rb")
19
+ bin/whos] +
20
+ Dir.glob("lib/**/*.rb") +
21
+ Dir.glob("spam/**/*.txt")
20
22
  s.executables = ['whos']
21
23
  s.test_files = s.files.select {|path| path =~ /^spec\/.*_spec.rb/}
22
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-01 00:00:00.000000000Z
12
+ date: 2011-09-02 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Wraps whois and removes the BS
15
15
  email: alex@stinky.com
@@ -27,6 +27,14 @@ files:
27
27
  - lib/whos/check.rb
28
28
  - lib/whos/spam.rb
29
29
  - lib/whos.rb
30
+ - spam/1-and-1.txt
31
+ - spam/dotorg.txt
32
+ - spam/godaddy.txt
33
+ - spam/kica.txt
34
+ - spam/markmonitor.txt
35
+ - spam/neustar.txt
36
+ - spam/tucows.txt
37
+ - spam/verisign.txt
30
38
  homepage: http://github.com/alexch/whos/
31
39
  licenses: []
32
40
  post_install_message:
@@ -41,7 +49,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
49
  version: '0'
42
50
  segments:
43
51
  - 0
44
- hash: -4191956772108027163
52
+ hash: -3958566612259443149
45
53
  required_rubygems_version: !ruby/object:Gem::Requirement
46
54
  none: false
47
55
  requirements: