From f7a96bd37f0be220cdf128a438b7ba6be19407d1 Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Tue, 18 Jun 2013 13:46:13 +0700 Subject: [PATCH] Housekeeping --- README.md | 2 +- src/clj/taoensso/nippy/tools.clj | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 358eecd..e9c21db 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Current [semantic](http://semver.org/) version: ```clojure -[com.taoensso/nippy "1.2.1"] ; Stable +[com.taoensso/nippy "1.2.1"] ; Stable [com.taoensso/nippy "2.0.0-alpha10"] ; Development (notes below) ``` diff --git a/src/clj/taoensso/nippy/tools.clj b/src/clj/taoensso/nippy/tools.clj index 0087fcc..b362b3b 100644 --- a/src/clj/taoensso/nippy/tools.clj +++ b/src/clj/taoensso/nippy/tools.clj @@ -10,7 +10,7 @@ (defn wrapped-for-freezing? [x] (instance? WrappedForFreezing x)) (defn wrap-for-freezing "Wraps arg (any freezable data type) so that (tools/freeze ) - will freeze the arg using given options." + will serialize the arg using given options." [value & [opts]] (WrappedForFreezing. value opts)) (defn freeze @@ -28,7 +28,10 @@ (defn encrypted-frozen? [x] (instance? EncryptedFrozen x)) (def ^:dynamic *thaw-opts* nil) -(defmacro with-thaw-opts [opts & body] `(binding [*thaw-opts* ~opts] ~@body)) +(defmacro with-thaw-opts + "Evaluates body using given options for any automatic deserialization in + context." + [opts & body] `(binding [*thaw-opts* ~opts] ~@body)) (defn thaw "Like `nippy/thaw` but takes options from *thaw-opts* binding, and wraps