diff --git a/.gitignore b/.gitignore index 4bf0388..f6f6d9b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,12 @@ -.cake pom.xml +pom.xml.asc *.jar *.war +*~ lib classes build ./wakeful docs target -.lein-failures \ No newline at end of file +.lein* \ No newline at end of file diff --git a/project.clj b/project.clj index 48c2675..a184454 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject org.flatland/wakeful "0.5.1" +(defproject org.flatland/wakeful "0.5.2-SNAPSHOT" :url "https://github.com/flatland/wakeful" :license {:name "Eclipse Public License - v 1.0" :url "http://www.eclipse.org/legal/epl-v10.html"} diff --git a/test/sample2/foo.clj b/test/sample2/foo.clj new file mode 100644 index 0000000..ed795d8 --- /dev/null +++ b/test/sample2/foo.clj @@ -0,0 +1,14 @@ +(ns sample2.foo + "This namespace contains a read and write function that expect config as the first arg.") + +(defn bar + "This is the bar read method" + [config request] + {:body + [:bar (:uri request) (:route-params request) config]}) + +(defn bar! + "This is the bar write method" + [config request] + {:body + [:bar! (:uri request) (:body request) (:route-params request) config]})