Permalink
Browse files

Release 0.1.0

I've used this pretty much unchanged in a couple things, so let's call
it a release.
  • Loading branch information...
1 parent a41b96a commit ae9ab1d0a0a29aa1835924d2e9a40e92faa520a1 @apage43 committed Nov 13, 2012
Showing with 10 additions and 6 deletions.
  1. +7 −2 README.md
  2. +1 −1 project.clj
  3. +2 −3 src/cbdrawer/client.clj
View
9 README.md
@@ -1,6 +1,10 @@
# cbdrawer
-A utility belt of stuff for using [Couchbase Server](http://couchbase.com/) with Clojure.
+A utility belt for using [Couchbase Server](http://couchbase.com/) with Clojure.
+
+```clojure
+[apage43/cbdrawer "0.1.0"]
+```
This is not currently a complete wrapping of all of the client functionality, just the parts I've needed so far.
@@ -12,4 +16,5 @@ This is not currently a complete wrapping of all of the client functionality, ju
* Ops take keyword keys as well as strings
* Includes a cas! function in the style of swap! and friends. `(cas! conn :key-of-some-list conj :newitem)`
-[API docs](http://apage43.github.com/cbdrawer/doc/index.html)
+For all functionality, see the [API docs](http://apage43.github.com/cbdrawer/doc/index.html).
+
View
2 project.clj
@@ -1,4 +1,4 @@
-(defproject apage43/cbdrawer "0.1.0-SNAPSHOT"
+(defproject apage43/cbdrawer "0.1.0"
:description "Couchbase utilities"
:url "http://github.com/apage43/cbdrawer"
:license {:name "Eclipse Public License"
View
5 src/cbdrawer/client.clj
@@ -1,5 +1,5 @@
(ns cbdrawer.client
- (:refer-clojure :exclude [get set!])
+ (:refer-clojure :exclude [get])
(:require [cbdrawer.transcoders :as xcoders])
(:import [com.couchbase.client CouchbaseClient CouchbaseConnectionFactory]
[net.spy.memcached.transcoders Transcoder]
@@ -28,7 +28,7 @@
(defn capi-bases
"Get the Couch-API base URLs from a cluster/bucket."
[^CouchbaseConnectionFactory connectionfactory]
- (vec (.getCouchServers (.getVBucketConfig connectionfactory))))
+ (vec (.. connectionfactory (getVBucketConfig) (getCouchServers))))
(def ^:dynamic ^Transcoder *transcoder* xcoders/clj-transcoder)
@@ -37,7 +37,6 @@
[transcoder]
(alter-var-root #'*transcoder* (fn [_] transcoder)))
-
(defmacro with-transcoder
"Serialize and deserialize items in this block using the specified transcoder.
(with-transcoder my-transcoder exprs)"

0 comments on commit ae9ab1d

Please sign in to comment.