whois 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,11 @@
1
1
  = Changelog
2
2
 
3
+ == Release 1.3.4
4
+
5
+ * FIXED: With some .be domains, whois.dns.be parser returns invalid values for nameservers.
6
+
7
+ * FIXED: With some .be domains, whois.dmainregistry.ie parser returns invalid values for nameservers.
8
+
3
9
 
4
10
  == Release 1.3.3
5
11
 
@@ -41,11 +41,11 @@ module Whois
41
41
  end
42
42
 
43
43
  property_supported :available? do
44
- @available ||= (status == "FREE")
44
+ @available ||= (status == "FREE")
45
45
  end
46
46
 
47
47
  property_supported :registered? do
48
- !available?
48
+ @registered ||= !available?
49
49
  end
50
50
 
51
51
 
@@ -62,7 +62,7 @@ module Whois
62
62
 
63
63
  property_supported :nameservers do
64
64
  @nameservers ||= if content_for_scanner =~ /Nameservers:\n((.+\n)+)\n/
65
- $1.split("\n").map(&:strip)
65
+ $1.split("\n").map { |value| value.strip.split(" ").first }
66
66
  else
67
67
  []
68
68
  end
@@ -41,11 +41,11 @@ module Whois
41
41
  end
42
42
 
43
43
  property_supported :available? do
44
- @available ||= !!(content_for_scanner =~ /% No such domain/)
44
+ @available ||= !!(content_for_scanner =~ /% No such domain/)
45
45
  end
46
46
 
47
47
  property_supported :registered? do
48
- !available?
48
+ @registered ||= !available?
49
49
  end
50
50
 
51
51
 
@@ -43,11 +43,11 @@ module Whois
43
43
  end
44
44
 
45
45
  property_supported :available? do
46
- @available ||= !!(content_for_scanner =~ /Not Registered - The domain you have requested is not a registered .ie domain name/)
46
+ @available ||= !!(content_for_scanner =~ /Not Registered - The domain you have requested is not a registered .ie domain name/)
47
47
  end
48
48
 
49
49
  property_supported :registered? do
50
- !available?
50
+ @registered ||= !available?
51
51
  end
52
52
 
53
53
 
@@ -63,7 +63,7 @@ module Whois
63
63
 
64
64
 
65
65
  property_supported :nameservers do
66
- @nameservers ||= content_for_scanner.scan(/nserver:\s+(.+)\n/).flatten
66
+ @nameservers ||= content_for_scanner.scan(/nserver:\s+([^\s]+)(?:.*)\n/).flatten
67
67
  end
68
68
 
69
69
  end
@@ -41,11 +41,11 @@ module Whois
41
41
  end
42
42
 
43
43
  property_supported :available? do
44
- @available ||= (status == :available)
44
+ @available ||= (status == :available)
45
45
  end
46
46
 
47
47
  property_supported :registered? do
48
- !available?
48
+ @registered ||= !available?
49
49
  end
50
50
 
51
51
 
data/lib/whois/version.rb CHANGED
@@ -19,7 +19,7 @@ module Whois
19
19
  module Version
20
20
  MAJOR = 1
21
21
  MINOR = 3
22
- PATCH = 3
22
+ PATCH = 4
23
23
  BUILD = nil
24
24
 
25
25
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join(".")
data/whois.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{whois}
5
- s.version = "1.3.2"
5
+ s.version = "1.3.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simone Carletti"]
9
- s.date = %q{2010-08-26}
9
+ s.date = %q{2010-09-02}
10
10
  s.description = %q{ Whois is an intelligent WHOIS client and parser written in pure Ruby. It can query registry data for IPv4, IPv6 and top level domains, parse and convert responses into easy-to-use Ruby objects.
11
11
  }
12
12
  s.email = %q{weppos@weppos.net}
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whois
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 3
10
- version: 1.3.3
9
+ - 4
10
+ version: 1.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Simone Carletti
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-02 00:00:00 +02:00
18
+ date: 2010-09-07 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency