Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1 from joshuaeckroth/master
Browse files Browse the repository at this point in the history
Updated for recent stable Lein and Clojure 1.2
  • Loading branch information
technomancy committed Dec 15, 2011
2 parents 45e8e68 + bb97b6a commit 55df451
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -14,7 +14,7 @@ rely on Radagast to tell you if your tests are good!
For now it only works as a Leiningen plugin. Include it as a
dev-dependency in your project.clj:

:dev-dependencies [[radagast "1.0.0"]]
:dev-dependencies [[radagast "1.1.0"]]

Then you can use it:

Expand Down
7 changes: 3 additions & 4 deletions project.clj
@@ -1,5 +1,4 @@
(defproject radagast "1.0.0"
(defproject radagast "1.1.0"
:description "Simplistic test coverage."
:dev-dependencies [[org.clojure/clojure "1.1.0"]
[org.clojure/clojure-contrib "1.1.0"]
[swank-clojure "1.2.1"]])
:dev-dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]])
9 changes: 4 additions & 5 deletions src/leiningen/radagast.clj
Expand Up @@ -3,8 +3,7 @@

(defn radagast [project & nses]
(eval-in-project
project `(do (require '~'radagast.coverage)
(binding [radagast.coverage/*ns-must-match*
~(:radagast/ns-whitelist project)]
(@(ns-resolve '~'radagast.coverage '~'coverage)
~@nses)))))
project `(binding [radagast.coverage/*ns-must-match*
~(:radagast/ns-whitelist project)]
(radagast.coverage/coverage ~@nses))
nil nil '(require 'radagast.coverage)))

0 comments on commit 55df451

Please sign in to comment.