whois 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,6 +1,11 @@
1
1
  = Changelog
2
2
 
3
3
 
4
+ == Release 1.1.1
5
+
6
+ * FIXED: Deprecated methods Whois::Answer::Parser::Base#(admin|technical|registrant) didn't figure as supported with Whois::Answer#property_supported?(:method)
7
+
8
+
4
9
  == Release 1.1.0
5
10
 
6
11
  * NEW: Added simple .am TLD parser (whois.nic.am).
@@ -126,7 +126,8 @@ module Whois
126
126
  def self.register_property(property, status, &block)
127
127
  property = property.to_s.to_sym
128
128
  property_registry(self).merge!({ property => status })
129
- define_method(property, &block)
129
+ define_method(property, &block) if block_given?
130
+ self
130
131
  end
131
132
 
132
133
 
@@ -80,6 +80,13 @@ module Whois
80
80
  @technical_contact ||= node("Tech-C")
81
81
  end
82
82
 
83
+ # @deprecated
84
+ register_property :registrant, :supported
85
+ # @deprecated
86
+ register_property :admin, :supported
87
+ # @deprecated
88
+ register_property :technical, :supported
89
+
83
90
 
84
91
  # Nameservers are listed in the following formats:
85
92
  #
@@ -72,6 +72,13 @@ module Whois
72
72
 
73
73
  property_not_supported :technical_contact
74
74
 
75
+ # @deprecated
76
+ register_property :registrant, :not_supported
77
+ # @deprecated
78
+ register_property :admin, :not_supported
79
+ # @deprecated
80
+ register_property :technical, :not_supported
81
+
75
82
 
76
83
  property_not_supported :nameservers
77
84
 
@@ -109,9 +109,14 @@ module Whois
109
109
  @tecnical_contact ||= contact('tech-c')
110
110
  end
111
111
 
112
+ # @deprecated
113
+ register_property :registrant, :supported
114
+ # @deprecated
115
+ register_property :admin, :supported
116
+ # @deprecated
117
+ register_property :technical, :supported
118
+
112
119
 
113
- # If available, returns an array of name servers entries for this domain
114
- # if any name server is available in the registry answer.
115
120
  property_supported :nameservers do
116
121
  @nameservers ||= node('nameserver') || []
117
122
  end
@@ -110,6 +110,13 @@ module Whois
110
110
  @technical_contact ||= contact("Technical Contacts")
111
111
  end
112
112
 
113
+ # @deprecated
114
+ register_property :registrant, :supported
115
+ # @deprecated
116
+ register_property :admin, :supported
117
+ # @deprecated
118
+ register_property :technical, :supported
119
+
113
120
 
114
121
  # If available, returns an array of name servers entries for this domain
115
122
  # if any name server is available in the registry answer.
@@ -95,6 +95,13 @@ module Whois
95
95
  contact("Tech")
96
96
  end
97
97
 
98
+ # @deprecated
99
+ register_property :registrant, :supported
100
+ # @deprecated
101
+ register_property :admin, :supported
102
+ # @deprecated
103
+ register_property :technical, :supported
104
+
98
105
 
99
106
  property_supported :nameservers do
100
107
  @nameservers ||= node("Name Server") { |server| server.reject(&:empty?).map(&:downcase) }
data/lib/whois/version.rb CHANGED
@@ -19,7 +19,7 @@ module Whois
19
19
  module Version
20
20
  MAJOR = 1
21
21
  MINOR = 1
22
- PATCH = 0
22
+ PATCH = 1
23
23
 
24
24
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
25
25
  end
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.1.0"
5
+ s.version = "1.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Simone Carletti"]
9
- s.date = %q{2010-05-03}
9
+ s.date = %q{2010-05-04}
10
10
  s.default_executable = %q{ruby-whois}
11
11
  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.
12
12
  }
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- - 0
9
- version: 1.1.0
8
+ - 1
9
+ version: 1.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Simone Carletti
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-03 00:00:00 +02:00
17
+ date: 2010-05-04 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency