Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Release 0.2.3.

  • Loading branch information...
commit 4e630cc47ee0f5154b3274a020248b0339465aab 1 parent 013b92a
@weavejester weavejester authored
View
10 HISTORY.md
@@ -1,3 +1,13 @@
+## 0.2.3 (2010-06-17)
+
+* Code updated to be more Clojure 1.2 compatible
+* Fixed bug in r.m.flash that was wiping out the session
+* Added If-Modified-Since support to r.m.file-info
+* Added ring.util.response/header
+* Added :root key to r.m.session as a shortcut to cookie path attribute
+* Updated ring-devel to use Hiccup instead of clj-html
+* Session cookie attributes can now be set by adding a :session-cookie-attrs key to the response.
+
## 0.2.2 (2010-05-16)
* Introduce middleware for session flash
View
15 README.md
@@ -9,12 +9,12 @@ The `SPEC` file at the root of this distribution for provides a complete descrip
"Hello World" in Ring:
(use 'ring.adapter.jetty)
-
+
(defn app [req]
{:status 200
:headers {"Content-Type" "text/html"}
:body "Hello World from Ring"})
-
+
(run-jetty app {:port 8080})
Adding simple middleware:
@@ -23,9 +23,9 @@ Adding simple middleware:
(fn [req]
(let [orig-resp (app req)]
(assoc orig-resp :body (.toUpperCase (:body orig-resp))))))
-
+
(def upcase-app (wrap-upcase app))
-
+
(run-jetty upcase-app {:port 8080})
## Quick Start
@@ -62,9 +62,10 @@ To see a more sophisticated Ring app, run:
* `ring.middleware.file-info`: Augment response headers with info about File responses.
* `ring.middleware.params`: Parse query and form params.
* `ring.middleware.multipart-params`: Parse multipart params.
-* 'ring.middleware.keyword-params`: Convert string param keys to keywords.
+* `ring.middleware.keyword-params`: Convert string param keys to keywords.
* `ring.middleware.cookies`: Manage browser cookies.
* `ring.middleware.session`: Manage user sessions. Memory and cookie session stores are available by default.
+* `ring.middleware.flash`: Adds flash message support to sessions.
* `ring.util.response`: Generate Ring responses.
### ring-devel
@@ -90,11 +91,11 @@ To see a more sophisticated Ring app, run:
To include one of the above libraries in your Leiningen project, for example `ring-core`, add the following to your `:dependences`:
- [ring/ring-core "0.2.0"]
+ [ring/ring-core "0.2.3"]
To include all of them, add:
- [ring/ring "0.2.0"]
+ [ring/ring "0.2.3"]
## Development
View
12 project.clj
@@ -1,12 +1,12 @@
-(defproject ring "0.2.2"
+(defproject ring "0.2.3"
:description "A Clojure web applications library."
:url "http://github.com/mmcgrana/ring"
:dependencies
- [[ring/ring-core "0.2.2"]
- [ring/ring-devel "0.2.0"]
- [ring/ring-httpcore-adapter "0.2.0"]
- [ring/ring-jetty-adapter "0.2.0"]
- [ring/ring-servlet "0.2.1"]]
+ [[ring/ring-core "0.2.3"]
+ [ring/ring-devel "0.2.3"]
+ [ring/ring-httpcore-adapter "0.2.3"]
+ [ring/ring-jetty-adapter "0.2.3"]
+ [ring/ring-servlet "0.2.3"]]
:dev-dependencies
[[autodoc "0.7.0"]
[lein-clojars "0.5.0"]]
View
2  ring-core/project.clj
@@ -1,4 +1,4 @@
-(defproject ring/ring-core "0.2.2"
+(defproject ring/ring-core "0.2.3"
:description "Ring core libraries."
:url "http://github.com/mmcgrana/ring"
:dependencies [[org.clojure/clojure "1.1.0"]
View
4 ring-devel/project.clj
@@ -1,7 +1,7 @@
-(defproject ring/ring-devel "0.2.0"
+(defproject ring/ring-devel "0.2.3"
:description "Ring development and debugging libraries."
:url "http://github.com/mmcgrana/ring"
- :dependencies [[ring/ring-core "0.2.0"]
+ :dependencies [[ring/ring-core "0.2.3"]
[hiccup "0.2.6"]
[clj-stacktrace "0.1.0"]]
:dev-dependencies [[lein-clojars "0.5.0"]])
View
4 ring-httpcore-adapter/project.clj
@@ -1,7 +1,7 @@
-(defproject ring/ring-httpcore-adapter "0.2.0"
+(defproject ring/ring-httpcore-adapter "0.2.3"
:description "Ring HttpCore adapter."
:url "http://github.com/mmcgrana/ring"
- :dependencies [[ring/ring-core "0.2.0"]
+ :dependencies [[ring/ring-core "0.2.3"]
[org.apache.httpcomponents/httpcore "4.0.1"]
[org.apache.httpcomponents/httpcore-nio "4.0.1"]]
:dev-dependencies [[lein-clojars "0.5.0"]])
View
6 ring-jetty-adapter/project.clj
@@ -1,8 +1,8 @@
-(defproject ring/ring-jetty-adapter "0.2.0"
+(defproject ring/ring-jetty-adapter "0.2.3"
:description "Ring Jetty adapter."
:url "http://github.com/mmcgrana/ring"
- :dependencies [[ring/ring-core "0.2.0"]
- [ring/ring-servlet "0.2.0"]
+ :dependencies [[ring/ring-core "0.2.3"]
+ [ring/ring-servlet "0.2.3"]
[org.mortbay.jetty/jetty "6.1.14"]
[org.mortbay.jetty/jetty-util "6.1.14"]]
:dev-dependencies [[lein-clojars "0.5.0"]])
View
4 ring-servlet/project.clj
@@ -1,6 +1,6 @@
-(defproject ring/ring-servlet "0.2.1"
+(defproject ring/ring-servlet "0.2.3"
:description "Ring servlet utilities."
:url "http://github.com/mmcgrana/ring"
- :dependencies [[ring/ring-core "0.2.1"]
+ :dependencies [[ring/ring-core "0.2.3"]
[javax.servlet/servlet-api "2.5"]]
:dev-dependencies [[lein-clojars "0.5.0"]])
Please sign in to comment.
Something went wrong with that request. Please try again.