File tree 3 files changed +8
-12
lines changed
3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
- (defproject koan-engine " 0.1.3 "
1
+ (defproject koan-engine " 0.2.0 "
2
2
:description " Koan Engine for Clojure projects."
3
- :dependencies [[org.clojure/clojure " 1.2.1 " ]
3
+ :dependencies [[org.clojure/clojure " 1.4.0 " ]
4
4
[fresh " 1.0.2" ]
5
5
[jline " 0.9.94" :exclusions [junit]]])
Original file line number Diff line number Diff line change 24
24
(defn tests-pass? [dojo-path file-path]
25
25
(u/with-dojo [dojo-path]
26
26
(print " Considering" (str file-path " ..." ))
27
+ (println )
27
28
(flush )
28
29
(try (load-file file-path)
29
- (do (println ) true )
30
- (catch Exception e
31
- (println )
32
- (let [actual-error (or (.getCause e) e)
33
- message (or (.getMessage actual-error)
34
- (.toString actual-error))
35
- ; TODO: use ex-info or something to clean this up, once we're
36
- ; upgraded to clojure 1.4+
30
+ true
31
+ (catch Throwable e
32
+ (let [message (or (.getMessage e) (.toString e))
33
+ ; TODO: use ex-info or something to clean this up
37
34
line (when-let [groups (first (re-seq #"^\[ LINE (\d +)\] "
38
35
message))]
39
36
(last groups))]
Original file line number Diff line number Diff line change 37
37
(catch Throwable e#
38
38
(throw (Exception. (str ~(when-let [line (:line (meta x))]
39
39
(str " [LINE " line " ] " ))
40
- '~message " \n " '~x)
41
- e#))))))
40
+ '~message " \n " '~x)))))))
42
41
43
42
(defn read-project []
44
43
(let [rdr (clojure.lang.LineNumberingPushbackReader.
You can’t perform that action at this time.
0 commit comments