Skip to content

Commit

Permalink
made OPEN, added LevelUP contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed May 4, 2013
1 parent 8d69bcb commit c7f1061
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 7 deletions.
27 changes: 27 additions & 0 deletions CONTRIBUTING.md
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,27 @@
# LevelUP is an OPEN Open Source Project

-----------------------------------------

## What?

Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

## Rules

There are a few basic ground-rules for contributors:

1. **No `--force` pushes** or modifying the Git history in any way.
1. **Non-master branches** ought to be used for ongoing work.
1. **External API changes and significant modifications** ought to be subject to an **internal pull-request** to solicit feedback from other contributors.
1. Internal pull-requests to solicit feedback are *encouraged* for any other non-trivial contribution but left to the discretion of the contributor.
1. Contributors should attempt to adhere to the prevailing code-style.

## Releases

Declaring formal releases remains the prerogative of the project maintainer.

## Changes to this arrangement

This is an experiment and feedback is welcome! This document may also be subject to pull-requests or changes by contributors where you believe you have something valuable to add or change.

-----------------------------------------
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2013, Rod Vagg (the "Original Author") Copyright 2012, Rod Vagg (the "Original Author")
All rights reserved. All rights reserved.


MIT +no-false-attribs License MIT +no-false-attribs License
Expand Down
42 changes: 37 additions & 5 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ FakeLevelDOWN.prototype._open = function (options, callback) {
} }


FakeLevelDOWN.prototype._put = function (key, value, options, callback) { FakeLevelDOWN.prototype._put = function (key, value, options, callback) {
key = '$' + key // safety, to avoid key='__proto__'-type skullduggery key = '_' + key // safety, to avoid key='__proto__'-type skullduggery
this._store[key] = value this._store[key] = value
process.nextTick(callback) process.nextTick(callback)
} }


