Skip to content

Commit 39a3731

Browse files
committed
Updated documentation for release.
1 parent c48d999 commit 39a3731

2 files changed

Lines changed: 28 additions & 11 deletions

File tree

doc/us/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ <h2>Overview</h2>
7878
<h2>History</h2>
7979

8080
<ul>
81+
<li><p>Version 2.2.4 (22/Jul/2015)</p>
82+
<ul>
83+
<li>Fixed a cursor leak when using Postgres and inserting.</li>
84+
<li>NOT 5.2 compliant</li>
85+
</ul></li>
8186
<li><p>Version 2.2.3 (16/Jul/2015)</p>
8287
<ul>
8388
<li>Fixed model:save() when using Postgres. The 'id' was being set to "NULL" and that violates the primary key constraint.</li>

doc/us/index.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ a Xavante instance for development.
1010

1111
## History
1212

13+
* Version 2.2.4 (22/Jul/2015)
14+
* Fixed a cursor leak when using Postgres and inserting.
15+
* NOT 5.2 compliant
16+
17+
* Version 2.2.3 (16/Jul/2015)
18+
* Fixed model:save() when using Postgres. The 'id' was being set to "NULL" and that violates the primary key constraint.
19+
* NOT 5.2 compliant
20+
21+
* Version 2.2.2 (10/Sep/2014)
22+
* Added the ability to specify the offset in a model. This is useful for implimenting pagination.
23+
* NOT 5.2 compliant
24+
1325
* Version 2.2.1 (12/Jan/2014)
1426
* bugfix release for Lua 5.1
1527
* NOT 5.2 compliant
@@ -61,7 +73,7 @@ Ignacio Burgueño for finding the bug)
6173

6274
## Download and Installation
6375

64-
The easiest way to download and install Orbit is via [LuaRocks](http://luarocks.org). You
76+
The easiest way to download and install Orbit is via [LuaRocks](http://luarocks.org). You
6577
can install Orbit with a simple `luarocks install orbit`. Go to the path where LuaRocks
6678
put Orbit to see the sample apps and this documentation. LuaRocks will automatically fetch
6779
and install any dependencies you don't already have.
@@ -131,13 +143,13 @@ Below is a very simple Orbit application:
131143
function render_hello()
132144
return p.hello"Hello World!"
133145
end
134-
146+
135147
function render_index()
136148
return render_layout(render_hello())
137149
end
138150

139151
function render_say(web, name)
140-
return render_layout(render_hello() ..
152+
return render_layout(render_hello() ..
141153
p.hello((web.input.greeting or "Hello ") .. name .. "!"))
142154
end
143155

@@ -151,18 +163,18 @@ the first is to run `wsapi` in the same directory that you saved the file and po
151163
or run `orbit hello.lua` in the same directory that you saved the file and point your browser to `http://localhost:8080/`. Now try
152164
appending `index`, `say/foo`, and `say/foo?message=bar` to the URL.
153165

154-
The example uses Orbit's built-in html generation, but you are free to use any method of generating HTML.
166+
The example uses Orbit's built-in html generation, but you are free to use any method of generating HTML.
155167
One of Orbit's sample applications uses the [Cosmo](http://cosmo.luaforge.net) template library, for instance.
156168

157169
## OR Mapping
158170

159-
Orbit also includes a basic OR mapper that currently only works with
171+
Orbit also includes a basic OR mapper that currently only works with
160172
[LuaSQL's](http://github.com/keplerproject/luasql) SQLite3 and MySQL drivers. The mapper provides
161173
dynamic find methods, a la Rails' ActiveRecord (find\_by\_field1\_and\_field2{val1, val2}),
162-
as well as templates for conditions (find_by("field1 = ? or field1 = ?", { val1, val2 })).
174+
as well as templates for conditions (find_by("field1 = ? or field1 = ?", { val1, val2 })).
163175
The sample applications use this mapper.
164176

165-
A nice side-effect of the Orbit application model is that we get an "application console"
177+
A nice side-effect of the Orbit application model is that we get an "application console"
166178
for free. For example, with the blog example we can add a new post like this:
167179

168180
<pre>
@@ -174,8 +186,8 @@ for free. For example, with the blog example we can add a new post like this:
174186
> p:save()
175187
</pre>
176188

177-
You can also update or delete any of the model items right from your console, just fetch
178-
them from the database, change what you want and call `save()`
189+
You can also update or delete any of the model items right from your console, just fetch
190+
them from the database, change what you want and call `save()`
179191
(or `delete()` if you want to remove it).
180192

181193
## Credits
@@ -188,5 +200,5 @@ and is maintained by Fabio Mascarenhas.
188200
For more information please [contact us](mailto:info-NO-SPAM-THANKS@keplerproject.org).
189201
Comments are welcome!
190202

191-
You can also reach us and other developers and users on the Kepler Project
192-
[mailing list](https://groups.google.com/forum/#!forum/kepler-project).
203+
You can also reach us and other developers and users on the Kepler Project
204+
[mailing list](https://groups.google.com/forum/#!forum/kepler-project).

0 commit comments

Comments
 (0)