From 04b3c4a96069822cb134a76678628ba9c2461470 Mon Sep 17 00:00:00 2001 From: Colin Jones Date: Fri, 2 May 2014 16:37:11 -0500 Subject: [PATCH] Bump koan-engine dependency Also eliminates some ns forms that we can do without now. Closes #71 --- project.clj | 8 +++----- src/koans/01_equalities.clj | 4 ++-- src/koans/02_lists.clj | 4 ++-- src/koans/03_vectors.clj | 4 ++-- src/koans/04_sets.clj | 4 ++-- src/koans/05_maps.clj | 4 ++-- src/koans/06_functions.clj | 4 ++-- src/koans/07_conditionals.clj | 4 ++-- src/koans/08_higher_order_functions.clj | 4 ++-- src/koans/09_runtime_polymorphism.clj | 4 ++-- src/koans/10_lazy_sequences.clj | 4 ++-- src/koans/11_sequence_comprehensions.clj | 4 ++-- src/koans/12_creating_functions.clj | 4 ++-- src/koans/13_recursion.clj | 4 ++-- src/koans/14_destructuring.clj | 4 ++-- src/koans/15_refs.clj | 4 ++-- src/koans/16_atoms.clj | 4 ++-- src/koans/17_macros.clj | 4 ++-- src/koans/18_datatypes.clj | 4 ++-- src/koans/19_java_interop.clj | 4 ++-- src/koans/20_partition.clj | 4 ++-- src/koans/21_group_by.clj | 4 ++-- 22 files changed, 45 insertions(+), 47 deletions(-) diff --git a/project.clj b/project.clj index 02eacd1..2738355 100644 --- a/project.clj +++ b/project.clj @@ -1,12 +1,10 @@ (defproject clojure-koans "0.5.0-SNAPSHOT" :description "The Clojure koans." :dependencies [[org.clojure/clojure "1.5.1"] - [koan-engine "0.2.1"]] + [koan-engine "0.2.2"]] :dev-dependencies [[lein-koan "0.1.2"]] :profiles {:dev {:dependencies [[lein-koan "0.1.2"]]}} - :repl-options { - :init-ns koan-engine.runner - :init (use 'koan-engine.core) - } + :repl-options {:init-ns koan-engine.runner + :init (use 'koan-engine.core)} :plugins [[lein-koan "0.1.2"]] :main koan-engine.runner/exec) diff --git a/src/koans/01_equalities.clj b/src/koans/01_equalities.clj index 4d55376..ed10b7b 100644 --- a/src/koans/01_equalities.clj +++ b/src/koans/01_equalities.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.01-equalities (:use koan-engine.core)) +(ns koans.01-equalities + (:require [koan-engine.core :refer :all])) (meditations "We shall contemplate truth by testing reality, via equality" diff --git a/src/koans/02_lists.clj b/src/koans/02_lists.clj index a573c68..8cdce7f 100644 --- a/src/koans/02_lists.clj +++ b/src/koans/02_lists.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.02-lists (:use koan-engine.core)) +(ns koans.02-lists + (:require [koan-engine.core :refer :all])) (meditations "Lists can be expressed by function or a quoted form" diff --git a/src/koans/03_vectors.clj b/src/koans/03_vectors.clj index 2fc2699..87146d5 100644 --- a/src/koans/03_vectors.clj +++ b/src/koans/03_vectors.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.03-vectors (:use koan-engine.core)) +(ns koans.03-vectors + (:require [koan-engine.core :refer :all])) (meditations "You can use vectors in clojure as array-like structures" diff --git a/src/koans/04_sets.clj b/src/koans/04_sets.clj index ae68d0a..0b5d14e 100644 --- a/src/koans/04_sets.clj +++ b/src/koans/04_sets.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.04-sets (:use koan-engine.core)) +(ns koans.04-sets + (:require [koan-engine.core :refer :all])) (meditations "You can create a set by converting another collection" diff --git a/src/koans/05_maps.clj b/src/koans/05_maps.clj index f787270..25291c0 100644 --- a/src/koans/05_maps.clj +++ b/src/koans/05_maps.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.05-maps (:use koan-engine.core)) +(ns koans.05-maps + (:require [koan-engine.core :refer :all])) (meditations "Don't get lost when creating a map" diff --git a/src/koans/06_functions.clj b/src/koans/06_functions.clj index 515e8a0..fa3e9a1 100644 --- a/src/koans/06_functions.clj +++ b/src/koans/06_functions.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.06-functions (:use koan-engine.core)) +(ns koans.06-functions + (:require [koan-engine.core :refer :all])) (defn multiply-by-ten [n] (* 10 n)) diff --git a/src/koans/07_conditionals.clj b/src/koans/07_conditionals.clj index 4ee44d8..b33efc6 100644 --- a/src/koans/07_conditionals.clj +++ b/src/koans/07_conditionals.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.07-conditionals (:use koan-engine.core)) +(ns koans.07-conditionals + (:require [koan-engine.core :refer :all])) (defn explain-defcon-level [exercise-term] (case exercise-term diff --git a/src/koans/08_higher_order_functions.clj b/src/koans/08_higher_order_functions.clj index 8fe93d7..299022b 100644 --- a/src/koans/08_higher_order_functions.clj +++ b/src/koans/08_higher_order_functions.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.08-higher-order-functions (:use koan-engine.core)) +(ns koans.08-higher-order-functions + (:require [koan-engine.core :refer :all])) (meditations "The map function relates a sequence to another" diff --git a/src/koans/09_runtime_polymorphism.clj b/src/koans/09_runtime_polymorphism.clj index b81ca73..806c8df 100644 --- a/src/koans/09_runtime_polymorphism.clj +++ b/src/koans/09_runtime_polymorphism.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.09-runtime-polymorphism (:use koan-engine.core)) +(ns koans.09-runtime-polymorphism + (:require [koan-engine.core :refer :all])) (defn hello ([] "Hello World!") diff --git a/src/koans/10_lazy_sequences.clj b/src/koans/10_lazy_sequences.clj index f899db3..07c6858 100644 --- a/src/koans/10_lazy_sequences.clj +++ b/src/koans/10_lazy_sequences.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.10-lazy-sequences (:use koan-engine.core)) +(ns koans.10-lazy-sequences + (:require [koan-engine.core :refer :all])) (meditations "There are many ways to generate a sequence" diff --git a/src/koans/11_sequence_comprehensions.clj b/src/koans/11_sequence_comprehensions.clj index 95d42d9..be8462e 100644 --- a/src/koans/11_sequence_comprehensions.clj +++ b/src/koans/11_sequence_comprehensions.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.11-sequence-comprehensions (:use koan-engine.core)) +(ns koans.11-sequence-comprehensions + (:require [koan-engine.core :refer :all])) (meditations "Sequence comprehensions can bind each element in turn to a symbol" diff --git a/src/koans/12_creating_functions.clj b/src/koans/12_creating_functions.clj index 716844b..1ade8ae 100644 --- a/src/koans/12_creating_functions.clj +++ b/src/koans/12_creating_functions.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.12-creating-functions (:use koan-engine.core)) +(ns koans.12-creating-functions + (:require [koan-engine.core :refer :all])) (defn square [x] (* x x)) diff --git a/src/koans/13_recursion.clj b/src/koans/13_recursion.clj index 9f1277f..0bfcf6a 100644 --- a/src/koans/13_recursion.clj +++ b/src/koans/13_recursion.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.13-recursion (:use koan-engine.core)) +(ns koans.13-recursion + (:require [koan-engine.core :refer :all])) (defn is-even? [n] (if (= n 0) diff --git a/src/koans/14_destructuring.clj b/src/koans/14_destructuring.clj index a10b174..42e0940 100644 --- a/src/koans/14_destructuring.clj +++ b/src/koans/14_destructuring.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.14-destructuring (:use koan-engine.core)) +(ns koans.14-destructuring + (:require [koan-engine.core :refer :all])) (def test-address {:street-address "123 Test Lane" diff --git a/src/koans/15_refs.clj b/src/koans/15_refs.clj index e6e0772..ea96e50 100644 --- a/src/koans/15_refs.clj +++ b/src/koans/15_refs.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.15-refs (:use koan-engine.core)) +(ns koans.15-refs + (:require [koan-engine.core :refer :all])) (def the-world (ref "hello")) (def bizarro-world (ref {})) diff --git a/src/koans/16_atoms.clj b/src/koans/16_atoms.clj index 0c252e0..cc782d7 100644 --- a/src/koans/16_atoms.clj +++ b/src/koans/16_atoms.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.16-atoms (:use koan-engine.core)) +(ns koans.16-atoms + (:require [koan-engine.core :refer :all])) (def atomic-clock (atom 0)) diff --git a/src/koans/17_macros.clj b/src/koans/17_macros.clj index 8ea5dbb..d1dfcca 100644 --- a/src/koans/17_macros.clj +++ b/src/koans/17_macros.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.17-macros (:use koan-engine.core)) +(ns koans.17-macros + (:require [koan-engine.core :refer :all])) (defmacro hello [x] (str "Hello, " x)) diff --git a/src/koans/18_datatypes.clj b/src/koans/18_datatypes.clj index a4e1597..0bad914 100644 --- a/src/koans/18_datatypes.clj +++ b/src/koans/18_datatypes.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.18-datatypes (:use koan-engine.core)) +(ns koans.18-datatypes + (:require [koan-engine.core :refer :all])) (defrecord Nobel [prize]) (deftype Pulitzer [prize]) diff --git a/src/koans/19_java_interop.clj b/src/koans/19_java_interop.clj index bf09527..4ebd9d5 100644 --- a/src/koans/19_java_interop.clj +++ b/src/koans/19_java_interop.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.19-java-interop (:use koan-engine.core)) +(ns koans.19-java-interop + (:require [koan-engine.core :refer :all])) (meditations "You may have done more with Java than you know" diff --git a/src/koans/20_partition.clj b/src/koans/20_partition.clj index b0d5cdf..75dfc35 100644 --- a/src/koans/20_partition.clj +++ b/src/koans/20_partition.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.20-partition (:use koan-engine.core)) +(ns koans.20-partition + (:require [koan-engine.core :refer :all])) (meditations "To split a collection you can use the partition function" diff --git a/src/koans/21_group_by.clj b/src/koans/21_group_by.clj index 581dcb1..1e845d5 100644 --- a/src/koans/21_group_by.clj +++ b/src/koans/21_group_by.clj @@ -1,5 +1,5 @@ -(ns koan-engine.runner) -(ns koans.21-group-by (:use koan-engine.core)) +(ns koans.21-group-by + (:require [koan-engine.core :refer :all])) (defn get-odds-and-evens [coll] (let [{odds true evens false} (group-by __ coll)]