[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: [ANN] Mongrel HTTP Library 0.2.0 (Fast And RubyForgified

Daniel Sheppard

2/2/2006 3:02:00 AM

Seem to have a slight problem with the mongrel gem, unless I'm using the
custom require supplied by rubygems, I can't get the gem to work.

The following:

p require 'rubygems'
p require_gem 'mongrel'
p Mongrel

gives me:

true
true
-:3: uninitialized constant Mongrel (NameError)


The following, however, works:

p require 'ubygems'
p require 'mongrel'
p Mongrel



3 Answers

Zed A. Shaw

2/2/2006 7:04:00 AM

0

Odd, not quite sure what would cause that. Can you try the soon to
be announce 0.2.1 release and let me know if you get the same problems?

Zed A. Shaw
http://www.ze...

On Feb 1, 2006, at 10:02 PM, Daniel Sheppard wrote:

> Seem to have a slight problem with the mongrel gem, unless I'm
> using the
> custom require supplied by rubygems, I can't get the gem to work.
>
> The following:
>
> p require 'rubygems'
> p require_gem 'mongrel'
> p Mongrel
>
> gives me:
>
> true
> true
> -:3: uninitialized constant Mongrel (NameError)
>
>
> The following, however, works:
>
> p require 'ubygems'
> p require 'mongrel'
> p Mongrel
>
>


Zed A. Shaw

2/2/2006 8:44:00 PM

0

You're missing the fix posted just today. I'll have a 0.2.2 out that
should fix this later tonight. Basically, try adding:

#if defined(_WIN32)
#include <stddef.h>
#endif

To the top of http_parser.h just after the sys/types.h include.

Let me know if that works.

Zed A. Shaw
http://www.ze...


> I know Windows is evil, but I thought I'd paste in my log again, just
> in case it becomes handy.
>
> Ruby OneClick 1.8.2-15 install, Visual Studio 2K3
<snip>
> creating Makefile
> make
>
> Microsoft (R) Program Maintenance Utility Version 7.10.3077
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> cl -nologo -MD -Zi -O2b2xg- -G6 -I.
> -Ic:/ruby/lib/ruby/1.8/i386-mswin32
> -Ic:/ruby/lib/ruby/1.8/i386-mswin32 -I. -Ie:/projects/ruby_src/ruby -I

Wilson Bilkovich

2/2/2006 10:07:00 PM

0

On 2/2/06, zedshaw@zedshaw.com <zedshaw@zedshaw.com> wrote:
> You're missing the fix posted just today. I'll have a 0.2.2 out that
> should fix this later tonight. Basically, try adding:
>
> #if defined(_WIN32)
> #include <stddef.h>
> #endif
>
> To the top of http_parser.h just after the sys/types.h include.
>
> Let me know if that works.
>

Awesome. Fixed. The changes I made to extconf.rb were unnecessary as well.

>rake test
Started
........
RESOLVE(8500): 0.062000 0.000000 0.062000 ( 0.062000)
REG_UNREG(8500): 0.063000 0.000000 0.063000 ( 0.063000)
......
Finished in 1.172 seconds.

14 tests, 210 assertions, 0 failures, 0 errors