| 1 | = 1.5 |
|---|
| 2 | === 3rd Oct, 2006 |
|---|
| 3 | |
|---|
| 4 | * Camping::Apps stores an array of classes for all loaded apps. |
|---|
| 5 | * bin/camping can be given a directory. Like: <tt>camping examples/</tt> |
|---|
| 6 | * Console mode -- thank zimbatm. Use: camping -C yourapp.rb |
|---|
| 7 | * Call controllers with Camping.method_missing. |
|---|
| 8 | |
|---|
| 9 | Tepee.get(:Index) #=> (Response) |
|---|
| 10 | Blog.post(:Delete, id) #=> (Response) |
|---|
| 11 | |
|---|
| 12 | Blog.post(:Login, :input => {'username' => 'admin', 'password' => 'camping'}) |
|---|
| 13 | #=> #<Blog::Controllers::Login @user=... > |
|---|
| 14 | |
|---|
| 15 | Blog.get(:Info, :env => {:HTTP_HOST => 'wagon'}) |
|---|
| 16 | #=> #<Blog::Controllers::Info @env={'HTTP_HOST'=>'wagon'} ...> |
|---|
| 17 | |
|---|
| 18 | * Using \r\n instead of \n on output. FastCGI has these needs. |
|---|
| 19 | * ActiveRecord no longer required or installed. |
|---|
| 20 | * If you refer to Models::Base, however, ActiveRecord will be loaded with autoload. (see lib/camping/db.rb) |
|---|
| 21 | * new Camping::FastCGI.serve which will serve a whole directory of apps |
|---|
| 22 | (see http://code.whytheluckystiff.net/camping/wiki/TheCampingServer) |
|---|
| 23 | * ~/.campingrc can contain database connection info if you want your default to be something other than SQLite. |
|---|
| 24 | |
|---|
| 25 | database: |
|---|
| 26 | adapter: mysql |
|---|
| 27 | username: camping |
|---|
| 28 | socket: /tmp/mysql.sock |
|---|
| 29 | password: NOFORESTFIRES |
|---|
| 30 | database: camping |
|---|
| 31 | |
|---|
| 32 | * controllers are now *ordered*. uses the inherited hook to keep track of all |
|---|
| 33 | classes created with R. those classes are scanned, in order, when a request is |
|---|
| 34 | made. any other controllers are handled first. so if you plan on overriding the |
|---|
| 35 | urls method, be sure to subclass from R(). |
|---|
| 36 | * Console mode will load .irbrc in the working directory, if present. |
|---|
| 37 | (for example, in my ~/git/balloon directory, i have this in the .irbrc: |
|---|
| 38 | include Balloon::Models |
|---|
| 39 | when camping -C balloon.rb gets run, the models all get included in main.) |
|---|
| 40 | * And, of course, many other bugfixes from myself and the loyal+kind zimbatm... |
|---|
| 41 | * Markaby updated to 0.5. (See its CHANGELOG.) |
|---|
| 42 | |
|---|
| 43 | = 1.4.2 |
|---|
| 44 | === 18th May, 2006 |
|---|
| 45 | |
|---|
| 46 | * Efficient file uploads for multipart/form-data POSTs. |
|---|
| 47 | * Camping tool now uses Mongrel, if available. If not, sticks with WEBrick. |
|---|
| 48 | * Multiple apps can be loaded with the camping tool, each mounted according to their file name. |
|---|
| 49 | |
|---|
| 50 | = 1.4.1 |
|---|
| 51 | === 3rd May, 2006 |
|---|
| 52 | |
|---|
| 53 | * Streaming HTTP support. If body is IO, will simply pass to the controller. Mongrel, in particular, supports this nicely. |
|---|
| 54 | |
|---|
| 55 | = 1.4 |
|---|
| 56 | === 11th April, 2006 |
|---|
| 57 | |
|---|
| 58 | * Moved Camping::Controllers::Base to Camping::Base. |
|---|
| 59 | * Moved Camping::Controllers::R to Camping::R. |
|---|
| 60 | * New session library (lib/camping/session.rb). |
|---|
| 61 | * WEBrick handler (lib/camping/webrick.rb) and Mongrel handler (lib/camping/mongrel.rb). |
|---|
| 62 | * Helpers#URL, builds a complete URL for a route. Returns a URI object. This way relative links could just return self.URL.path. |
|---|
| 63 | * Base#initialize takes over some of Base#service's duties. |
|---|
| 64 | * ENV now available as @env in controllers and views. |
|---|
| 65 | * Beautiful multi-page docs without frames! |
|---|
| 66 | |
|---|
| 67 | = 1.3 |
|---|
| 68 | === 28th January, 2006 |
|---|
| 69 | |
|---|
| 70 | * bin/camping: an application launcher. |
|---|
| 71 | * <tt>Camping.run(request, response)</tt> now changed to <tt>controller = Camping.run(request, env)</tt> |
|---|
| 72 | * This means outputting the response is the wrapper/server's job. See bin/camping, you can do a controller.to_s at the least. |
|---|
| 73 | * <tt>Controllers::Base.env</tt> is the new thread-safe home for <tt>ENV</tt>. |
|---|
| 74 | * The input hash now works more like Rails params. You can call keys |
|---|
| 75 | like methods or with symbols or strings. |
|---|
| 76 | * Queries are now parsed more like PHP/Rails, in that you can denote |
|---|
| 77 | structure with brackets: post[user]=_why;post[id]=2 |
|---|
| 78 | * Auto-prefix table names, to help prevent name clash. |
|---|
| 79 | * Helpers.errors_for simple validation. |
|---|
| 80 | * Lots of empty :href and :action attributes, a bug. |
|---|
| 81 | * New single-page flipbook RDoc template. |
|---|
| 82 | |
|---|
| 83 | = 1.2 |
|---|
| 84 | === 23rd January, 2006 |
|---|
| 85 | |
|---|
| 86 | * Camping.goes allows fresh modules build from all Camping parts. |
|---|
| 87 | * File uploads now supported (multipart/form-data). |
|---|
| 88 | * Helpers.R can rebuild routes. |
|---|
| 89 | * Helpers./ for tracing paths from the root. |
|---|
| 90 | |
|---|
| 91 | = 1.1 |
|---|
| 92 | === 19th January, 2006 |
|---|
| 93 | |
|---|
| 94 | * Allowed request and response streams to be passed in, to allow WEBrick and FastCGI support. |
|---|
| 95 | |
|---|
| 96 | = 1.0 |
|---|
| 97 | === 17th January, 2006 |
|---|
| 98 | |
|---|
| 99 | * Initial checkin, see announcement at http://redhanded.hobix.com/bits/campingAMicroframework.html. |
|---|