Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add license and update README.

  • Loading branch information...
commit e14a3a3f2f46a757926335cc96b3a2f02db4b120 1 parent 2c3b61b
@duelinmarkers authored
Showing with 29 additions and 4 deletions.
  1. +22 −0 MIT-LICENSE.txt
  2. +7 −4 README.textile
View
22 MIT-LICENSE.txt
@@ -0,0 +1,22 @@
+Copyright (c) 2008 John D. Hume
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
View
11 README.textile
@@ -1,8 +1,8 @@
h1. clj-record
-clj-record is an API inspired by Rails' ActiveRecord but implemented in the "Clojure programming language":http://www.clojure.org/.
+clj-record is an API inspired by Rails' ActiveRecord but implemented in the "Clojure programming language":http://www.clojure.org/ and intended to use its idioms.
-This is a learning exercise and (at least for now) not intended for real-world use, though contributions to harden it are welcome, as are recommendations for how to make it more idiomatically lisp-ey.
+This is a learning exercise and (at least for now) not intended for real-world use. Contributions to harden it are welcome, but I'm even more interested in recommendations for how to make it more idiomatically lisp-ey.
h2. The API
@@ -29,8 +29,7 @@ Then you can do things like this.
<pre><code>
(let [mikey (user/find-record 2)
subs (user/find-subscriptions mikey)]
- (doseq [subscription subs]
- (println (format "%s subscribed to %s" (:name mikey) (:name sub))))
+ (doseq [subscription subs] (println (format "%s subscribed to %s" (:name mikey) (:name sub))))
(user/destroy-subscriptions mikey)
(println "But not any more."))
</code></pre>
@@ -40,3 +39,7 @@ See "core-test.clj":http://github.com/duelinmarkers/clj-record/tree/master/clj_r
h2. The Name...
...is awful. Recommendations are welcome.
+
+---
+
+Copyright 2008 John D. Hume and released under an MIT license.
Please sign in to comment.
Something went wrong with that request. Please try again.