From why at whytheluckystiff.net Wed May 10 11:49:25 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Wed, 10 May 2006 09:49:25 -0600 Subject: Spending some bytes Message-ID: <44620B85.5090205@whytheluckystiff.net> I've got some new gems up for Camping r90. The only change is that multipart/form-data POSTs are now parsed in chunks from the stream. So file uploads are efficient. Traditional POSTs are still parsed in-memory, but I hope this will change before 1.5. _why From why at whytheluckystiff.net Tue May 16 16:56:31 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Tue, 16 May 2006 14:56:31 -0600 Subject: ! camping 1.4.1.96 Message-ID: <446A3C7F.3070208@whytheluckystiff.net> I'm just about ready to release 1.4.2. Here's the pre-release: gem install camping --source code.whytheluckystiff.net The biggest recent change is that the Camping commandline tool now allows mounting of several apps. I've eliminated examples/serve and am encouraging use of the camping tool. Instead, use: camping examples/blog/blog.rb examples/tepee/tepee.rb (or) camping examples/**/*.rb This will mount blog.rb at /blog and tepee.rb at /tepee. Usage: camping app1.rb, app2.rb... camping, the microframework ON-button for ruby 1.8.4 (2006-05-07) [i386-freebsd6.0] Specific options: -h, --host HOSTNAME Host for web server to bind to (default is all IPs) -p, --port NUM Port for web server (defaults to 3301) -d, --database FILE Database file (defaults to /home/why/.camping.db) Common options: --help Show this message --version Show version _why From why at whytheluckystiff.net Thu May 18 14:20:37 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Thu, 18 May 2006 12:20:37 -0600 Subject: ! camping 1.4.2 Message-ID: <446CBAF5.9060606@whytheluckystiff.net> Camping 1.4.2 is out, becoming the encouraged stable version. I've uploaded to Rubyforge, so it should be available in the next thirty minutes or so. = 1.4.2 === 18th May, 2006 * Efficient file uploads for multipart/form-data POSTs. * Camping tool now uses Mongrel, if available. If not, sticks with WEBrick. * Multiple apps can be loaded with the camping tool, each mounted according to their file name. 1.5 will focus on rethinking the way Camping works with Lighttpd, Apache2 and other web servers, to be sure these installations are completely without nuisance. _why From why at whytheluckystiff.net Thu May 18 16:22:37 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Thu, 18 May 2006 14:22:37 -0600 Subject: + Camping::FastCGI Message-ID: <446CD78D.4060300@whytheluckystiff.net> Getting Camping to work with FastCGI is a little clunky, since FastCGI doesn't really understand mounting apps and sometimes the environment vars are a little whack. To keep the postambles easy to read, I've moved the handy stuff into lib/camping/fastcgi.rb. == Mounting a Single App Assuming: Camping.goes :Blog ... this goes in your postamble ... require 'camping/fastcgi' Camping::FastCGI.start(Blog) == Mounting Several Apps require 'camping/fastcgi' server = Camping::FastCGI.new server.mount("/blog", Blog) server.mount("/tepee", Tepee) server.mount("/", Index) server.start For a suitable lighttpd.conf, see the wiki: http://code.whytheluckystiff.net/camping/wiki/PostAmbles _why From why at whytheluckystiff.net Fri May 19 16:57:51 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Fri, 19 May 2006 14:57:51 -0600 Subject: ! camping.rubyforge.org update Message-ID: <446E314F.9070102@whytheluckystiff.net> The online docs are now current. In general, not much has changed, but a few classes have been added. And now they are explained. _why From why at whytheluckystiff.net Mon May 22 19:10:58 2006 From: why at whytheluckystiff.net (why the lucky stiff) Date: Mon, 22 May 2006 17:10:58 -0600 Subject: + camping 1.4.103 and markaby 0.4.55 Message-ID: <44724502.40909@whytheluckystiff.net> Consider this Camping 1.5 pre-release. gem install camping --source code.whytheluckystiff.net Look for: * The new Markaby features. * The Camping::FastCGI class. * R(C, ...) properly escapes wacky arguments. _why From Neville.Burnell at bmsoft.com.au Tue May 30 23:36:49 2006 From: Neville.Burnell at bmsoft.com.au (Neville Burnell) Date: Wed, 31 May 2006 13:36:49 +1000 Subject: Camping and Builder and XML Message-ID: <126EC586577FD611A28E00A0C9A037587E6BBB@maui.bmsoft.com.au> Hi, I have built a simple Camping application which indexes an ODBC datasource using Ferret on startup, then accepts search strings and renders the resulting hit list in HTML, and it works quite nicely. The next step was to alternately render the list in XML for consumption by another application. In Rails, I would simply use Builder in the view to get the job done, and so I did the same in Camping ... Index_xml is my view: def index_xml @headers['Content-Type'] = 'text/xml' xml = Builder::XmlMarkup.new(:target => self) xml.instruct! xml.results do # # more xml builder stuff here # end end This works great! After hacking this together, it occurred to me that Camping/Markaby might have a better way, hence this email. Any comments/pointers welcome, Thanks Neville From manfred at gmail.com Wed May 31 15:16:21 2006 From: manfred at gmail.com (Manfred Stienstra) Date: Wed, 31 May 2006 21:16:21 +0200 Subject: Camping and Builder and XML In-Reply-To: <126EC586577FD611A28E00A0C9A037587E6BBB@maui.bmsoft.com.au> References: <126EC586577FD611A28E00A0C9A037587E6BBB@maui.bmsoft.com.au> Message-ID: On May 31, 2006, at 5:36 AM, Neville Burnell wrote: > > This works great! After hacking this together, it occurred to me that > Camping/Markaby might have a better way, hence this email. There's no other way to do it that I know of. From rramdas at gmail.com Wed May 31 15:32:40 2006 From: rramdas at gmail.com (Rodney Ramdas) Date: Wed, 31 May 2006 21:32:40 +0200 Subject: Camping and Builder and XML In-Reply-To: References: <126EC586577FD611A28E00A0C9A037587E6BBB@maui.bmsoft.com.au> Message-ID: <479cf31b0605311232k12fc3e45q4142b67ed76bea54@mail.gmail.com> dismiss/correct me if i'm wrong/mistaken but camping uses activerecord, can't you use to_xml ? On 5/31/06, Manfred Stienstra wrote: > > On May 31, 2006, at 5:36 AM, Neville Burnell wrote: > > > > This works great! After hacking this together, it occurred to me that > > Camping/Markaby might have a better way, hence this email. > > There's no other way to do it that I know of. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Rodney http://www.pinupgeek.com http://www.dutchrailers.org From Neville.Burnell at bmsoft.com.au Wed May 31 19:28:01 2006 From: Neville.Burnell at bmsoft.com.au (Neville Burnell) Date: Thu, 1 Jun 2006 09:28:01 +1000 Subject: Camping and Builder and XML Message-ID: <126EC586577FD611A28E00A0C9A037587E6BC4@maui.bmsoft.com.au> I'm getting the search results directly from Ferret, so ActiveRecord is not in the mix -----Original Message----- From: camping-list-bounces at rubyforge.org [mailto:camping-list-bounces at rubyforge.org] On Behalf Of Rodney Ramdas Sent: Thursday, 1 June 2006 5:33 AM To: camping-list at rubyforge.org Subject: Re: Camping and Builder and XML dismiss/correct me if i'm wrong/mistaken but camping uses activerecord, can't you use to_xml ? On 5/31/06, Manfred Stienstra wrote: > > On May 31, 2006, at 5:36 AM, Neville Burnell wrote: > > > > This works great! After hacking this together, it occurred to me > > that Camping/Markaby might have a better way, hence this email. > > There's no other way to do it that I know of. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list > -- Rodney http://www.pinupgeek.com http://www.dutchrailers.org _______________________________________________ Camping-list mailing list Camping-list at rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list