From 75bd55462402f1bbf15010345f5f034ce57d2d22 Mon Sep 17 00:00:00 2001 From: bom Date: Fri, 13 May 2022 15:24:04 +0200 Subject: [PATCH] prep for release --- project-cljs.clj | 2 +- src/main/cljs/dda/c4k_common/yaml.cljs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/project-cljs.clj b/project-cljs.clj index 9b01bfa..2237f91 100644 --- a/project-cljs.clj +++ b/project-cljs.clj @@ -1,4 +1,4 @@ -(defproject org.domaindrivenarchitecture/c4k-common-cljs "2.0.2-SNAPSHOT" +(defproject org.domaindrivenarchitecture/c4k-common-cljs "2.0.2" :description "Contains predicates and tools for c4k" :url "https://domaindrivenarchitecture.org" :license {:name "Apache License, Version 2.0" diff --git a/src/main/cljs/dda/c4k_common/yaml.cljs b/src/main/cljs/dda/c4k_common/yaml.cljs index b3f467a..2e313eb 100644 --- a/src/main/cljs/dda/c4k_common/yaml.cljs +++ b/src/main/cljs/dda/c4k_common/yaml.cljs @@ -19,3 +19,8 @@ (keyword (first (st/split resource #"/")))) (defmulti load-resource dispatch-by-resource-name) + +(defmulti load-as-edn dispatch-by-resource-name) + +(defmethod load-as-edn :clj [resource-name] + (from-string (load-resource resource-name)))