Make :only work with namespaces too.

This commit is contained in:
Anthony Grimes 2013-02-15 16:10:19 -08:00
parent e55d98a993
commit 139b87c599

View file

@ -107,7 +107,11 @@
(symbol))))
ns))
'(fn [m & vars]
(some #(= (str "#'" %) (-> m ::var str)) vars))])
(some #(let [var (str "#'" %)]
(if (some #{\/} var)
(= var (-> m ::var str))
(= % (ns-name (:ns m)))))
vars))])
(defn- convert-to-ns [possible-file]
(if (and (.endsWith possible-file ".clj") (.exists (io/file possible-file)))