[Pkg-javascript-commits] [node-leveldown] 13/492: add licence & copyright

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Jul 6 17:13:40 UTC 2014


This is an automated email from the git hooks/post-receive script.

andrewrk-guest pushed a commit to annotated tag rocksdb-0.10.1
in repository node-leveldown.

commit 4b621571a70553431a7a7eef51301398a238b302
Author: Rod Vagg <rod at vagg.org>
Date:   Tue Aug 14 10:24:06 2012 +1000

    add licence & copyright
---
 LICENSE                   | 39 +++++++++++++++++++++++++++++++++++++++
 lib/errors.js             |  2 ++
 lib/levelup.js            |  2 ++
 lib/read-stream.js        |  2 ++
 lib/util.js               |  2 ++
 lib/write-stream.js       |  2 ++
 src/async.cc              |  2 ++
 src/async.h               |  2 ++
 src/batch.cc              |  2 ++
 src/batch.h               |  2 ++
 src/database.cc           |  2 ++
 src/database.h            |  2 ++
 src/database_async.cc     |  2 ++
 src/database_async.h      |  2 ++
 src/iterator.cc           |  2 ++
 src/iterator.h            |  2 ++
 src/iterator_async.cc     |  2 ++
 src/iterator_async.h      |  2 ++
 src/levelup.cc            |  2 ++
 src/levelup.h             |  2 ++
 test/binary-test.js       |  4 ++++
 test/common.js            |  2 ++
 test/read-stream-test.js  |  2 ++
 test/simple-test.js       |  9 +++++++++
 test/write-stream-test.js |  2 ++
 25 files changed, 96 insertions(+)

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..76d07a0
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,39 @@
+Copyright 2012, Rod Vagg (the "Original Author")
+All rights reserved.
+
+MIT +no-false-attribs License
+
+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.
+
+Distributions of all or part of the Software intended to be used
+by the recipients as they would use the unmodified Software,
+containing modifications that substantially alter, remove, or
+disable functionality of the Software, outside of the documented
+configuration mechanisms provided by the Software, shall be
+modified such that the Original Author's bug reporting email
+addresses and urls are either replaced with the contact information
+of the parties responsible for the changes, or removed entirely.
+
+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.
+
+
+Except where noted, this license applies to any and all software
+programs and associated documentation files created by the
+Original Author, when distributed with the Software.
\ No newline at end of file
diff --git a/lib/errors.js b/lib/errors.js
index fd5b742..b910908 100644
--- a/lib/errors.js
+++ b/lib/errors.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 var errno = require('errno')
 
   , LevelUPError = errno.custom.createError("LevelUPError")
diff --git a/lib/levelup.js b/lib/levelup.js
index 6ac8e83..4cc9dd6 100644
--- a/lib/levelup.js
+++ b/lib/levelup.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 var bridge       = require('bindings')('levelup.node')
 
   , errors       = require('./errors')
diff --git a/lib/read-stream.js b/lib/read-stream.js
index c32d649..446ff55 100644
--- a/lib/read-stream.js
+++ b/lib/read-stream.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 var Stream     = require("stream").Stream
   , inherits   = require("inherits")
 
diff --git a/lib/util.js b/lib/util.js
index 566bd3d..3bc5594 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 var toBuffer = function (data, encoding) {
       return data === undefined || data === null || Buffer.isBuffer(data) ? data : new Buffer('' + data, encoding)
     }
diff --git a/lib/write-stream.js b/lib/write-stream.js
index 0d35c49..e897913 100644
--- a/lib/write-stream.js
+++ b/lib/write-stream.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 var Stream     = require("stream").Stream
   , inherits   = require("inherits")
 
diff --git a/src/async.cc b/src/async.cc
index 4183e79..a298100 100644
--- a/src/async.cc
+++ b/src/async.cc
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #include <cstdlib>
 #include <node.h>
 #include <node_buffer.h>
diff --git a/src/async.h b/src/async.h
index 6948a90..e01e995 100644
--- a/src/async.h
+++ b/src/async.h
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #ifndef LU_ASYNC_H
 #define LU_ASYNC_H
 
diff --git a/src/batch.cc b/src/batch.cc
index 0025685..dbd91d0 100644
--- a/src/batch.cc
+++ b/src/batch.cc
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #include <cstdlib>
 #include <iostream>
 
diff --git a/src/batch.h b/src/batch.h
index bcb6a18..e6cf1ff 100644
--- a/src/batch.h
+++ b/src/batch.h
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #ifndef LU_BATCH_H
 #define LU_BATCH_H
 
diff --git a/src/database.cc b/src/database.cc
index 70a3b51..40d12c0 100644
--- a/src/database.cc
+++ b/src/database.cc
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #include <cstdlib>
 #include <vector>
 #include <node.h>
diff --git a/src/database.h b/src/database.h
index b27e897..b6cf642 100644
--- a/src/database.h
+++ b/src/database.h
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #ifndef LU_DATABASE_H
 #define LU_DATABASE_H
 
diff --git a/src/database_async.cc b/src/database_async.cc
index a3e4088..c5ed6a3 100644
--- a/src/database_async.cc
+++ b/src/database_async.cc
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #include <cstdlib>
 #include <node.h>
 #include <node_buffer.h>
diff --git a/src/database_async.h b/src/database_async.h
index 0d1e0a0..17fcfc7 100644
--- a/src/database_async.h
+++ b/src/database_async.h
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #ifndef LU_DATABASE_ASYNC_H
 #define LU_DATABASE_ASYNC_H
 
