[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby 1.8.5-24 rubyw does not work

yu.ching.tien

3/5/2007 2:34:00 PM

Hi All


rubyw hasnt worked for me since first release 1.8.5

Does anyone has the same problem?


ctyu

4 Answers

Jano Svitok

3/5/2007 3:05:00 PM

0

On 3/5/07, ctyu <yu.ching.tien@gmail.com> wrote:
> Hi All
>
> rubyw hasnt worked for me since first release 1.8.5
>
> Does anyone has the same problem?

Ok, first I wanted to write an essay how to report bugs... ;-) then
i've found tyour bug already filed.

So, I suppose your problem is that when running under rubyw you don't
have console/stdout etc. That means puts cannot possibly work - it
doesn't have anything to write to.

yu.ching.tien

3/5/2007 3:53:00 PM

0

On 5 mar, 12:04, "Jan Svitok" <jan.svi...@gmail.com> wrote:
> On 3/5/07, ctyu <yu.ching.t...@gmail.com> wrote:
>
> > Hi All
>
> > rubyw hasnt worked for me since first release 1.8.5
>
> > Does anyone has the same problem?
>
> Ok, first I wanted to write an essay how to report bugs... ;-) then
> i've found tyour bug already filed.
>
> So, I suppose your problem is that when running under rubyw you don't
> have console/stdout etc. That means puts cannot possibly work - it
> doesn't have anything to write to.


Hi Jan,

I also have a script that starts a webrick, and it also does not work,
but works under 1.8.4-20.

I submitted bug when first release 1.8.5 came out. Thought it was
fixed

Thanks
ctyu

Tim Becker

3/5/2007 4:41:00 PM

0

> > Ok, first I wanted to write an essay how to report bugs...
> I also have a script that starts a webrick, and it also does not work,
> but works under 1.8.4-20.
>
> I submitted bug when first release 1.8.5 came out. Thought it was
> fixed

I think what Jan was trying to say about reporting bugs is that if you
don't describe the problem and ideally provide some code to illustrate
your point, you have very little chance of receiving a satisfying
answer.

yu.ching.tien

3/5/2007 6:54:00 PM

0

On 5 mar, 13:41, "Tim Becker" <a2800...@gmail.com> wrote:
> > > Ok, first I wanted to write an essay how to report bugs...
> > I also have a script that starts a webrick, and it also does not work,
> > but works under 1.8.4-20.
>
> > I submitted bug when first release 1.8.5 came out. Thought it was
> > fixed
>
> I think what Jan was trying to say about reporting bugs is that if you
> don't describe the problem and ideally provide some code to illustrate
> your point, you have very little chance of receiving a satisfying
> answer.

Hi All

Thanks for the responses.

The test script below works fine in 1.8.4 (ruby/rubyw) and 1.8.5
(ruby.exe)

But in 1.8.5 (rubyw) it doesnt work and it also doesnt show up at
process list.


My system is WinXP SP2 Brazilian-Portuguese, with fresh intall of
ruby-1.8.5-24 one click installer

== a.rbw ==
require "webrick"

server = WEBrick::HTTPServer.new(:Port=>1234)

server.mount_proc("/hello") do |req,resp|
resp['Content-Type'] = "text/html"
resp.body = "<p>hello</p>"
end

trap("INT"){server.shutdown}

server.start
===