0.1.1-SNAPSHOT

This commit is contained in:
Tommi Reiman 2018-03-17 14:32:51 +02:00
parent 9a2a8a1f16
commit b57d900507
13 changed files with 30 additions and 31 deletions

View file

@ -27,17 +27,17 @@ See the [full documentation](https://metosin.github.io/reitit/) for details.
All bundled: All bundled:
```clj ```clj
[metosin/reitit "0.1.0"] [metosin/reitit "0.1.1-SNAPSHOT"]
``` ```
Optionally, the parts can be required separately: Optionally, the parts can be required separately:
```clj ```clj
[metosin/reitit-core "0.1.0"] ; routing core [metosin/reitit-core "0.1.1-SNAPSHOT"] ; routing core
[metosin/reitit-ring "0.1.0"] ; ring-router [metosin/reitit-ring "0.1.1-SNAPSHOT"] ; ring-router
[metosin/reitit-spec "0.1.0"] ; spec coercion [metosin/reitit-spec "0.1.1-SNAPSHOT"] ; spec coercion
[metosin/reitit-schema "0.1.0"] ; schema coercion [metosin/reitit-schema "0.1.1-SNAPSHOT"] ; schema coercion
[metosin/reitit-swagger "0.1.0"] ; swagger docs [metosin/reitit-swagger "0.1.1-SNAPSHOT"] ; swagger docs
``` ```
## Quick start ## Quick start

View file

@ -19,17 +19,17 @@ The following higher-level routers are also available as separate modules:
To use Reitit, add the following dependecy to your project: To use Reitit, add the following dependecy to your project:
```clj ```clj
[metosin/reitit "0.1.0"] [metosin/reitit "0.1.1-SNAPSHOT"]
``` ```
Optionally, the parts can be required separately: Optionally, the parts can be required separately:
```clj ```clj
[metosin/reitit-core "0.1.0"] ; routing core [metosin/reitit-core "0.1.1-SNAPSHOT"] ; routing core
[metosin/reitit-ring "0.1.0"] ; ring-router [metosin/reitit-ring "0.1.1-SNAPSHOT"] ; ring-router
[metosin/reitit-spec "0.1.0"] ; spec coercion [metosin/reitit-spec "0.1.1-SNAPSHOT"] ; spec coercion
[metosin/reitit-schema "0.1.0"] ; schema coercion [metosin/reitit-schema "0.1.1-SNAPSHOT"] ; schema coercion
[metosin/reitit-swagger "0.1.0"] ; swagger docs [metosin/reitit-swagger "0.1.1-SNAPSHOT"] ; swagger docs
``` ```
For discussions, there is a [#reitit](https://clojurians.slack.com/messages/reitit/) channel in [Clojurians slack](http://clojurians.net/). For discussions, there is a [#reitit](https://clojurians.slack.com/messages/reitit/) channel in [Clojurians slack](http://clojurians.net/).

View file

@ -3,7 +3,7 @@
[Ring](https://github.com/ring-clojure/ring) is a Clojure web applications library inspired by Python's WSGI and Ruby's Rack. By abstracting the details of HTTP into a simple, unified API, Ring allows web applications to be constructed of modular components that can be shared among a variety of applications, web servers, and web frameworks. [Ring](https://github.com/ring-clojure/ring) is a Clojure web applications library inspired by Python's WSGI and Ruby's Rack. By abstracting the details of HTTP into a simple, unified API, Ring allows web applications to be constructed of modular components that can be shared among a variety of applications, web servers, and web frameworks.
```clj ```clj
[metosin/reitit-ring "0.1.0-SNAPSHOT"] [metosin/reitit-ring "0.1.1-SNAPSHOT"]
``` ```
Ring-router adds support for [handlers](https://github.com/ring-clojure/ring/wiki/Concepts#handlers), [middleware](https://github.com/ring-clojure/ring/wiki/Concepts#middleware) and routing based on `:request-method`. Ring-router is created with `reitit.ring/router` function. It uses a custom route compiler, creating a optimized data structure for handling route matches, with compiled middleware chain & handlers for all request methods. It also ensures that all routes have a `:handler` defined. `reitit.ring/ring-handler` is used to create a Ring handler out of ring-router. Ring-router adds support for [handlers](https://github.com/ring-clojure/ring/wiki/Concepts#handlers), [middleware](https://github.com/ring-clojure/ring/wiki/Concepts#middleware) and routing based on `:request-method`. Ring-router is created with `reitit.ring/router` function. It uses a custom route compiler, creating a optimized data structure for handling route matches, with compiled middleware chain & handlers for all request methods. It also ensures that all routes have a `:handler` defined. `reitit.ring/ring-handler` is used to create a Ring handler out of ring-router.

View file

@ -3,4 +3,4 @@
:dependencies [[org.clojure/clojure "1.9.0"] :dependencies [[org.clojure/clojure "1.9.0"]
[ring "1.6.3"] [ring "1.6.3"]
[metosin/muuntaja "0.4.1"] [metosin/muuntaja "0.4.1"]
[metosin/reitit "0.1.0"]]) [metosin/reitit "0.1.1-SNAPSHOT"]])

View file

@ -3,4 +3,4 @@
:dependencies [[org.clojure/clojure "1.9.0"] :dependencies [[org.clojure/clojure "1.9.0"]
[ring "1.6.3"] [ring "1.6.3"]
[metosin/muuntaja "0.4.1"] [metosin/muuntaja "0.4.1"]
[metosin/reitit "0.1.0"]]) [metosin/reitit "0.1.1-SNAPSHOT"]])

