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