From 6921ca99e4b3f5ba092a48eecab5b860ae47127a Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Fri, 20 Jul 2018 14:07:33 +0100 Subject: [PATCH 1/3] Added *warn* --- src/adl_support/core.clj | 8 ++++++++ src/adl_support/utils.clj | 4 +--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/adl_support/core.clj b/src/adl_support/core.clj index ccfee77..328ff6c 100644 --- a/src/adl_support/core.clj +++ b/src/adl_support/core.clj @@ -18,6 +18,14 @@ ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(def ^:dynamic *warn* + "The idea here is to have a function with which to show warnings to the user, + which can be dynamically bound. Any binding should be a function of one + argument, which it should print, log, or otherwise display." + (fn [s] (println s))) + + (defn query-string-to-map "A `query-string` - the query-part of a URL - comprises generally `=&=...`; reduce such a string to a map. diff --git a/src/adl_support/utils.clj b/src/adl_support/utils.clj index 91cec89..191961d 100644 --- a/src/adl_support/utils.clj +++ b/src/adl_support/utils.clj @@ -3,9 +3,7 @@ adl-support.utils (:require [clojure.math.numeric-tower :refer [expt]] [clojure.pprint :as p] - [clojure.string :as s] - [clojure.tools.logging :as log] - [clojure.xml :as x])) + [clojure.string :as s])) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;; From 90a46ab32d12da0ee023e9e725711e7604e9d97d Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Fri, 20 Jul 2018 15:39:44 +0100 Subject: [PATCH 2/3] Really just messing around I know I'll have version control hell when I merge this back to Fletcher... But it now supports the leiningen plugin. --- LICENSE.md | 8 ++++---- project.clj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index e1c3eab..d87eac8 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,7 +1,7 @@ -The MIT License (MIT) +# The MIT License (MIT) -Copyright (c) 2018 +## Copyright (c) Simon Brooke 2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -13,10 +13,10 @@ furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE.** diff --git a/project.clj b/project.clj index c0e28ce..7b3b8cd 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject adl-support "0.1.0" +(defproject adl-support "0.1.1-SNAPSHOT" :description "A small library of functions called by generated ADL code." :url "http://example.com/FIXME" :license {:name "MIT License" From 938e36eabba2bd5112af300789aa56a2e5694b4d Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Fri, 20 Jul 2018 17:34:08 +0100 Subject: [PATCH 3/3] Updated CHANGELOG to remove boilerplate --- CHANGELOG.md | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94f2b99..c469dda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,23 +2,10 @@ All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/). ## [Unreleased] -### Changed -- Add a new arity to `make-widget-async` to provide a different widget shape. - -## [0.1.1] - 2018-06-17 -### Changed -- Documentation on how to make the widgets. - -### Removed -- `make-widget-sync` - we're all async, all the time. - -### Fixed -- Fixed widget maker to keep working when daylight savings switches over. ## 0.1.0 - 2018-06-17 ### Added -- Files from the new template. -- Widget maker public API - `make-widget-sync`. +Initial release. [Unreleased]: https://github.com/your-name/adl-support/compare/0.1.1...HEAD [0.1.1]: https://github.com/your-name/adl-support/compare/0.1.0...0.1.1