Skip to content

Commit

Permalink
Added a slash-joins function.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynes committed Jun 10, 2010
1 parent 549b587 commit 0d8d9ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/clj_github/core.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns clj-github.core
(:use [clojure.contrib.base64 :only [encode-str]]
(:use [clojure.contrib [string :only [join]] [base64 :only [encode-str]]]
[clojure-http.client :only [request add-query-params]]
[org.danlarkin.json :only [decode-from-str]])
(:import java.net.URI))
Expand Down Expand Up @@ -29,5 +29,12 @@
([data sifter] (if-let [result (:error data)] result (sifter data)))
([data] (handle data identity)))

(defn slash-join
"Returns a string of it's arguments separated by forward slashes."
[& args]
(join "/" args))

(defn join-up)

(defmacro with-auth [auth body]
`(binding [*authentication* ~auth] ~body))

0 comments on commit 0d8d9ec

Please sign in to comment.