diff --git a/src/iterator.cc b/src/iterator.cc
index 590c6be..d684a3c 100644
--- a/src/iterator.cc
+++ b/src/iterator.cc
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #include <cstdlib>
 #include <node.h>
 #include <node_buffer.h>
diff --git a/src/iterator.h b/src/iterator.h
index 7d7a8a0..afa0fdd 100644
--- a/src/iterator.h
+++ b/src/iterator.h
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #ifndef LU_ITERATOR_H
 #define LU_ITERATOR_H
 
diff --git a/src/iterator_async.cc b/src/iterator_async.cc
index 122a8db..aec76b4 100644
--- a/src/iterator_async.cc
+++ b/src/iterator_async.cc
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #include <cstdlib>
 #include <node.h>
 #include <node_buffer.h>
diff --git a/src/iterator_async.h b/src/iterator_async.h
index babae38..6c6b437 100644
--- a/src/iterator_async.h
+++ b/src/iterator_async.h
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #ifndef LU_ITERATOR_ASYNC_H
 #define LU_ITERATOR_ASYNC_H
 
diff --git a/src/levelup.cc b/src/levelup.cc
index ae77a5f..30616ea 100644
--- a/src/levelup.cc
+++ b/src/levelup.cc
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #include <node.h>
 
 #include "levelup.h"
diff --git a/src/levelup.h b/src/levelup.h
index 948957d..9be2139 100644
--- a/src/levelup.h
+++ b/src/levelup.h
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 #ifndef LU_LEVELUP_H
 #define LU_LEVELUP_H
 
diff --git a/test/binary-test.js b/test/binary-test.js
index 1fd8464..91ad7db 100644
--- a/test/binary-test.js
+++ b/test/binary-test.js
@@ -1,5 +1,7 @@
 /*global cleanUp:true, openTestDatabase:true, loadBinaryTestData:true, binaryTestDataMD5Sum:true, checkBinaryTestData:true*/
 
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 var buster  = require('buster')
   , assert  = buster.assert
   , levelup = require('../lib/levelup.js')
@@ -101,8 +103,10 @@ buster.testCase('Binary API', {
         db.put(this.testData, 'binarydata', {encoding:'binary'}, function (err) {
           refute(err)
           db.del(this.testData, {encoding:'binary'}, function (err) {
+            refute(err)
             db.get(this.testData, {encoding:'binary'}, function (err, value) {
               assert(err)
+              refute(value)
               done()
             }.bind(this))
           }.bind(this))
diff --git a/test/common.js b/test/common.js
index 204f4d1..a7f9b52 100644
--- a/test/common.js
+++ b/test/common.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 var ba      = require('buster').assertions
   , async   = require('async')
   , rimraf  = require('rimraf')
diff --git a/test/read-stream-test.js b/test/read-stream-test.js
index 93b4d7c..99652f8 100644
--- a/test/read-stream-test.js
+++ b/test/read-stream-test.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 /*global cleanUp:true, openTestDatabase:true*/
 
 var buster  = require('buster')
diff --git a/test/simple-test.js b/test/simple-test.js
index 54130c5..c6a79ff 100644
--- a/test/simple-test.js
+++ b/test/simple-test.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 /*global cleanUp:true, openTestDatabase:true*/
 
 var buster  = require('buster')
@@ -84,6 +86,7 @@ buster.testCase('Basic API', {
         refute(err)
         assert.isTrue(db.isOpen())
         fs.stat(this.cleanupDirs[0], function (err, stat) {
+          refute(err)
           assert(stat.isDirectory())
           done()
         })
@@ -310,6 +313,7 @@ buster.testCase('Basic API', {
                         , function (key, callback) {
                             db.get(key, function (err, value) {
                               refute(err)
+                              refute.isNull(value)
                               callback()
                             })
                           }
@@ -324,6 +328,7 @@ buster.testCase('Basic API', {
                             db.get(key, function (err, value) {
                               assert(err)
                               assert.isInstanceOf(err, errors.NotFoundError)
+                              refute(value)
                               callback()
                             })
                           }
@@ -363,6 +368,7 @@ buster.testCase('Basic API', {
                         , function (key, callback) {
                             db.get(key, function (err, value) {
                               refute(err)
+                              refute.isNull(value)
                               callback()
                             })
                           }
@@ -377,6 +383,7 @@ buster.testCase('Basic API', {
                             db.get(key, function (err, value) {
                               assert(err)
                               assert.isInstanceOf(err, errors.NotFoundError)
+                              refute(value)
                               callback()
                             })
                           }
@@ -411,6 +418,7 @@ buster.testCase('Basic API', {
                         , function (key, callback) {
                             db.get(key, function (err, value) {
                               refute(err)
+                              refute.isNull(value)
                               callback()
                             })
                           }
@@ -422,6 +430,7 @@ buster.testCase('Basic API', {
                       db.get('1', function (err, value) {
                         assert(err)
                         assert.isInstanceOf(err, errors.NotFoundError)
+                        refute(value)
                         callback()
                       })
                     }
diff --git a/test/write-stream-test.js b/test/write-stream-test.js
index 7997c85..d29a108 100644
--- a/test/write-stream-test.js
+++ b/test/write-stream-test.js
@@ -1,3 +1,5 @@
+/* Copyright (c) 2012 Rod Vagg <@rvagg> */
+
 /*global cleanUp:true, openTestDatabase:true*/
 
 var buster  = require('buster')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-leveldown.git



More information about the Pkg-javascript-commits mailing list