whois 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,5 +1,11 @@
1
1
  = Whois CHANGELOG
2
2
 
3
+ == 0.2.1
4
+
5
+ * Fix bug in gem where the data/ipv4.yaml is not load
6
+ * Fix bug in gem where the link to require server was bad
7
+ * Fix bad Name to server class
8
+
3
9
  == 0.2.0
4
10
 
5
11
  * Recode all class for check all IPv4 and search good Server
data/EXAMPLES CHANGED
@@ -2,9 +2,10 @@
2
2
 
3
3
  == Whois request for IP 72.14.207.99
4
4
 
5
+ require 'rubygems'
5
6
  require 'whois'
6
7
 
7
- w = Whois.new '72.14.207.99'
8
+ w = Whois::Whois.new '72.14.207.99'
8
9
  w.search_whois
9
10
 
10
11
  # All return of request
data/NOTES CHANGED
@@ -1,5 +1,9 @@
1
1
  = Whois Release Notes
2
2
 
3
+ == 0.2.1
4
+
5
+ Release for fix bugs
6
+
3
7
  == 0.2.0
4
8
 
5
9
  It's my first version. This version is base to code of Whois unix program in C of Marco d'Itri.
data/README CHANGED
@@ -5,7 +5,6 @@ This class send a whois-query to whois suitable server.
5
5
  After parse information must be return
6
6
 
7
7
  This library is start with work to Michael Neumann. Thank to him.
8
- If you see his work, check out his class[link://old/whois.rb]
9
8
 
10
9
  == Dependencies
11
10
 
data/lib/server/server.rb CHANGED
@@ -54,21 +54,21 @@ module Server
54
54
  end
55
55
 
56
56
  # Class for Server whois.nic.or.kr
57
- class NicOr < Server
57
+ class Nicor < Server
58
58
  def initialize
59
59
  @server = 'whois.nic.or.kr'
60
60
  end
61
61
  end
62
62
 
63
63
  # Class for Server whois.nic.ad.jp
64
- class NicAd < Server
64
+ class Nicad < Server
65
65
  def initialize
66
66
  @server = 'whois.nic.ad.jp'
67
67
  end
68
68
  end
69
69
 
70
70
  # Class for Server whois.nic.br
71
- class NicBr < Server
71
+ class Nicbr < Server
72
72
  def initialize
73
73
  @server = 'whois.nic.br'
74
74
  end
data/lib/whois.rb CHANGED
@@ -50,7 +50,7 @@ module Whois
50
50
 
51
51
  # Define the server of Whois in IPV4 list of YAML
52
52
  def server_ipv4
53
- ipv4_list = YAML::load_file('data/ipv4.yaml')
53
+ ipv4_list = YAML::load_file(File.dirname(__FILE__) + '/data/ipv4.yaml')
54
54
  # Search good Server class for this IP
55
55
  ipv4_list.each do |ip, server|
56
56
  ip_range = IPAddr.new ip
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: whois
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.2.0
7
- date: 2007-03-20 00:00:00 +01:00
6
+ version: 0.2.1
7
+ date: 2007-03-21 00:00:00 +01:00
8
8
  summary: Whois provides a library for request whois server
9
9
  require_paths:
10
10
  - lib
@@ -28,11 +28,11 @@ cert_chain:
28
28
  authors:
29
29
  - Cyril Mougel
30
30
  files:
31
+ - lib/server
31
32
  - lib/data
32
33
  - lib/whois.rb
33
- - lib/server
34
- - lib/data/ipv4.yaml
35
34
  - lib/server/server.rb
35
+ - lib/data/ipv4.yaml
36
36
  - README
37
37
  - EXAMPLES
38
38
  - CHANGELOG