sproutit-narwhal 0.2.106 → 0.2.107
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/catalog.json +23 -0
- data/engines/rhino/bin/narwhal-rhino +1 -1
- data/engines/rhino/bin/narwhal-rhino.cmd +1 -2
- data/lib/file.js +8 -4
- data/sources.json +4 -0
- data/tests/all-tests.js +1 -0
- data/tests/io/all-tests.js +7 -0
- data/tests/io/textinputstream.js +16 -0
- metadata +4 -2
data/VERSION.yml
CHANGED
data/catalog.json
CHANGED
@@ -897,6 +897,29 @@
|
|
897
897
|
"githubName": "ojunit",
|
898
898
|
"type": "zip",
|
899
899
|
"location": "http://github.com/280north/ojunit/zipball/master"
|
900
|
+
},
|
901
|
+
"barista": {
|
902
|
+
"name": "barista",
|
903
|
+
"dependencies": [
|
904
|
+
"narwhal",
|
905
|
+
"objective-j",
|
906
|
+
"cappuccino"
|
907
|
+
],
|
908
|
+
"author": "Derek Hammer",
|
909
|
+
"description": "An automated user interface testing framework.",
|
910
|
+
"keywords": [
|
911
|
+
"objective-j",
|
912
|
+
"unit test",
|
913
|
+
"testing",
|
914
|
+
"test",
|
915
|
+
"user interface"
|
916
|
+
],
|
917
|
+
"objj-frameworks": [
|
918
|
+
"Framework"
|
919
|
+
],
|
920
|
+
"githubName": "barista",
|
921
|
+
"type": "zip",
|
922
|
+
"location": "http://github.com/hammerdr/barista/zipball/master"
|
900
923
|
}
|
901
924
|
}
|
902
925
|
}
|
data/lib/file.js
CHANGED
@@ -341,11 +341,15 @@ exports.match = function (path, pattern) {
|
|
341
341
|
|
342
342
|
exports.glob = function (pattern, flags) {
|
343
343
|
pattern = String(pattern || '');
|
344
|
-
var parts = exports.split(pattern)
|
345
|
-
|
346
|
-
parts.unshift(exports.join(parts.shift(), parts.shift()));
|
347
|
-
var paths = ['.'];
|
344
|
+
var parts = exports.split(pattern),
|
345
|
+
paths = ['.'];
|
348
346
|
|
347
|
+
if (exports.isAbsolute(pattern))
|
348
|
+
{
|
349
|
+
paths = ["/"];
|
350
|
+
parts.shift();
|
351
|
+
}
|
352
|
+
|
349
353
|
if (parts[parts.length-1] == "**")
|
350
354
|
parts[parts.length-1] = "*";
|
351
355
|
|
data/sources.json
CHANGED
data/tests/all-tests.js
CHANGED
@@ -3,6 +3,7 @@ exports.testString = require("./string");
|
|
3
3
|
exports.testURI = require("./uri");
|
4
4
|
exports.testQS = require("./query-string");
|
5
5
|
exports.testHashes = require("./hashes");
|
6
|
+
exports.testIO = require("./io/all-tests");
|
6
7
|
exports.testOS = require("./os/all-tests");
|
7
8
|
exports.testFile = require("./file/all-tests");
|
8
9
|
exports.testUtil = require("./util/all-tests");
|
@@ -0,0 +1,16 @@
|
|
1
|
+
var assert = require("test/assert");
|
2
|
+
|
3
|
+
exports.testTextInputStreamReadUnicodeOnBoundary = function() {
|
4
|
+
var str = Array(1024).join(" ") + "ü";
|
5
|
+
try {
|
6
|
+
system.fs.write("testTextInputStreamReadUnicodeOnBoundary", str, { charset : "UTF-8" });
|
7
|
+
var b = system.fs.read("testTextInputStreamReadUnicodeOnBoundary", "b");
|
8
|
+
var strA = b.decodeToString("UTF-8");
|
9
|
+
assert.eq(str, strA);
|
10
|
+
} finally {
|
11
|
+
system.fs.remove("testTextInputStreamReadUnicodeOnBoundary");
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
if (require.main === module.id)
|
16
|
+
require("os").exit(require("test/runner").run(exports));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sproutit-narwhal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.107
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Developed by Tom Robinson and contributors. Gem publish by Charles Jolley
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: gem_bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-03 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -378,7 +378,9 @@ files:
|
|
378
378
|
- tests/global/array.js
|
379
379
|
- tests/hashes.js
|
380
380
|
- tests/html.js
|
381
|
+
- tests/io/all-tests.js
|
381
382
|
- tests/io/stringio.js
|
383
|
+
- tests/io/textinputstream.js
|
382
384
|
- tests/os/all-tests.js
|
383
385
|
- tests/os/popen.js
|
384
386
|
- tests/os/system.js
|