Camping 2.1: Tests

2010-04-12 Thread Magnus Holm
Wanted to highlight some of the issues we know have on github and get some discussion going. First up: Tests - http://github.com/camping/camping/issues#issue/15 Currently Camping doesn't have any automated tests. At all. Now, I'm not a testing freak, but I'm not _why either, so I believe we'll ha

Camping 2.1: Rackification

2010-04-12 Thread Magnus Holm
Rackification - http://github.com/camping/camping/issues#issue/3 I want to make Camping even more Rack-ish. Some ideas: 1. Make Camping::Server use Rack::Server 2. The dispatcher shouldn't care about the method Previously the dispatcher (Controllers.D) has taken a path and a method, and returns

Camping 2.1: Tilt integration

2010-04-12 Thread Magnus Holm
Tilt - http://github.com/camping/camping/issues#issue/18 Tilt integration (http://github.com/rtomayko/tilt) is a dead-simple way to support ERB, Erubis, Haml, Liquid, Builder and other template engines. It would be nice if "require 'camping/templates'" would re-define Base#render to use Tilt IMO.

Camping 2.1: Easier to extend

2010-04-12 Thread Magnus Holm
http://github.com/camping/camping/issues#issue/10 It's currently very hard to extend Camping, so I've been thinking of ways to make it easier without taking too many bytes. Here's a very simple approach: https://gist.github.com/75ecb81a3ae98b097f8a When you write `Camping.plugin :Foo` it stores

Camping 2.1: Making migrations less sucky

2010-04-12 Thread Magnus Holm
http://github.com/camping/camping/issues#issue/12 This is probably the most exciting issue: Making migrations less sucky. The fact that you'll have to do this to get started sucks: module Nuts::Models class Page < Base end class BasicFields < V 1.0 def self.up create_table Page.

Re: Camping 2.1: Tests

2010-04-12 Thread Philippe Monnet
Did not know about WebRat but it seems pretty compelling. I had meant to look at Mosquito (http://mosquito.rubyforge.org/) but if WebRat has a greater adoption in the Ruby community that might make more sense. On 4/12/2010 8:18 AM, Magnus Holm wrote: Wanted to highlight some of the issues we k

Re: Camping 2.1: Rackification

2010-04-12 Thread Philippe Monnet
#1 seems to make sense. I personally tend to use rackup anyway. #2 seems ok. #3 agreed with the dangerous override - how about http_method_missing instead? On 4/12/2010 8:32 AM, Magnus Holm wrote: Rackification - http://github.com/camping/camping/issues#issue/3 I want to make Camping even mor

Re: Camping 2.1: Tilt integration

2010-04-12 Thread Philippe Monnet
Tilt seems pretty cool based on quick glance at the site. This would give people a few more well-known options. On 4/12/2010 8:37 AM, Magnus Holm wrote: Tilt - http://github.com/camping/camping/issues#issue/18 Tilt integration (http://github.com/rtomayko/tilt) is a dead-simple way to support E