Bump koan-engine dependency

Also eliminates some ns forms that we can do without now.

Closes #71
This commit is contained in:
Colin Jones 2014-05-02 16:37:11 -05:00
parent 711925a043
commit 04b3c4a960
22 changed files with 45 additions and 47 deletions

View File

@ -1,12 +1,10 @@
(defproject clojure-koans "0.5.0-SNAPSHOT" (defproject clojure-koans "0.5.0-SNAPSHOT"
:description "The Clojure koans." :description "The Clojure koans."
:dependencies [[org.clojure/clojure "1.5.1"] :dependencies [[org.clojure/clojure "1.5.1"]
[koan-engine "0.2.1"]] [koan-engine "0.2.2"]]
:dev-dependencies [[lein-koan "0.1.2"]] :dev-dependencies [[lein-koan "0.1.2"]]
:profiles {:dev {:dependencies [[lein-koan "0.1.2"]]}} :profiles {:dev {:dependencies [[lein-koan "0.1.2"]]}}
:repl-options { :repl-options {:init-ns koan-engine.runner
:init-ns koan-engine.runner :init (use 'koan-engine.core)}
:init (use 'koan-engine.core)
}
:plugins [[lein-koan "0.1.2"]] :plugins [[lein-koan "0.1.2"]]
:main koan-engine.runner/exec) :main koan-engine.runner/exec)

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.01-equalities
(ns koans.01-equalities (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"We shall contemplate truth by testing reality, via equality" "We shall contemplate truth by testing reality, via equality"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.02-lists
(ns koans.02-lists (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"Lists can be expressed by function or a quoted form" "Lists can be expressed by function or a quoted form"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.03-vectors
(ns koans.03-vectors (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"You can use vectors in clojure as array-like structures" "You can use vectors in clojure as array-like structures"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.04-sets
(ns koans.04-sets (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"You can create a set by converting another collection" "You can create a set by converting another collection"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.05-maps
(ns koans.05-maps (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"Don't get lost when creating a map" "Don't get lost when creating a map"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.06-functions
(ns koans.06-functions (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defn multiply-by-ten [n] (defn multiply-by-ten [n]
(* 10 n)) (* 10 n))

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.07-conditionals
(ns koans.07-conditionals (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defn explain-defcon-level [exercise-term] (defn explain-defcon-level [exercise-term]
(case exercise-term (case exercise-term

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.08-higher-order-functions
(ns koans.08-higher-order-functions (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"The map function relates a sequence to another" "The map function relates a sequence to another"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.09-runtime-polymorphism
(ns koans.09-runtime-polymorphism (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defn hello (defn hello
([] "Hello World!") ([] "Hello World!")

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.10-lazy-sequences
(ns koans.10-lazy-sequences (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"There are many ways to generate a sequence" "There are many ways to generate a sequence"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.11-sequence-comprehensions
(ns koans.11-sequence-comprehensions (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"Sequence comprehensions can bind each element in turn to a symbol" "Sequence comprehensions can bind each element in turn to a symbol"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.12-creating-functions
(ns koans.12-creating-functions (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defn square [x] (* x x)) (defn square [x] (* x x))

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.13-recursion
(ns koans.13-recursion (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defn is-even? [n] (defn is-even? [n]
(if (= n 0) (if (= n 0)

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.14-destructuring
(ns koans.14-destructuring (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(def test-address (def test-address
{:street-address "123 Test Lane" {:street-address "123 Test Lane"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.15-refs
(ns koans.15-refs (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(def the-world (ref "hello")) (def the-world (ref "hello"))
(def bizarro-world (ref {})) (def bizarro-world (ref {}))

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.16-atoms
(ns koans.16-atoms (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(def atomic-clock (atom 0)) (def atomic-clock (atom 0))

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.17-macros
(ns koans.17-macros (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defmacro hello [x] (defmacro hello [x]
(str "Hello, " x)) (str "Hello, " x))

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.18-datatypes
(ns koans.18-datatypes (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defrecord Nobel [prize]) (defrecord Nobel [prize])
(deftype Pulitzer [prize]) (deftype Pulitzer [prize])

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.19-java-interop
(ns koans.19-java-interop (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"You may have done more with Java than you know" "You may have done more with Java than you know"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.20-partition
(ns koans.20-partition (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(meditations (meditations
"To split a collection you can use the partition function" "To split a collection you can use the partition function"

View File

@ -1,5 +1,5 @@
(ns koan-engine.runner) (ns koans.21-group-by
(ns koans.21-group-by (:use koan-engine.core)) (:require [koan-engine.core :refer :all]))
(defn get-odds-and-evens [coll] (defn get-odds-and-evens [coll]
(let [{odds true evens false} (group-by __ coll)] (let [{odds true evens false} (group-by __ coll)]