Sorry, I made a mistake. I am using the class ::String. otherwise it doesn't work at all. my bad. this is the code im struggling with.
http://pastie.org/298077 On Wed, Oct 22, 2008 at 10:11 AM, Mike Richards <[EMAIL PROTECTED]> wrote: > Hi Everyone, > > I'm building a little test app here that validates a given URL. I made > a method outside of Shoes.app and it works fine, but when I try using > that method inside Shoes.app, I get some very strange behavior. Most > of the time it will give me this error in console: > > Error in /Applications/Shoes.app/Contents/MacOS/ruby/lib/resolv-replace.rb > line 19 > Connection refused - connect(2) > > But if I wait about 10 minutes or so, and try it again. it will work > once, and then I must wait again another 10 minutes for it to work. I > don't see anything relative from when it works and when it doesn't. so > this is puzzling to me. I tried putting the method in class ::String > (instead of just class String), and i also tried using just a method > (no open class method), Same thing. > > Here is the code: http://pastie.org/298055 > > Thanks in advance. >
