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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  :minor: 2
3
- :patch: 106
4
- :digest: 1fb1e1ec39f87eddb09a18304402b7c09f366bbe
3
+ :patch: 107
4
+ :digest: 843f99ba6c4715c9a3fa1c2e98a5af3972bf7504
5
5
  :dist:
6
6
  engines/jsc: 89097446434f3ff6763ad41b02b0ea7b9d5794eb
7
7
  :major: 0
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
  }
@@ -56,7 +56,7 @@ if [ $# -lt 1 ]; then
56
56
  # prefer rlwrap to jline.
57
57
  RLWRAP="$(which rlwrap)"
58
58
  if [ -x "$RLWRAP" ]; then
59
- RLWRAP="$RLWRAP -C narwhal -m\\"
59
+ RLWRAP="$RLWRAP -C narwhal"
60
60
  else
61
61
  RLWRAP=""
62
62
  CLASSPATH="$CLASSPATH:$NARWHAL_ENGINE_HOME/jars/jline.jar"
@@ -20,8 +20,7 @@ if not "%NARWHAL_CLASSPATH%" == "" (
20
20
 
21
21
  if "%NARWHAL_DEBUGGER%" == "" (
22
22
  set JAVA_MAIN=org.mozilla.javascript.tools.shell.Main
23
- )
24
- if not "%NARWHAL_DEBUGGER%" == "" (
23
+ ) else (
25
24
  set JAVA_MAIN=org.mozilla.javascript.tools.debugger.Main
26
25
  )
27
26
 
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
- if (exports.isAbsolute(pattern))
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
@@ -202,6 +202,10 @@
202
202
  "ojunit": {
203
203
  "type": "github",
204
204
  "user": "280north"
205
+ },
206
+ "barista": {
207
+ "type": "github",
208
+ "user": "hammerdr"
205
209
  }
206
210
  }
207
211
  }
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,7 @@
1
+ var assert = require("test/assert");
2
+
3
+ exports.testTextInputStream = require("./textinputstream");
4
+
5
+
6
+ if (require.main === module.id)
7
+ require("os").exit(require("test/runner").run(exports));
@@ -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.106
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-11-16 00:00:00 -08:00
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