[Mongrel] Recommentation: Sessions and PStore

Jared Brown jaredbrown at gmail.com
Sun Sep 3 18:52:06 EDT 2006


I am wondering the same thing. So what exactly are using to do in order to
check?

On 9/3/06, Joshua Harvey <joshmh at gmail.com> wrote:
>
> Try:
>
> > irb
> irb> require 'mysql'
>
> If it works, you've got the compiled version, if it throws an exception,
> you don't. That's how Rails itself checks for it.
>
> -- Josh H.
>
>
>
> On 9/4/06, Jan Svitok <jan.svitok at gmail.com> wrote:
> >
> > On 9/3/06, Paul Butcher <paul at paulbutcher.com> wrote:
> > > Please forgive the stupid question, but how does one tell whether one
> > is
> > > using the mysql compiled gem or not? I've installed it, apparently
> > > successfully, but I'd feel happier if I could be certain that Rails
> > was
> > > using it...
> >
> > General procedure without really knowing too much about the drivers ;-)
> > : either
> > - try running coverage, to see which of them gets executed (probably
> > too slow, too much work)
> > - look at both versions to spot some differences in e.g. private
> > method names and check it in your code.
> > - try induce some exception in the mysql code and check the stack trace.
> > - examine caller() inside a block called from some mysql stuff
> > - the easiest one: look for some VERSION constant or similar thing.
> > _______________________________________________
> > Mongrel-users mailing list
> > Mongrel-users at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/mongrel-users
> >
>
>
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users
>
>


-- 
Jared Brown
jaredbrown at gmail.com
(765) 409-0875
7001 Central Ave
Indianapolis, IN 46220
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060903/5db94255/attachment.html 


More information about the Mongrel-users mailing list