Rack, Camping 2.0++
zimbatm at oree.ch
Sun May 25 08:47:39 EDT 2008
Just wanted to comment a bit more :
2008/5/21 Magnus Holm <judofyr at gmail.com>:
> I've just finished rewriting Camping to use Rack in the "core". I got rid of
> (a little less) than 1kB in camping.rb and removed lots of un-necessary files
> (lib/server/*.rb, fastcgi.rb & mongrel.rb).
This is good ! I believe lib/camping/server.rb could be merged to
bin/camping since it's not really reusable.
> * I've removed #qsp, #un and #escape. Use Rack::Utils instead
Not sure if this is handy but let's see it in real-world usage
> 2. ORM-agnostic?
I don't mind ORM.
> 3. Cookie Sessions as default
Don't use sessions :)
> 4. Renaming camping-unabridged.rb to camping.rb?
> I haven't touched camping.rb at all, do we really need to prove that it's a
> micro-framework? It just makes development/releasing harder. Let's just forget
> about the abridged version and rename camping-unabridged.rb to camping.rb!
This is not that hard to do. Maybe I should add some shortening tricks document.
I propose platterizing to be done only before release.
The short version should live in the camping-mural.rb file, like the
long version lives in camping-unabridged.rb . `rake release` and `rake
devel` symlink or symlink those files to camping.rb. This should avoid
having to move things around constantly.
More information about the Camping-list