whos 0.2.1 → 0.3.0

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
@@ -34,8 +34,11 @@ Written in a fit of pique by Alex Chaffee <http://alexch.github.com>
34
34
 
35
35
  # Possible Improvements
36
36
 
37
+ * local spam db e.g. ~/.whos/annoyingregistrar.txt
37
38
  * shared spam db _a la_ [cheat](http://cheat.errtheblog.com)
38
- * specify TLDs (com net org biz info us)
39
+ * specify TLDs (currently: com net org biz info us it)
40
+ * BUG: an error in DNS lookup comes through as "not available" (or maybe "available" -- either way we need three states)
41
+ * BUG: doesn't recognize annoying "WHOIS LIMIT EXCEEDED" from .org registrar http://www.pir.org/WHOIS#q5
39
42
 
40
43
  # Similar
41
44
 
@@ -67,3 +70,6 @@ Written in a fit of pique by Alex Chaffee <http://alexch.github.com>
67
70
  == 0.2.1 2011/09/15
68
71
  * More spam
69
72
 
73
+ ==
74
+ * add .it TLD
75
+
@@ -3,12 +3,12 @@ require 'peach'
3
3
  module Whos
4
4
  class Check
5
5
  attr_reader :responses
6
-
6
+
7
7
  def initialize
8
8
  @spam = Whos::Spam.new
9
9
  @responses = {}
10
10
  end
11
-
11
+
12
12
  def available? domain
13
13
  response = `whois #{domain}`
14
14
 
@@ -19,9 +19,9 @@ module Whos
19
19
  false
20
20
  end
21
21
  end
22
-
22
+
23
23
  def tlds
24
- %w{com net org biz info us}
24
+ %w{com net org biz info us cc it}
25
25
  end
26
26
 
27
27
  def many names
@@ -0,0 +1,22 @@
1
+ Legal Stuff:
2
+ The information in DreamHost's whois database is to be used for
3
+ informational purposes only, and to obtain information on a
4
+ domain name registration. DreamHost does not guarantee its
5
+ You are not authorized to query or access DreamHost's whois
6
+ database using high-volume, automated means without written
7
+ permission from DreamHost.
8
+ You are not authorized to query or access DreamHost's whois
9
+ database in order to facilitate illegal activities, or to
10
+ facilitate the use of unsolicited bulk email, telephone, or
11
+ facsimile communications.
12
+ You are not authorized to collect, repackage, or redistribute the
13
+ information in DreamHost's whois database.
14
+ DreamHost may, at its sole discretion, restrict your access to
15
+ the whois database at any time, with or without notice. DreamHost
16
+ may modify these Terms of Service at any time, with or without
17
+ notice.
18
+ DreamHost whois server terms of service: http://whois.dreamhost.com/terms.html
19
+ Get a 14-day free trial of unlimited everything from DreamHost Web Hosting.
20
+ Paid web hosting includes A FREE domain registration!
21
+ http://www.dreamhost.com/
22
+ Use promotional code "WHOIS" for an additional $50 off any plan!
@@ -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.2.1'
6
+ s.version = '0.3.0'
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."
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.2.1
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-15 00:00:00.000000000Z
12
+ date: 2012-01-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: peach
16
- requirement: &70105593782760 !ruby/object:Gem::Requirement
16
+ requirement: &70284154002560 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70105593782760
24
+ version_requirements: *70284154002560
25
25
  description: Wraps whois and removes the BS
26
26
  email: alex@stinky.com
27
27
  executables:
@@ -43,6 +43,7 @@ files:
43
43
  - spam/blank-lines.txt
44
44
  - spam/directi.txt
45
45
  - spam/dotorg.txt
46
+ - spam/dreamhost.txt
46
47
  - spam/godaddy.txt
47
48
  - spam/kica.txt
48
49
  - spam/markmonitor.txt
@@ -65,7 +66,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
65
66
  version: '0'
66
67
  segments:
67
68
  - 0
68
- hash: -3902889261565694009
69
+ hash: -602917706500864451
69
70
  required_rubygems_version: !ruby/object:Gem::Requirement
70
71
  none: false
71
72
  requirements: