Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use useful.config instead of clj-config (one less dependency).

  • Loading branch information...
commit 9da4a90e7481a743ff43beab89a8260513637fd3 1 parent 7dceac7
@Raynes Raynes authored
View
3  project.clj
@@ -8,12 +8,11 @@
[congomongo "0.1.9"]
[org.jasypt/jasypt "1.7"]
[cheshire "4.0.0"]
- [useful "0.8.3-alpha3"]
+ [useful "0.8.3-alpha4"]
[amalloy/ring-gzip-middleware "0.1.2"]
[amalloy/mongo-session "0.0.2"]
[innuendo "0.1.4"]
[ring "1.1.1"]
- [clj-config "0.1.0"]
[incanter/incanter-core "1.3.0"]
[incanter/incanter-charts "1.3.0"]
[commons-lang "2.6"]
View
0  config.clj → resources/config.clj
File renamed without changes
View
8 src/foreclojure/config.clj
@@ -1,10 +1,8 @@
(ns foreclojure.config
- (:use [clojure.java.io :only [file]]
- [clj-config.core :only [safely read-config]]))
+ (:require [clojure.java.io :refer [file]]
+ [useful.config :refer [load-config]]))
-(def config-file (file (System/getProperty "user.dir") "config.clj"))
-
-(def config (safely read-config config-file))
+(def config (load-config "config.clj"))
;; Defs both for convenience and compile-time verification of simple settings
(def repo-url (or (:repo-url config)
Please sign in to comment.
Something went wrong with that request. Please try again.