From why at whytheluckystiff.net Tue Apr 11 00:17:56 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Mon, 10 Apr 2006 22:17:56 -0600 Subject: ! camping 1.4 Message-ID: <443B2DF4.80302@whytheluckystiff.net> Okay, Camping 1.4 is out. gem install camping --source code.whytheluckystiff.net The only recent change is that the request body gets store in the @in variable as an open stream. It's also okay to pass an IO object out of Camping. Lastly, Camping + Mongrel (SVN) now supports the X-Sendfile header. [1] Very swift and cool. _why [1] http://celebnamer.celebworld.ws/stuff/mod_xsendfile/ From why at whytheluckystiff.net Wed Apr 19 19:32:05 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Wed, 19 Apr 2006 17:32:05 -0600 Subject: ! camping 1.4.1 Message-ID: <4446C875.2090203@whytheluckystiff.net> Okay: gem install camping --source code.whytheluckystiff.net Fixes a problem with query parsing. Specifically, the `user[login]=_why&user[email]=why at ruby-lang.org' syntax was broken since ActiveSupport's hash indifferent overrides update() and merge(). _why From uggedal at gmail.com Sat Apr 22 07:51:48 2006 From: uggedal at gmail.com (Eivind Uggedal) Date: Sat, 22 Apr 2006 13:51:48 +0200 Subject: Testing when camping Message-ID: <824b51d00604220451v2dc75819nd4f5ee17068bc88@mail.gmail.com> I have considered writing some small camping apps for a while now. Before I embark on this trip visiting unknown campsites, I thought I better yet ask the seasoned campers a question: How can one go about doing unit testing of a camping application. I'm mainly thinking about testing of the models. Can the testing facilities of Rails easily be integrated so that I can test my AR models? Functional testing (which seems to me as just another unit test, but of the controllers instead of the models) is not that important to me as the resulting applications hopefully will be quite simplistic. -- Eivind Uggedal http://redflavor.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/camping-list/attachments/20060422/09497d97/attachment.htm From bingopajama at hotmail.com Tue Apr 25 14:59:29 2006 From: bingopajama at hotmail.com (Eric Ching) Date: Tue, 25 Apr 2006 12:59:29 -0600 Subject: Threads in camping Message-ID: Is it possible to start a thread and store a reference to the thread in a session? I do this with servlets quite frequently and am wondering if a similar thing is possible in camping. cheers, Eric From why at whytheluckystiff.net Tue Apr 25 15:09:00 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Tue, 25 Apr 2006 13:09:00 -0600 Subject: Threads in camping In-Reply-To: References: Message-ID: <444E73CC.2000703@whytheluckystiff.net> Eric Ching wrote: > Is it possible to start a thread and store a reference to the thread in a > session? I do this with servlets quite frequently and am wondering if a > similar thing is possible in camping. > Sessions get serialized to the database and you can't serialize a thread. However, if you're running Camping under WEBrick or Mongrel, you could probably keep a list of threads in your Camping application's class and use the Thread's object_id to refer back to it from your session. If you're running Camping under FastCGI, you'll need to do further work to make sure the same session always lands in the same process containing that thread. _why