Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added MIT license and changelog

  • Loading branch information...
commit 74d7758f701e396e11de84f2b527dfb7bb2786f9 1 parent 7bb6065
Assaf Arkin assaf authored
Showing with 74 additions and 8 deletions.
  1. +26 −0 CHANGELOG.md
  2. +20 −0 MIT-LICENSE
  3. +28 −8 package.json
26 CHANGELOG.md
View
@@ -0,0 +1,26 @@
+## Version 0.2 2011-11-24
+
+This is a complete rewrite based on some ideas I haven't seen anywhere else.
+
+Tell me this is not awesome:
+
+ class User extends Model
+ @collection "users"
+
+ @field "name", String
+
+ @field "password", String
+ @set "password", (clear)->
+ @_.password = crypt(clear)
+
+ @field "email", String
+
+ @get "posts", ->
+ Post.where(author_id: @_id)
+
+
+ me = User.where(name: "Assaf")
+ me.one (error, user)->
+ console.log "Loaded #{user.name}"
+ user.posts.count (error, count)->
+ console.log "Published #{count} posts"
20 MIT-LICENSE
View
@@ -0,0 +1,20 @@
+Copyright (c) 2011 Assaf Arkin, Jerome Gravel-Niquet
+
+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.
36 package.json
View
@@ -1,12 +1,21 @@
{ "name": "poutine",
- "version": "0.1.0",
- "repository": {
- "type": "git",
- "url": "git@github.com:assaf/poutine.git"
- },
+ "description": "MongoDB object document mapper made of unicorns",
+ "version": "0.2.0",
+ "contributors": [
+ "Assaf Arkin <assaf@labnotes.org> (http://labnotes.org/)",
+ "Jerome Gravel-Niquet <jeromegn@gmail.com> (http://jgn.me/)"
+ ],
+ "keywords": [],
"main": "./lib/poutine",
+ "directories": {
+ "doc": "./doc",
+ "lib": "./lib"
+ },
"engines": {
- "node": "~v0.5.10"
+ "node": "~v0.6.0"
+ },
+ "scripts": {
+ "test": "vows --spec"
},
"dependencies": {
"coffee-script": "~1.1.3",
@@ -16,6 +25,17 @@
},
"devDependencies": {
"vows": "~0.5.13"
- }
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/jeromegn/poutine"
+ },
+ "bugs": {
+ "url": "https://github.com/jeromegn/poutine/issues"
+ },
+ "licenses": [
+ { "type": "MIT",
+ "url": "https://github.com/jeromegn/poutine/blob/master/MIT-LICENSE"
+ }
+ ]
}
-
Please sign in to comment.
Something went wrong with that request. Please try again.