[Pkg-javascript-commits] [node-keese] 02/05: Imported Upstream version 1.0.4

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sun Sep 28 23:49:58 UTC 2014


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

andrewrk-guest pushed a commit to branch master
in repository node-keese.

commit f7f717154d0d13d0ed133ea107fdd960a376d691
Author: Andrew Kelley <superjoe30 at gmail.com>
Date:   Sun Sep 28 23:47:31 2014 +0000

    Imported Upstream version 1.0.4
---
 LICENSE                | 21 +++++++++++++++++++++
 readme.md => README.md |  6 +++---
 package.json           |  6 +++---
 3 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..37538d4
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Josh Wolfe
+
+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.
diff --git a/readme.md b/README.md
similarity index 97%
rename from readme.md
rename to README.md
index dd19588..4c12867 100644
--- a/readme.md
+++ b/README.md
@@ -1,7 +1,7 @@
 node-keese
 ==========
 
-Generator for well-ordered values, appropriate for use as sorting keys.
+Generates arbitrary-precision, comparable values, appropriate for use as sorting keys.
 
 keese can always generate a bigger value, a smaller value, and a value between two other values.
 This is trivial using numbers with `x+1`, `x-1`, and `(x+y)/2` respectively.
@@ -166,7 +166,7 @@ Oh well. Maybe in a future version of keese.)
 As a matter of efficiency, using base 10 would only encode 10 values per character, but we can easily encode many more.
 JavaScript strings are made of 16-bit characters, so the maximum density we can achieve is radix 65536 (not counting the magnitude specifier).
 However, many characters in this range are unreadable and untypable,
-and some JSON libraries (such as in python) will escape non-ascii values with `"\x1234"` notation by default,
+and some JSON libraries (such as in python) will escape non-ascii values with `"\u1234"` notation by default,
 so radix 65536 may not be worth the trouble.
 Following the example of the base64 encoding, keese uses radix 64 with all printable ascii characters.
 
@@ -236,5 +236,5 @@ I believe it is provable that betweening cannot do any better than `O(n)`:
   Because of this, the return value effectively encodes the decision of whether `x` or `y` was chosen.
 * This information is not lost on the next call to `keese(x, y)`.
   Therefore, a value obtained through the algorithm above must encode a complete history of each decision.
-* Each of the `n` decisions must occupy up a minimum of 1 bit of space in the string, therefore the size of the string is `O(n)`.
+* Each of the `n` decisions must occupy a minimum of 1 bit of space in the string, therefore the size of the string is `O(n)`.
 
diff --git a/package.json b/package.json
index 3e6eef6..9d733f9 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
   "name": "keese",
-  "version": "1.0.1",
-  "description": "limited-functionality arbitrary-precision floats encoded as strings in javascript",
+  "version": "1.0.4",
+  "description": "Generates arbitrary-precision, comparable values, appropriate for use as sorting keys",
   "main": "index.js",
   "scripts": {
     "test": "node test.js"
@@ -11,7 +11,7 @@
     "url": "git://github.com/thejoshwolfe/node-keese.git"
   },
   "author": "Josh Wolfe <thejoshwolfe at gmail.com>",
-  "license": "BSD",
+  "license": "MIT",
   "bugs": {
     "url": "https://github.com/thejoshwolfe/node-keese/issues"
   },

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



More information about the Pkg-javascript-commits mailing list