View file

@ -1,4 +1,4 @@
(defproject metosin/reitit-core "0.1.0" (defproject metosin/reitit-core "0.1.1-SNAPSHOT"
:description "Snappy data-driven router for Clojure(Script)" :description "Snappy data-driven router for Clojure(Script)"
:url "https://github.com/metosin/reitit" :url "https://github.com/metosin/reitit"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"

View file

@ -1,4 +1,4 @@
(defproject metosin/reitit-ring "0.1.0" (defproject metosin/reitit-ring "0.1.1-SNAPSHOT"
:description "Reitit: Ring routing" :description "Reitit: Ring routing"
:url "https://github.com/metosin/reitit" :url "https://github.com/metosin/reitit"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"

View file

@ -1,4 +1,4 @@
(defproject metosin/reitit-schema "0.1.0" (defproject metosin/reitit-schema "0.1.1-SNAPSHOT"
:description "Reitit: Plumatic Schema coercion" :description "Reitit: Plumatic Schema coercion"
:url "https://github.com/metosin/reitit" :url "https://github.com/metosin/reitit"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"

View file

@ -1,4 +1,4 @@
(defproject metosin/reitit-spec "0.1.0" (defproject metosin/reitit-spec "0.1.1-SNAPSHOT"
:description "Reitit: clojure.spec coercion" :description "Reitit: clojure.spec coercion"
:url "https://github.com/metosin/reitit" :url "https://github.com/metosin/reitit"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"

View file

@ -1,4 +1,4 @@
(defproject metosin/reitit-swagger "0.1.0-SNAPSHOT" (defproject metosin/reitit-swagger "0.1.1-SNAPSHOT"
:description "Reitit: Swagger-support" :description "Reitit: Swagger-support"
:url "https://github.com/metosin/reitit" :url "https://github.com/metosin/reitit"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"

View file

@ -1,4 +1,4 @@
(defproject metosin/reitit "0.1.0" (defproject metosin/reitit "0.1.1-SNAPSHOT"
:description "Snappy data-driven router for Clojure(Script)" :description "Snappy data-driven router for Clojure(Script)"
:url "https://github.com/metosin/reitit" :url "https://github.com/metosin/reitit"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"

View file

@ -1,4 +1,4 @@
(defproject metosin/reitit-parent "0.1.0" (defproject metosin/reitit-parent "0.1.1-SNAPSHOT"
:description "Snappy data-driven router for Clojure(Script)" :description "Snappy data-driven router for Clojure(Script)"
:url "https://github.com/metosin/reitit" :url "https://github.com/metosin/reitit"
:license {:name "Eclipse Public License" :license {:name "Eclipse Public License"
@ -9,12 +9,12 @@
:source-uri "https://github.com/metosin/reitit/{version}/{filepath}#L{line}" :source-uri "https://github.com/metosin/reitit/{version}/{filepath}#L{line}"
:metadata {:doc/format :markdown}} :metadata {:doc/format :markdown}}
:managed-dependencies [[metosin/reitit "0.1.0"] :managed-dependencies [[metosin/reitit "0.1.1-SNAPSHOT"]
[metosin/reitit-core "0.1.0"] [metosin/reitit-core "0.1.1-SNAPSHOT"]
[metosin/reitit-ring "0.1.0"] [metosin/reitit-ring "0.1.1-SNAPSHOT"]
[metosin/reitit-spec "0.1.0"] [metosin/reitit-spec "0.1.1-SNAPSHOT"]
[metosin/reitit-schema "0.1.0"] [metosin/reitit-schema "0.1.1-SNAPSHOT"]
[metosin/reitit-swagger "0.1.0-SNAPSHOT"] [metosin/reitit-swagger "0.1.1-SNAPSHOT"]
[meta-merge "1.0.0"] [meta-merge "1.0.0"]
[metosin/spec-tools "0.6.1"] [metosin/spec-tools "0.6.1"]

View file

@ -1,9 +1,8 @@
#!/bin/sh #!/bin/zsh
ext="sedbak$$" ext="sedbak$$"
find . -name project.clj -exec sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" '{}' \; find . -name project.clj -exec sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" '{}' \;
find . -name project.clj -exec sed -i.$ext "s/defproject metosin\/reitit\(.*\) \".*\"/defproject metosin\/reitit\1 \"$1\"/g" '{}' \; find . -name project.clj -exec sed -i.$ext "s/defproject metosin\/reitit\(.*\) \".*\"/defproject metosin\/reitit\1 \"$1\"/g" '{}' \;
sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" doc/*.md sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" **/*.md
sed -i.$ext "s/\[metosin\/reitit\(.*\) \".*\"\]/[metosin\/reitit\1 \"$1\"\]/g" *.md
find . -name "*.$ext" -exec rm '{}' \; find . -name "*.$ext" -exec rm '{}' \;