Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ironruby whois gem
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bert Helsen  
View profile  
 More options May 12 2012, 9:22 pm
From: Bert Helsen <berthelse...@gmail.com>
Date: Sat, 12 May 2012 18:22:39 -0700 (PDT)
Local: Sat, May 12 2012 9:22 pm
Subject: Ironruby whois gem
Has anyone ever got whois working on ironruby

i have the script whois1.rb:
require 'rubygems'
require 'whois'

domain = "azerty.nl"
c = Whois::Client.new
r = c.query(domain)
if (r.available?)
  puts
  puts (domain+" is AVAILABLE")
  puts
else
  puts(domain+" is NOT available")
end

==================================================
but when i execute
C:\Program Files (x86)\IronRuby 1.1\Lib\ruby\gems\1.9.1\gems
\whois-2.5.1\lib>ir whois1.rb

===================================================
ERROR:
./whois/server/adapters/base.rb:28:in `const_missing': uninitialized
constant Er
rno::EHOSTUNREACH (NameError)
        from ./whois/server/adapters/base.rb:28
        from ./whois/server/adapters/standard.rb:38
        from ./whois/server.rb:167:in `factory'
        from ./whois/server.rb:258:in `find_for_domain'
        from ./whois/server.rb:257:in `each'
        from ./whois/server.rb:257:in `find_for_domain'
        from ./whois/server.rb:217:in `guess'
        from ./whois/client.rb:88:in `query'
        from C:/Program Files (x86)/IronRuby 1.1/Lib/ruby/1.9.1/
timeout.rb:48:in
 `timeout'
        from ./whois/client.rb:87:in `query'
        from whois1.rb:12

Best regards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simone Carletti  
View profile  
 More options May 21 2012, 1:51 am
From: Simone Carletti <wep...@weppos.net>
Date: Mon, 21 May 2012 07:51:44 +0200
Local: Mon, May 21 2012 1:51 am
Subject: Re: Ironruby whois gem

As far as I know, the library is working on IronRuby. I know there are some
companies using such environment.
It seems your IronRuby version doesn't define the EHOSTUNREACH error. Make
sure your IronRuby version is up to date and compatible with Ruby 1.8.7.

-- Simone

--
Simone Carletti
Application Developer

Site & Blog: http://www.simonecarletti.com
Email: wep...@weppos.net
LinkedIn: http://linkedin.com/in/weppos
Skype: weppos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »