From a80a62c4db5f611101cbc4566b1e9e56d8b15def Mon Sep 17 00:00:00 2001 From: gered Date: Sat, 30 Apr 2016 14:27:37 -0400 Subject: [PATCH] rename project --- LICENSE | 2 +- README.md | 8 ++++---- project.clj | 4 ++-- src/{clj_webtoolbox => webutils}/response.clj | 2 +- src/{clj_webtoolbox => webutils}/response_helpers.clj | 4 ++-- src/{clj_webtoolbox => webutils}/routes/checked.clj | 8 ++++---- src/{clj_webtoolbox => webutils}/routes/core.clj | 2 +- src/{clj_webtoolbox => webutils}/session.clj | 2 +- src/{clj_webtoolbox => webutils}/utils.clj | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) rename src/{clj_webtoolbox => webutils}/response.clj (98%) rename src/{clj_webtoolbox => webutils}/response_helpers.clj (89%) rename src/{clj_webtoolbox => webutils}/routes/checked.clj (97%) rename src/{clj_webtoolbox => webutils}/routes/core.clj (98%) rename src/{clj_webtoolbox => webutils}/session.clj (98%) rename src/{clj_webtoolbox => webutils}/utils.clj (94%) diff --git a/LICENSE b/LICENSE index 19e1c4c..0781dfc 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ 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 of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 910ab1c..4ddeddd 100644 --- a/README.md +++ b/README.md @@ -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 ```clojure -[clj-webtoolbox "0.0.1"] +[gered/webtools "0.0.1"] ``` ## Usage @@ -14,6 +14,6 @@ TODO ## License -Copyright © 2014 Gered King +Copyright © 2016 Gered King Distributed under the the MIT License. See LICENSE for more details. \ No newline at end of file diff --git a/project.clj b/project.clj index 3559f6e..3953a5d 100644 --- a/project.clj +++ b/project.clj @@ -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." - :url "https://github.com/gered/clj-webtoolbox" + :url "https://github.com/gered/webtools" :license {:name "MIT License" :url "http://opensource.org/licenses/MIT"} diff --git a/src/clj_webtoolbox/response.clj b/src/webutils/response.clj similarity index 98% rename from src/clj_webtoolbox/response.clj rename to src/webutils/response.clj index c800874..10d2f6c 100644 --- a/src/clj_webtoolbox/response.clj +++ b/src/webutils/response.clj @@ -1,4 +1,4 @@ -(ns clj-webtoolbox.response +(ns webtools.response "Response helpers to compliment those provided by ring.util.response. Some of these are mostly just copies with maybe slight tweaks here and there just so that application code need not include both namespaces unless diff --git a/src/clj_webtoolbox/response_helpers.clj b/src/webutils/response_helpers.clj similarity index 89% rename from src/clj_webtoolbox/response_helpers.clj rename to src/webutils/response_helpers.clj index a55364a..aa8ac83 100644 --- a/src/clj_webtoolbox/response_helpers.clj +++ b/src/webutils/response_helpers.clj @@ -1,6 +1,6 @@ -(ns clj-webtoolbox.response-helpers +(ns webtools.response-helpers (:require - [clj-webtoolbox.response :as response])) + [webtools.response :as response])) (defn- ->response [body status] (-> (response/content (if (nil? body) "" body)) diff --git a/src/clj_webtoolbox/routes/checked.clj b/src/webutils/routes/checked.clj similarity index 97% rename from src/clj_webtoolbox/routes/checked.clj rename to src/webutils/routes/checked.clj index 9647698..083bda4 100644 --- a/src/clj_webtoolbox/routes/checked.clj +++ b/src/webutils/routes/checked.clj @@ -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." (:require [clojure.string :as string] @@ -8,9 +8,9 @@ [ring.util.request :refer [body-string]] [schema.core :as s] [cheshire.core :as json] - [clj-webtoolbox.response :as response] - [clj-webtoolbox.routes.core :refer [destructure-route-bindings]] - [clj-webtoolbox.utils :refer [pred-> request?]])) + [webtools.response :as response] + [webtools.routes.core :refer [destructure-route-bindings]] + [webtools.utils :refer [pred-> request?]])) (defn has-errors? [request] (seq (:validation-errors request))) diff --git a/src/clj_webtoolbox/routes/core.clj b/src/webutils/routes/core.clj similarity index 98% rename from src/clj_webtoolbox/routes/core.clj rename to src/webutils/routes/core.clj index 11b62f0..64cae97 100644 --- a/src/clj_webtoolbox/routes/core.clj +++ b/src/webutils/routes/core.clj @@ -1,4 +1,4 @@ -(ns clj-webtoolbox.routes.core +(ns webtools.routes.core (:require compojure.core)) diff --git a/src/clj_webtoolbox/session.clj b/src/webutils/session.clj similarity index 98% rename from src/clj_webtoolbox/session.clj rename to src/webutils/session.clj index 0fb7196..7ecc513 100644 --- a/src/clj_webtoolbox/session.clj +++ b/src/webutils/session.clj @@ -1,4 +1,4 @@ -(ns clj-webtoolbox.session +(ns webtools.session "Convenience helper functions for applying session data to Ring response maps." (:refer-clojure :exclude [set dissoc assoc assoc-in update-in])) diff --git a/src/clj_webtoolbox/utils.clj b/src/webutils/utils.clj similarity index 94% rename from src/clj_webtoolbox/utils.clj rename to src/webutils/utils.clj index 52a8ad6..1f3019c 100644 --- a/src/clj_webtoolbox/utils.clj +++ b/src/webutils/utils.clj @@ -1,4 +1,4 @@ -(ns clj-webtoolbox.utils) +(ns webtools.utils) (defmacro pred-> "Threads exp through the forms (via ->) as long as (pred exp)