rename project
This commit is contained in:
parent
457afba989
commit
a80a62c4db
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) 2015 Gered King
|
Copyright (c) 2016 Gered King
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
# clj-webtoolbox
|
# webtools
|
||||||
|
|
||||||
Miscellaneous helper functions and macros for Ring and Compojure.
|
Miscellaneous helper functions and macros for Ring and Compojure.
|
||||||
|
|
||||||
## Leiningen
|
## Leiningen
|
||||||
|
|
||||||
```clojure
|
```clojure
|
||||||
[clj-webtoolbox "0.0.1"]
|
[gered/webtools "0.0.1"]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
@ -14,6 +14,6 @@ TODO
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Copyright © 2014 Gered King
|
Copyright © 2016 Gered King
|
||||||
|
|
||||||
Distributed under the the MIT License. See LICENSE for more details.
|
Distributed under the the MIT License. See LICENSE for more details.
|
|
@ -1,6 +1,6 @@
|
||||||
(defproject clj-webtoolbox "0.0.1"
|
(defproject gered/webtools "0.0.1"
|
||||||
:description "Miscellaneous helper functions and macros for Ring and Compojure."
|
:description "Miscellaneous helper functions and macros for Ring and Compojure."
|
||||||
:url "https://github.com/gered/clj-webtoolbox"
|
:url "https://github.com/gered/webtools"
|
||||||
:license {:name "MIT License"
|
:license {:name "MIT License"
|
||||||
:url "http://opensource.org/licenses/MIT"}
|
:url "http://opensource.org/licenses/MIT"}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(ns clj-webtoolbox.response
|
(ns webtools.response
|
||||||
"Response helpers to compliment those provided by ring.util.response. Some
|
"Response helpers to compliment those provided by ring.util.response. Some
|
||||||
of these are mostly just copies with maybe slight tweaks here and there
|
of these are mostly just copies with maybe slight tweaks here and there
|
||||||
just so that application code need not include both namespaces unless
|
just so that application code need not include both namespaces unless
|
|
@ -1,6 +1,6 @@
|
||||||
(ns clj-webtoolbox.response-helpers
|
(ns webtools.response-helpers
|
||||||
(:require
|
(:require
|
||||||
[clj-webtoolbox.response :as response]))
|
[webtools.response :as response]))
|
||||||
|
|
||||||
(defn- ->response [body status]
|
(defn- ->response [body status]
|
||||||
(-> (response/content (if (nil? body) "" body))
|
(-> (response/content (if (nil? body) "" body))
|
|
@ -1,4 +1,4 @@
|
||||||
(ns clj-webtoolbox.routes.checked
|
(ns webtools.routes.checked
|
||||||
"Functions and macros to assist with writing more declarative Compojure route validations."
|
"Functions and macros to assist with writing more declarative Compojure route validations."
|
||||||
(:require
|
(:require
|
||||||
[clojure.string :as string]
|
[clojure.string :as string]
|
||||||
|
@ -8,9 +8,9 @@
|
||||||
[ring.util.request :refer [body-string]]
|
[ring.util.request :refer [body-string]]
|
||||||
[schema.core :as s]
|
[schema.core :as s]
|
||||||
[cheshire.core :as json]
|
[cheshire.core :as json]
|
||||||
[clj-webtoolbox.response :as response]
|
[webtools.response :as response]
|
||||||
[clj-webtoolbox.routes.core :refer [destructure-route-bindings]]
|
[webtools.routes.core :refer [destructure-route-bindings]]
|
||||||
[clj-webtoolbox.utils :refer [pred-> request?]]))
|
[webtools.utils :refer [pred-> request?]]))
|
||||||
|
|
||||||
(defn has-errors? [request]
|
(defn has-errors? [request]
|
||||||
(seq (:validation-errors request)))
|
(seq (:validation-errors request)))
|
|
@ -1,4 +1,4 @@
|
||||||
(ns clj-webtoolbox.routes.core
|
(ns webtools.routes.core
|
||||||
(:require
|
(:require
|
||||||
compojure.core))
|
compojure.core))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(ns clj-webtoolbox.session
|
(ns webtools.session
|
||||||
"Convenience helper functions for applying session data to Ring response maps."
|
"Convenience helper functions for applying session data to Ring response maps."
|
||||||
(:refer-clojure :exclude [set dissoc assoc assoc-in update-in]))
|
(:refer-clojure :exclude [set dissoc assoc assoc-in update-in]))
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
(ns clj-webtoolbox.utils)
|
(ns webtools.utils)
|
||||||
|
|
||||||
(defmacro pred->
|
(defmacro pred->
|
||||||
"Threads exp through the forms (via ->) as long as (pred exp)
|
"Threads exp through the forms (via ->) as long as (pred exp)
|
Reference in a new issue