mlightner-universal_ruby_whois 1.2.1 → 1.2.5

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.rdoc CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  *License*: MIT[link:files/LICENSE.html]
6
6
 
7
+ *RDoc*: http://universalwhois.rubyforge.org/
8
+
9
+
7
10
  This library attempts to interpret WHOIS output from a variety of different registrars.
8
11
  The ultimate goal is to have a complete "dictionary" of all of the TLD registrars (including
9
12
  double domain TLDs such as .co.uk) on the Internet, and corresponding regular expressions
@@ -46,8 +49,10 @@ Here is the output from a sample IRB session using this library:
46
49
  => false
47
50
  domain.registered?
48
51
  => true
49
- domain.created_date
52
+ domain.creation_date
50
53
  => Mon Aug 28 00:00:00 EDT 2006
54
+ domain.expiration_date
55
+ => Fri Aug 28 00:00:00 EDT 2009
51
56
  domain = Whois.find("9384jf398ejf9832ej.com")
52
57
  => #<Whois::Domain:0xb7a1ab34 @domain="9384jf398ejf9832ej.com", @server_tld_key="com">
53
58
  domain.status
@@ -22,7 +22,7 @@ module Whois
22
22
  }
23
23
 
24
24
  # The location of the 'whois' binary utility.
25
- WHOIS_BIN = `which whois`.gsub(/\s/, '')
25
+ WHOIS_BIN = '/usr/bin/env whois'
26
26
 
27
27
  attr_reader :tld, :nic_server, :regexes, :port, :unavailable, :unavailable_response
28
28
 
@@ -240,11 +240,17 @@ Whois::Server.define(
240
240
 
241
241
  )
242
242
  Whois::Server.define(
243
- %w(travel jobs aero mobi pw tw),
243
+ %w(travel jobs aero pw tw),
244
244
  'whois.encirca.com',
245
245
  :registered => /Domain Registrar Status:/im,
246
246
  :free => /Not found:/im
247
247
  )
248
+ Whois::Server.define(
249
+ 'mobi',
250
+ 'whois.corenic.net',
251
+ :registered => /Domain ID:/im,
252
+ :free => /NOT FOUND/m
253
+ )
248
254
  Whois::Server.define(
249
255
  'ca',
250
256
  'whois.cira.ca',
@@ -1,5 +1,5 @@
1
1
  PKG_NAME = 'universal_ruby_whois'
2
- PKG_VERSION = '1.2.1'
2
+ PKG_VERSION = '1.2.5'
3
3
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
4
4
  RUBY_FORGE_PROJECT = 'universalwhois'
5
5
  RUBY_FORGE_USER = 'mlightner'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mlightner-universal_ruby_whois
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Lightner