Browse files

removed cascalog resources and code.

  • Loading branch information...
1 parent 8a4cdb7 commit 3e7aa12cef445948d76fc1dfb06e2c5c69316710 @sritchie sritchie committed Nov 27, 2011
Showing with 33 additions and 58 deletions.
  1. +27 −3 .gitignore
  2. +3 −9 project.clj
  3. +0 −7 resources/dojo.clj
  4. +0 −7 resources/koans.clj
  5. +1 −1 script/run.clj
  6. +1 −1 script/test.clj
  7. +1 −1 src/koan_engine/runner.clj
  8. +0 −29 src/koans/tuples.clj
View
30 .gitignore
@@ -1,7 +1,31 @@
-bin
-classes
+NOTES
+CHILD
+CHILDMAKER
+NANNY
+_deps
+build
+target
+out
lib
-releases
+pom.xml
+# use glob syntax.
+syntax: glob
+*.ser
+*.class
*.jar
+*~
+*.bak
+*.off
+*.old
.DS_Store
+*.#*
+*#*
+*.classpath
+*.project
+*.settings
+*.pyc
+*.dot
+.cake/
+.lein-failures
.lein-deps-sum
+autodoc/**
View
12 project.clj
@@ -1,13 +1,7 @@
(defproject koan-engine "0.1.0"
:description "Koan Engine for Clojure projects."
- :dependencies [[org.clojure/clojure "1.3.0"]
- [cascalog "1.8.4"]
+ :dependencies [[org.clojure/clojure "1.2.1"]
[fresh "1.0.2"]
[jline "0.9.94" :exclusions [junit]]]
- :dev-dependencies [[org.apache.hadoop/hadoop-core "0.20.2-dev"]
- [swank-clojure "1.4.0-SNAPSHOT"
- :exclusions [org.clojure/clojure]]]
- :main koan-engine.runner
- :koan {:koan-root "src/koans"
- :dojo-resource "dojo.clj"
- :koan-resource "koans.clj"})
+ :dev-dependencies [[swank-clojure "1.4.0-SNAPSHOT"
+ :exclusions [org.clojure/clojure]]])
View
7 resources/dojo.clj
@@ -1,7 +0,0 @@
-(use 'cascalog.api
- '[cascalog.testing :only (test?-)]
- '[cascalog.util :only (defalias)])
-
-(defalias ?= test?-)
-
-
View
7 resources/koans.clj
@@ -1,7 +0,0 @@
-[["tuples" {"__" [[["truth."]]
- [[1]]
- [[1]]
- [[1]]
- [[4]]
- ?x
- ?name ?name]}]]
View
2 script/run.clj
@@ -1,4 +1,4 @@
(load "koan_engine/runner")
(do
(in-ns 'koan-engine.runner)
- (-main "run"))
+ (exec "run"))
View
2 script/test.clj
@@ -1,4 +1,4 @@
(load "koan_engine/runner")
(do
(in-ns 'koan-engine.runner)
- (-main "test"))
+ (exec "test"))
View
2 src/koan_engine/runner.clj
@@ -10,7 +10,7 @@
;; TODO: Run validations on koan-map.
;; Do all resources exist? Does this matter?
-(defn -main [task]
+(defn exec [task]
(u/require-version (u/parse-required-version))
(let [koan-map (merge default-koan-map
(:koan (u/read-project)))]
View
29 src/koans/tuples.clj
@@ -1,29 +0,0 @@
-(def one-tuple [[1]])
-
-(meditations
- "We shall contemplate truth by testing reality, via equality."
- (= __ [["truth."]])
-
- "Queries produce results..."
- (?= __ (<- [?x]
- (one-tuple ?x)))
-
- "All sorts of sequences do the job."
- (?= __ (<- [?x]
- ([[1]] ?x)))
-
- "Lists, anyone?"
- (?= __ (<- [?x]
- ((list [1]) ?x)))
-
- "From whence do these tuples come?"
- (?= [[4]] (<- [?x]
- (__ ?x)))
-
- "Name something well to give it power."
- (?= one-tuple (<- [?x]
- (one-tuple __)))
-
- "The name itself doesn't matter, just that it match."
- (?= one-tuple (<- [__]
- (one-tuple __))))

0 comments on commit 3e7aa12

Please sign in to comment.