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 +6 -0
- data/EXAMPLES +2 -1
- data/NOTES +4 -0
- data/README +0 -1
- data/lib/server/server.rb +3 -3
- data/lib/whois.rb +1 -1
- metadata +4 -4
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
data/NOTES
CHANGED
data/README
CHANGED
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
|
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
|
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
|
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.
|
7
|
-
date: 2007-03-
|
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
|