FakeLevelDOWN.prototype._get = function (key, options, callback) { FakeLevelDOWN.prototype._get = function (key, options, callback) {
var value = this._store['$' + key] var value = this._store['_' + key]
if (value === undefined) { if (value === undefined) {
// 'NotFound' error, consistent with LevelDOWN API // 'NotFound' error, consistent with LevelDOWN API
return process.nextTick(function () { callback(new Error('NotFound')) }) return process.nextTick(function () { callback(new Error('NotFound')) })
Expand All @@ -53,7 +53,7 @@ FakeLevelDOWN.prototype._get = function (key, options, callback) {
} }


FakeLevelDOWN.prototype._del = function (key, options, callback) { FakeLevelDOWN.prototype._del = function (key, options, callback) {
delete this._store['$' + key] delete this._store['_' + key]
process.nextTick(callback) process.nextTick(callback)
} }


Expand Down Expand Up @@ -105,6 +105,38 @@ Provided with the current instance of `AbstractLevelDOWN` by default.
### AbstractIterator#_next(callback) ### AbstractIterator#_next(callback)
### AbstractIterator#_end(callback) ### AbstractIterator#_end(callback)


## Licence <a name="contributing"></a>
Contributing
------------


Abstract LevelDOWN is Copyright (c) 2013 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details. Abstract LevelDOWN is an **OPEN Open Source Project**. This means that:

> Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.
See the [CONTRIBUTING.md](https://github.com/rvagg/node-levelup/blob/master/CONTRIBUTING.md) file for more details.

### Contributors

Abstract LevelDOWN is only possible due to the excellent work of the following contributors:

<table><tbody>
<tr><th align="left">Rod Vagg</th><td><a href="https://github.com/rvagg">GitHub/rvagg</a></td><td><a href="http://twitter.com/rvagg">Twitter/@rvagg</a></td></tr>
<tr><th align="left">John Chesley</th><td><a href="https://github.com/chesles/">GitHub/chesles</a></td><td><a href="http://twitter.com/chesles">Twitter/@chesles</a></td></tr>
<tr><th align="left">Jake Verbaten</th><td><a href="https://github.com/raynos">GitHub/raynos</a></td><td><a href="http://twitter.com/raynos2">Twitter/@raynos2</a></td></tr>
<tr><th align="left">Dominic Tarr</th><td><a href="https://github.com/dominictarr">GitHub/dominictarr</a></td><td><a href="http://twitter.com/dominictarr">Twitter/@dominictarr</a></td></tr>
<tr><th align="left">Max Ogden</th><td><a href="https://github.com/maxogden">GitHub/maxogden</a></td><td><a href="http://twitter.com/maxogden">Twitter/@maxogden</a></td></tr>
<tr><th align="left">Lars-Magnus Skog</th><td><a href="https://github.com/ralphtheninja">GitHub/ralphtheninja</a></td><td><a href="http://twitter.com/ralphtheninja">Twitter/@ralphtheninja</a></td></tr>
<tr><th align="left">David Björklund</th><td><a href="https://github.com/kesla">GitHub/kesla</a></td><td><a href="http://twitter.com/david_bjorklund">Twitter/@david_bjorklund</a></td></tr>
<tr><th align="left">Julian Gruber</th><td><a href="https://github.com/juliangruber">GitHub/juliangruber</a></td><td><a href="http://twitter.com/juliangruber">Twitter/@juliangruber</a></td></tr>
<tr><th align="left">Paolo Fragomeni</th><td><a href="https://github.com/hij1nx">GitHub/hij1nx</a></td><td><a href="http://twitter.com/hij1nx">Twitter/@hij1nx</a></td></tr>
<tr><th align="left">Anton Whalley</th><td><a href="https://github.com/No9">GitHub/No9</a></td><td><a href="https://twitter.com/antonwhalley">Twitter/@antonwhalley</a></td></tr>
<tr><th align="left">Matteo Collina</th><td><a href="https://github.com/mcollina">GitHub/mcollina</a></td><td><a href="https://twitter.com/matteocollina">Twitter/@matteocollina</a></td></tr>
</tbody></table>

<a name="licence"></a>
Licence &amp; copyright
-------------------

Copyright (c) 2012-2013 Abstract LevelDOWN contributors (listed above).

Abstract LevelDOWN is licensed under an MIT +no-false-attribs license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.
13 changes: 12 additions & 1 deletion package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
, "description" : "An abstract prototype matching the LevelDOWN API" , "description" : "An abstract prototype matching the LevelDOWN API"
, "version" : "0.1.0" , "version" : "0.1.0"
, "homepage" : "https://github.com/rvagg/node-abstract-leveldown" , "homepage" : "https://github.com/rvagg/node-abstract-leveldown"
, "contributors" : [
"Rod Vagg <r@va.gg> (https://github.com/rvagg)"
, "John Chesley <john@chesl.es> (https://github.com/chesles/)"
, "Jake Verbaten <raynos2@gmail.com> (https://github.com/raynos)"
, "Dominic Tarr <dominic.tarr@gmail.com> (https://github.com/dominictarr)"
, "Max Ogden <max@maxogden.com> (https://github.com/maxogden)"
, "Lars-Magnus Skog <lars.magnus.skog@gmail.com> (https://github.com/ralphtheninja)"
, "David Björklund <david.bjorklund@gmail.com> (https://github.com/kesla)"
, "Julian Gruber <julian@juliangruber.com> (https://github.com/juliangruber)"
, "Paolo Fragomeni <paolo@async.ly> (https://github.com/hij1nx)"
]
, "authors" : [ , "authors" : [
"Rod Vagg <rod@vagg.org> (https://github.com/rvagg)" "Rod Vagg <rod@vagg.org> (https://github.com/rvagg)"
] ]
Expand All @@ -23,4 +34,4 @@
"test" : "node ./test.js" "test" : "node ./test.js"
} }
, "license" : "MIT" , "license" : "MIT"
} }

0 comments on commit c7f1061

Please sign in to comment.