sproutcore 1.6.0.rc.1-x86-mingw32 → 1.6.0.rc.2-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. data/CHANGELOG +31 -6
  2. data/{History.txt → History.rdoc} +0 -0
  3. data/{README.txt → README.rdoc} +3 -2
  4. data/Rakefile +15 -15
  5. data/{Todo.txt → Todo.rdoc} +0 -0
  6. data/VERSION.yml +1 -1
  7. data/lib/buildtasks/manifest.rake +11 -4
  8. data/lib/buildtasks/target.rake +20 -23
  9. data/lib/frameworks/sproutcore/CHANGELOG.md +36 -0
  10. data/lib/frameworks/sproutcore/frameworks/core_foundation/core.js +2 -42
  11. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/bind.js +2 -1
  12. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +3 -1
  13. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/checkbox_support.js +5 -5
  14. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/template_helpers/text_field_support.js +29 -12
  15. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +4 -4
  16. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/mixins/template_helpers/text_field_support.js +9 -0
  17. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +110 -0
  18. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +63 -26
  19. data/lib/frameworks/sproutcore/frameworks/datastore/system/child_array.js +25 -5
  20. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +3 -3
  21. data/lib/frameworks/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +26 -3
  22. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +74 -53
  23. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +6 -7
  24. data/lib/frameworks/sproutcore/frameworks/desktop/panes/picker.js +6 -3
  25. data/lib/frameworks/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +25 -1
  26. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/methods.js +1 -3
  27. data/lib/frameworks/sproutcore/frameworks/desktop/tests/views/tab/ui.js +20 -1
  28. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +1 -1
  29. data/lib/frameworks/sproutcore/frameworks/desktop/views/tab.js +46 -49
  30. data/lib/frameworks/sproutcore/frameworks/foundation/tests/views/container/ui.js +23 -0
  31. data/lib/frameworks/sproutcore/frameworks/foundation/views/container.js +14 -2
  32. data/lib/frameworks/sproutcore/frameworks/jquery/jquery-buffered.js +2 -76
  33. data/lib/frameworks/sproutcore/frameworks/jquery/jquery.js +3348 -1591
  34. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +25 -5
  35. data/lib/frameworks/sproutcore/frameworks/runtime/system/index_set.js +0 -3
  36. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +10 -5
  37. data/lib/frameworks/sproutcore/frameworks/runtime/tests/core/requiredObjectForPropertyPath.js +29 -0
  38. data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue.js +98 -0
  39. data/lib/frameworks/sproutcore/themes/ace/resources/collection/normal/list_item.css +2 -2
  40. data/lib/frameworks/sproutcore/themes/ace/resources/split/split.css +1 -1
  41. data/lib/gen/language/Buildfile +1 -1
  42. data/lib/sproutcore.rb +1 -14
  43. data/lib/sproutcore/buildfile/string_ext.rb +0 -4
  44. data/lib/sproutcore/helpers/cssmin.rb +44 -59
  45. data/lib/sproutcore/helpers/text_helper.rb +11 -13
  46. data/lib/sproutcore/models/manifest.rb +4 -4
  47. data/lib/sproutcore/models/target.rb +11 -110
  48. data/lib/sproutcore/rack.rb +0 -1
  49. data/lib/sproutcore/rack/dev.rb +0 -1
  50. data/lib/sproutcore/rack/proxy.rb +9 -8
  51. data/lib/sproutcore/rack/service.rb +1 -1
  52. data/lib/sproutcore/render_engines/haml.rb +2 -5
  53. data/lib/sproutcore/tools/build.rb +2 -0
  54. data/lib/sproutcore/tools/docs.rb +7 -36
  55. data/lib/sproutcore/tools/manifest.rb +1 -1
  56. data/spec/buildtasks/target_spec.rb +9 -0
  57. data/spec/fixtures/real_world/frameworks/sproutcore/Buildfile +1 -1
  58. data/sproutcore.gemspec +3 -4
  59. data/vendor/chance/lib/chance/instance.rb +5 -8
  60. metadata +41 -207
  61. data/lib/doc_templates/jsdoc/allclasses.tmpl +0 -17
  62. data/lib/doc_templates/jsdoc/allfiles.tmpl +0 -56
  63. data/lib/doc_templates/jsdoc/class.tmpl +0 -487
  64. data/lib/doc_templates/jsdoc/index.tmpl +0 -38
  65. data/lib/doc_templates/jsdoc/publish.js +0 -170
  66. data/lib/doc_templates/jsdoc/static/default.css +0 -162
  67. data/lib/doc_templates/jsdoc/static/header.html +0 -2
  68. data/lib/doc_templates/jsdoc/static/index.html +0 -19
  69. data/lib/doc_templates/jsdoc/symbol.tmpl +0 -35
  70. data/lib/doc_templates/sproutcore/allclasses.tmpl +0 -0
  71. data/lib/doc_templates/sproutcore/allfiles.tmpl +0 -56
  72. data/lib/doc_templates/sproutcore/class.tmpl +0 -674
  73. data/lib/doc_templates/sproutcore/classes-json.tmpl +0 -55
  74. data/lib/doc_templates/sproutcore/index.tmpl +0 -62
  75. data/lib/doc_templates/sproutcore/publish.js +0 -346
  76. data/lib/doc_templates/sproutcore/static/default.css +0 -258
  77. data/lib/doc_templates/sproutcore/static/header.html +0 -2
  78. data/lib/doc_templates/sproutcore/static/index.html +0 -19
  79. data/lib/doc_templates/sproutcore/symbol.tmpl +0 -35
  80. data/lib/frameworks/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +0 -55
  81. data/lib/sproutcore/rack/docs.rb +0 -24
  82. data/spec/fixtures/real_world/frameworks/sproutcore/apps/docs/PLACEHOLDER +0 -0
  83. data/vendor/jsdoc/README.txt +0 -151
  84. data/vendor/jsdoc/app/frame.js +0 -33
  85. data/vendor/jsdoc/app/frame/Chain.js +0 -102
  86. data/vendor/jsdoc/app/frame/Dumper.js +0 -144
  87. data/vendor/jsdoc/app/frame/Hash.js +0 -47
  88. data/vendor/jsdoc/app/frame/Link.js +0 -142
  89. data/vendor/jsdoc/app/frame/Namespace.js +0 -10
  90. data/vendor/jsdoc/app/frame/Opt.js +0 -134
  91. data/vendor/jsdoc/app/frame/Reflection.js +0 -26
  92. data/vendor/jsdoc/app/frame/String.js +0 -93
  93. data/vendor/jsdoc/app/frame/Testrun.js +0 -129
  94. data/vendor/jsdoc/app/handlers/FOODOC.js +0 -26
  95. data/vendor/jsdoc/app/handlers/XMLDOC.js +0 -26
  96. data/vendor/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -159
  97. data/vendor/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -16
  98. data/vendor/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -292
  99. data/vendor/jsdoc/app/lib/JSDOC.js +0 -98
  100. data/vendor/jsdoc/app/lib/JSDOC/DocComment.js +0 -200
  101. data/vendor/jsdoc/app/lib/JSDOC/DocTag.js +0 -294
  102. data/vendor/jsdoc/app/lib/JSDOC/JsDoc.js +0 -162
  103. data/vendor/jsdoc/app/lib/JSDOC/JsPlate.js +0 -100
  104. data/vendor/jsdoc/app/lib/JSDOC/Lang.js +0 -144
  105. data/vendor/jsdoc/app/lib/JSDOC/Parser.js +0 -109
  106. data/vendor/jsdoc/app/lib/JSDOC/PluginManager.js +0 -33
  107. data/vendor/jsdoc/app/lib/JSDOC/Symbol.js +0 -681
  108. data/vendor/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -226
  109. data/vendor/jsdoc/app/lib/JSDOC/TextStream.js +0 -41
  110. data/vendor/jsdoc/app/lib/JSDOC/Token.js +0 -18
  111. data/vendor/jsdoc/app/lib/JSDOC/TokenReader.js +0 -332
  112. data/vendor/jsdoc/app/lib/JSDOC/TokenStream.js +0 -133
  113. data/vendor/jsdoc/app/lib/JSDOC/Util.js +0 -32
  114. data/vendor/jsdoc/app/lib/JSDOC/Walker.js +0 -453
  115. data/vendor/jsdoc/app/main.js +0 -74
  116. data/vendor/jsdoc/app/plugins/commentSrcJson.js +0 -19
  117. data/vendor/jsdoc/app/plugins/frameworkPrototype.js +0 -16
  118. data/vendor/jsdoc/app/plugins/functionCall.js +0 -10
  119. data/vendor/jsdoc/app/plugins/publishSrcHilite.js +0 -62
  120. data/vendor/jsdoc/app/plugins/sproutcoreTags.js +0 -26
  121. data/vendor/jsdoc/app/plugins/symbolLink.js +0 -9
  122. data/vendor/jsdoc/app/plugins/tagParamConfig.js +0 -31
  123. data/vendor/jsdoc/app/plugins/tagSynonyms.js +0 -43
  124. data/vendor/jsdoc/app/run.js +0 -346
  125. data/vendor/jsdoc/app/t/TestDoc.js +0 -144
  126. data/vendor/jsdoc/app/t/runner.js +0 -13
  127. data/vendor/jsdoc/app/test.js +0 -304
  128. data/vendor/jsdoc/app/test/addon.js +0 -24
  129. data/vendor/jsdoc/app/test/anon_inner.js +0 -14
  130. data/vendor/jsdoc/app/test/augments.js +0 -31
  131. data/vendor/jsdoc/app/test/augments2.js +0 -26
  132. data/vendor/jsdoc/app/test/borrows.js +0 -41
  133. data/vendor/jsdoc/app/test/borrows2.js +0 -23
  134. data/vendor/jsdoc/app/test/config.js +0 -22
  135. data/vendor/jsdoc/app/test/constructs.js +0 -18
  136. data/vendor/jsdoc/app/test/encoding.js +0 -10
  137. data/vendor/jsdoc/app/test/encoding_other.js +0 -12
  138. data/vendor/jsdoc/app/test/functions_anon.js +0 -39
  139. data/vendor/jsdoc/app/test/functions_nested.js +0 -33
  140. data/vendor/jsdoc/app/test/global.js +0 -13
  141. data/vendor/jsdoc/app/test/globals.js +0 -25
  142. data/vendor/jsdoc/app/test/ignore.js +0 -10
  143. data/vendor/jsdoc/app/test/inner.js +0 -16
  144. data/vendor/jsdoc/app/test/jsdoc_test.js +0 -477
  145. data/vendor/jsdoc/app/test/lend.js +0 -33
  146. data/vendor/jsdoc/app/test/memberof.js +0 -20
  147. data/vendor/jsdoc/app/test/memberof_constructor.js +0 -15
  148. data/vendor/jsdoc/app/test/name.js +0 -19
  149. data/vendor/jsdoc/app/test/namespace_nested.js +0 -23
  150. data/vendor/jsdoc/app/test/nocode.js +0 -13
  151. data/vendor/jsdoc/app/test/oblit_anon.js +0 -20
  152. data/vendor/jsdoc/app/test/overview.js +0 -20
  153. data/vendor/jsdoc/app/test/param_inline.js +0 -37
  154. data/vendor/jsdoc/app/test/params_optional.js +0 -8
  155. data/vendor/jsdoc/app/test/prototype.js +0 -17
  156. data/vendor/jsdoc/app/test/prototype_nested.js +0 -9
  157. data/vendor/jsdoc/app/test/prototype_oblit.js +0 -13
  158. data/vendor/jsdoc/app/test/prototype_oblit_constructor.js +0 -24
  159. data/vendor/jsdoc/app/test/public.js +0 -10
  160. data/vendor/jsdoc/app/test/shared.js +0 -42
  161. data/vendor/jsdoc/app/test/shared2.js +0 -2
  162. data/vendor/jsdoc/app/test/shortcuts.js +0 -22
  163. data/vendor/jsdoc/app/test/static_this.js +0 -13
  164. data/vendor/jsdoc/app/test/synonyms.js +0 -23
  165. data/vendor/jsdoc/app/test/tosource.js +0 -23
  166. data/vendor/jsdoc/app/test/variable_redefine.js +0 -14
  167. data/vendor/jsdoc/changes.txt +0 -47
  168. data/vendor/jsdoc/conf/sample.conf +0 -31
  169. data/vendor/jsdoc/java/build.xml +0 -36
  170. data/vendor/jsdoc/java/build_1.4.xml +0 -36
  171. data/vendor/jsdoc/java/classes/js.jar +0 -0
  172. data/vendor/jsdoc/java/src/JsDebugRun.java +0 -21
  173. data/vendor/jsdoc/java/src/JsRun.java +0 -21
  174. data/vendor/jsdoc/jsdebug.jar +0 -0
  175. data/vendor/jsdoc/jsrun.jar +0 -0
  176. data/vendor/jsdoc/t/TestDoc.js +0 -144
  177. data/vendor/jsdoc/t/runner.js +0 -13
  178. data/vendor/jsdoc/test.js +0 -304
  179. data/vendor/jsdoc/test/addon.js +0 -24
  180. data/vendor/jsdoc/test/anon_inner.js +0 -14
  181. data/vendor/jsdoc/test/augments.js +0 -31
  182. data/vendor/jsdoc/test/augments2.js +0 -26
  183. data/vendor/jsdoc/test/borrows.js +0 -41
  184. data/vendor/jsdoc/test/borrows2.js +0 -23
  185. data/vendor/jsdoc/test/config.js +0 -22
  186. data/vendor/jsdoc/test/constructs.js +0 -18
  187. data/vendor/jsdoc/test/encoding.js +0 -10
  188. data/vendor/jsdoc/test/encoding_other.js +0 -12
  189. data/vendor/jsdoc/test/functions_anon.js +0 -39
  190. data/vendor/jsdoc/test/functions_nested.js +0 -33
  191. data/vendor/jsdoc/test/global.js +0 -13
  192. data/vendor/jsdoc/test/globals.js +0 -25
  193. data/vendor/jsdoc/test/ignore.js +0 -10
  194. data/vendor/jsdoc/test/inner.js +0 -16
  195. data/vendor/jsdoc/test/jsdoc_test.js +0 -477
  196. data/vendor/jsdoc/test/lend.js +0 -33
  197. data/vendor/jsdoc/test/memberof.js +0 -20
  198. data/vendor/jsdoc/test/memberof_constructor.js +0 -15
  199. data/vendor/jsdoc/test/name.js +0 -19
  200. data/vendor/jsdoc/test/namespace_nested.js +0 -23
  201. data/vendor/jsdoc/test/nocode.js +0 -13
  202. data/vendor/jsdoc/test/oblit_anon.js +0 -20
  203. data/vendor/jsdoc/test/overview.js +0 -20
  204. data/vendor/jsdoc/test/param_inline.js +0 -37
  205. data/vendor/jsdoc/test/params_optional.js +0 -8
  206. data/vendor/jsdoc/test/prototype.js +0 -17
  207. data/vendor/jsdoc/test/prototype_nested.js +0 -9
  208. data/vendor/jsdoc/test/prototype_oblit.js +0 -13
  209. data/vendor/jsdoc/test/prototype_oblit_constructor.js +0 -24
  210. data/vendor/jsdoc/test/public.js +0 -10
  211. data/vendor/jsdoc/test/shared.js +0 -42
  212. data/vendor/jsdoc/test/shared2.js +0 -2
  213. data/vendor/jsdoc/test/shortcuts.js +0 -22
  214. data/vendor/jsdoc/test/static_this.js +0 -13
  215. data/vendor/jsdoc/test/synonyms.js +0 -23
  216. data/vendor/jsdoc/test/tosource.js +0 -23
  217. data/vendor/jsdoc/test/variable_redefine.js +0 -14
@@ -1,74 +0,0 @@
1
- /**
2
- * @version $Id: main.js 570 2008-04-07 23:54:50Z micmath $
3
- */
4
-
5
- function main() {
6
- IO.include("lib/JSDOC.js");
7
- IO.includeDir("plugins/");
8
-
9
- if (JSDOC.opt.v) LOG.verbose = true;
10
- if (JSDOC.opt.o) LOG.out = IO.open(JSDOC.opt.o);
11
-
12
- if (JSDOC.opt.T) {
13
- LOG.inform("JsDoc Toolkit running in test mode at "+new Date()+".");
14
- IO.include("frame/Testrun.js");
15
- IO.include("test.js");
16
- }
17
- else {
18
- LOG.inform("JsDoc Toolkit main() running at "+new Date()+".");
19
- LOG.inform("With options: ");
20
- for (var o in JSDOC.opt) {
21
- LOG.inform(" "+o+": "+JSDOC.opt[o]);
22
- }
23
-
24
- var jsdoc = new JSDOC.JsDoc();
25
-
26
- if (JSDOC.opt.Z) { // secret debugging option
27
- LOG.warn("So you want to see the data structure, eh? This might hang if you have circular refs...");
28
- IO.include("frame/Dumper.js");
29
- var symbols = jsdoc.symbolSet.toArray();
30
- for (var i = 0, l = symbols.length; i < l; i++) {
31
- var symbol = symbols[i];
32
- print("// symbol: " + symbol.alias);
33
- print(symbol.serialize());
34
- }
35
- }
36
- else {
37
- var template = JSDOC.opt.t || System.getProperty("jsdoc.template.dir");
38
-
39
- var handler = jsdoc.symbolSet.handler;
40
- if (handler && handler.publish) {
41
- handler.publish(jsdoc.symbolSet);
42
- }
43
- else {
44
- if (typeof template != "undefined") {
45
- try {
46
- load(template+"/publish.js");
47
- if (!publish) {
48
- LOG.warn("No publish() function is defined in that template so nothing to do.");
49
- }
50
- else {
51
- publish(jsdoc.symbolSet);
52
- }
53
- }
54
- catch(e) {
55
- LOG.warn("Sorry, that doesn't seem to be a valid template: "+template+"/publish.js : "+e);
56
- }
57
- }
58
- else {
59
- LOG.warn("No template or handlers given. Might as well read the usage notes.");
60
- JSDOC.usage();
61
- }
62
- }
63
- }
64
- }
65
-
66
- if (LOG.warnings.length) {
67
- print(LOG.warnings.length+" warning"+(LOG.warnings.length != 1? "s":"")+".");
68
- }
69
-
70
- if (LOG.out) {
71
- LOG.out.flush();
72
- LOG.out.close();
73
- }
74
- }
@@ -1,19 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.commentSrcJson",
3
- {
4
- onDocCommentSrc: function(commentSrc) {
5
- var json;
6
- if (/^\s*@json\b/.test(commentSrc)) {
7
- commentSrc = commentSrc.replace("@json", "");
8
- eval("json = "+commentSrc);
9
- var tagged = "";
10
- for (var i in json) {
11
- var tag = json[i];
12
- // todo handle cases where tag is an object
13
- tagged += "@"+i+" "+tag+"\n";
14
- }
15
- return tagged;
16
- }
17
- }
18
- }
19
- );
@@ -1,16 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.frameworkPrototype",
3
- {
4
- onPrototypeClassCreate: function(classCreator) {
5
- var desc = "";
6
- if (classCreator.comment) {
7
- desc = classCreator.comment;
8
- }
9
- var insert = desc+"/** @name "+classCreator.name+"\n@constructor\n@scope "+classCreator.name+".prototype */"
10
-
11
- insert = insert.replace(/\*\/\/\*\*/g, "\n");
12
- /*DEBUG*///print("insert is "+insert);
13
- classCreator.addComment.data = insert;
14
- }
15
- }
16
- );
@@ -1,10 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.functionCall",
3
- {
4
- onFunctionCall: function(functionCall) {
5
- if (functionCall.name == "dojo.define" && functionCall.arg1) {
6
- functionCall.doc = "/** @lends "+eval(functionCall.arg1)+".prototype */";
7
- }
8
- }
9
- }
10
- );
@@ -1,62 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.publishSrcHilite",
3
- {
4
- onPublishSrc: function(src) {
5
- if (src.path in JsHilite.cache) {
6
- return; // already generated src code
7
- }
8
- else JsHilite.cache[src.path] = true;
9
-
10
- try {
11
- var sourceCode = IO.readFile(src.path);
12
- }
13
- catch(e) {
14
- print(e.message);
15
- quit();
16
- }
17
-
18
- var hiliter = new JsHilite(sourceCode, src.charset);
19
- src.hilited = hiliter.hilite();
20
- }
21
- }
22
- );
23
-
24
- function JsHilite(src, charset) {
25
-
26
- var tr = new JSDOC.TokenReader();
27
-
28
- tr.keepComments = true;
29
- tr.keepDocs = true;
30
- tr.keepWhite = true;
31
-
32
- this.tokens = tr.tokenize(new JSDOC.TextStream(src));
33
-
34
- // TODO is redefining toString() the best way?
35
- JSDOC.Token.prototype.toString = function() {
36
- return "<span class=\""+this.type+"\">"+this.data.replace(/</g, "&lt;")+"</span>";
37
- }
38
-
39
- if (!charset) charset = "utf-8";
40
-
41
- this.header = '<html><head><meta http-equiv="content-type" content="text/html; charset='+charset+'"> '+
42
- "<style>\n\
43
- .KEYW {color: #933;}\n\
44
- .COMM {color: #bbb; font-style: italic;}\n\
45
- .NUMB {color: #393;}\n\
46
- .STRN {color: #393;}\n\
47
- .REGX {color: #339;}\n\
48
- .line {border-right: 1px dotted #666; color: #666; font-style: normal;}\n\
49
- </style></head><body><pre>";
50
- this.footer = "</pre></body></html>";
51
- this.showLinenumbers = true;
52
- }
53
-
54
- JsHilite.cache = {};
55
-
56
- JsHilite.prototype.hilite = function() {
57
- var hilited = this.tokens.join("");
58
- var line = 1;
59
- if (this.showLinenumbers) hilited = hilited.replace(/(^|\n)/g, function(m){return m+"<span class='line'>"+((line<10)? " ":"")+((line<100)? " ":"")+(line++)+"</span> "});
60
-
61
- return this.header+hilited+this.footer;
62
- }
@@ -1,26 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.sproutcoreTags",
3
- {
4
- onDocCommentTags: function(comment) {
5
- for (var i = 0, l = comment.tags.length; i < l; i++) {
6
- var title = comment.tags[i].title.toLowerCase();
7
- var syn;
8
- if ((syn = JSDOC.sproutcoreTags.synonyms["="+title])) {
9
- comment.tags[i].title = syn;
10
- }
11
- }
12
- }
13
- }
14
- );
15
-
16
- new Namespace(
17
- "JSDOC.sproutcoreTags",
18
- function() {
19
- JSDOC.sproutcoreTags.synonyms = {
20
- "=method": "function",
21
- "=delegate": "namespace",
22
- "=property": "field",
23
- "=singleton": "class"
24
- }
25
- }
26
- );
@@ -1,9 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.symbolLink",
3
- {
4
- onSymbolLink: function(link) {
5
- // modify link.linkPath
6
- // or link.linkText here
7
- }
8
- }
9
- );
@@ -1,31 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.tagParamConfig",
3
- {
4
- onDocCommentTags: function(comment) {
5
- var currentParam = null;
6
- var tags = comment.tags;
7
- for (var i = 0, l = tags.length; i < l; i++) {
8
-
9
- if (tags[i].title == "param") {
10
- if (tags[i].name.indexOf(".") == -1) {
11
- currentParam = i;
12
- }
13
- }
14
- else if (tags[i].title == "config") {
15
- tags[i].title = "param";
16
- if (currentParam == null) {
17
- tags[i].name = "arguments"+"."+tags[i].name;
18
- }
19
- else if (tags[i].name.indexOf(tags[currentParam].name+".") != 0) {
20
- tags[i].name = tags[currentParam].name+"."+tags[i].name;
21
- }
22
- currentParam != null
23
- //tags[currentParam].properties.push(tags[i]);
24
- }
25
- else {
26
- currentParam = null;
27
- }
28
- }
29
- }
30
- }
31
- );
@@ -1,43 +0,0 @@
1
- JSDOC.PluginManager.registerPlugin(
2
- "JSDOC.tagSynonyms",
3
- {
4
- onDocCommentSrc: function(comment) {
5
- comment.src = comment.src.replace(/@methodOf\b/i, "@function\n@memberOf");
6
- comment.src = comment.src.replace(/@fieldOf\b/i, "@field\n@memberOf");
7
- },
8
-
9
- onDocCommentTags: function(comment) {
10
- for (var i = 0, l = comment.tags.length; i < l; i++) {
11
- var title = comment.tags[i].title.toLowerCase();
12
- var syn;
13
- if ((syn = JSDOC.tagSynonyms.synonyms["="+title])) {
14
- comment.tags[i].title = syn;
15
- }
16
- }
17
- }
18
- }
19
- );
20
-
21
- new Namespace(
22
- "JSDOC.tagSynonyms",
23
- function() {
24
- JSDOC.tagSynonyms.synonyms = {
25
- "=member": "memberOf",
26
- "=memberof": "memberOf",
27
- "=description": "desc",
28
- "=exception": "throws",
29
- "=argument": "param",
30
- "=returns": "return",
31
- "=classdescription": "class",
32
- "=fileoverview": "overview",
33
- "=extends": "augments",
34
- "=base": "augments",
35
- "=projectdescription": "overview",
36
- "=classdescription": "class",
37
- "=link": "see",
38
- "=borrows": "inherits",
39
- "=scope": "lends",
40
- "=construct": "constructor"
41
- }
42
- }
43
- );
@@ -1,346 +0,0 @@
1
- /**
2
- * @fileOverview
3
- * A bootstrap script that creates some basic required objects
4
- * for loading other scripts.
5
- * @author Michael Mathews, micmath@gmail.com
6
- * @version $Id: run.js 554 2008-04-01 00:12:25Z micmath $
7
- */
8
-
9
- /**
10
- * @namespace Keep track of any messages from the running script.
11
- */
12
- LOG = {
13
- warn: function(msg, e) {
14
- if (e) msg = e.fileName+", line "+e.lineNumber+": "+msg;
15
-
16
- msg = ">> WARNING: "+msg;
17
- LOG.warnings.push(msg);
18
- if (LOG.out) LOG.out.write(msg+"\n");
19
- else print(msg);
20
- },
21
-
22
- inform: function(msg) {
23
- msg = " > "+msg;
24
- if (LOG.out) LOG.out.write(msg+"\n");
25
- else if (typeof LOG.verbose != "undefined" && LOG.verbose) print(msg);
26
- }
27
- };
28
- LOG.warnings = [];
29
- LOG.verbose = false
30
- LOG.out = undefined;
31
-
32
- /**
33
- * @class Manipulate a filepath.
34
- */
35
- function FilePath(absPath, separator) {
36
- this.slash = separator || "/";
37
- this.root = this.slash;
38
- this.path = [];
39
- this.file = "";
40
-
41
- var parts = absPath.split(/[\\\/]/);
42
- if (parts) {
43
- if (parts.length) this.root = parts.shift() + this.slash;
44
- if (parts.length) this.file = parts.pop()
45
- if (parts.length) this.path = parts;
46
- }
47
-
48
- this.path = this.resolvePath();
49
- }
50
-
51
- /** Collapse any dot-dot or dot items in a filepath. */
52
- FilePath.prototype.resolvePath = function() {
53
- var resolvedPath = [];
54
- for (var i = 0; i < this.path.length; i++) {
55
- if (this.path[i] == "..") resolvedPath.pop();
56
- else if (this.path[i] != ".") resolvedPath.push(this.path[i]);
57
- }
58
- return resolvedPath;
59
- }
60
-
61
- /** Trim off the filename. */
62
- FilePath.prototype.toDir = function() {
63
- if (this.file) this.file = "";
64
- return this;
65
- }
66
-
67
- /** Go up a directory. */
68
- FilePath.prototype.upDir = function() {
69
- this.toDir();
70
- if (this.path.length) this.path.pop();
71
- return this;
72
- }
73
-
74
- FilePath.prototype.toString = function() {
75
- return this.root
76
- + this.path.join(this.slash)
77
- + ((this.path.length > 0)? this.slash : "")
78
- + this.file;
79
- }
80
-
81
- /**
82
- * Turn a path into just the name of the file.
83
- */
84
- FilePath.fileName = function(path) {
85
- var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
86
- return path.substring(nameStart);
87
- }
88
-
89
- /**
90
- * Get the extension of a filename
91
- */
92
- FilePath.fileExtension = function(filename) {
93
- return filename.split(".").pop().toLowerCase();
94
- };
95
-
96
- /**
97
- * Turn a path into just the directory part.
98
- */
99
- FilePath.dir = function(path) {
100
- var nameStart = Math.max(path.lastIndexOf("/")+1, path.lastIndexOf("\\")+1, 0);
101
- return path.substring(0, nameStart-1);
102
- }
103
-
104
-
105
- importClass(java.lang.System);
106
-
107
- /**
108
- * @namespace A collection of information about your system.
109
- */
110
- SYS = {
111
- /**
112
- * Information about your operating system: arch, name, version.
113
- * @type string
114
- */
115
- os: [
116
- new String(System.getProperty("os.arch")),
117
- new String(System.getProperty("os.name")),
118
- new String(System.getProperty("os.version"))
119
- ].join(", "),
120
-
121
- /**
122
- * Which way does your slash lean.
123
- * @type string
124
- */
125
- slash: System.getProperty("file.separator")||"/",
126
-
127
- /**
128
- * The path to the working directory where you ran java.
129
- * @type string
130
- */
131
- userDir: new String(System.getProperty("user.dir")),
132
-
133
- /**
134
- * Where is Java's home folder.
135
- * @type string
136
- */
137
- javaHome: new String(System.getProperty("java.home")),
138
-
139
- /**
140
- * The absolute path to the directory containing this script.
141
- * @type string
142
- */
143
- pwd: undefined
144
- };
145
-
146
- // jsrun appends an argument, with the path to here.
147
- if (arguments[arguments.length-1].match(/^-j=(.+)/)) {
148
- if (RegExp.$1.charAt(0) == SYS.slash || RegExp.$1.charAt(1) == ":") { // absolute path to here
149
- SYS.pwd = new FilePath(RegExp.$1).toDir().toString();
150
- }
151
- else { // relative path to here
152
- SYS.pwd = new FilePath(SYS.userDir + SYS.slash + RegExp.$1).toDir().toString();
153
- }
154
- arguments.pop();
155
- }
156
- else {
157
- print("The run.js script requires you use jsrun.jar.");
158
- quit();
159
- }
160
-
161
- // shortcut
162
- var File = Packages.java.io.File;
163
-
164
- /**
165
- * @namespace A collection of functions that deal with reading a writing to disk.
166
- */
167
- IO = {
168
-
169
- /**
170
- * Create a new file in the given directory, with the given name and contents.
171
- */
172
- saveFile: function(/**string*/ outDir, /**string*/ fileName, /**string*/ content) {
173
- var out = new Packages.java.io.PrintWriter(
174
- new Packages.java.io.OutputStreamWriter(
175
- new Packages.java.io.FileOutputStream(outDir+SYS.slash+fileName),
176
- IO.encoding
177
- )
178
- );
179
- out.write(content);
180
- out.flush();
181
- out.close();
182
- },
183
-
184
- /**
185
- * @type string
186
- */
187
- readFile: function(/**string*/ path) {
188
- if (!IO.exists(path)) {
189
- throw "File doesn't exist there: "+path;
190
- }
191
- return readFile(path, IO.encoding);
192
- },
193
-
194
- /**
195
- * @param inFile
196
- * @param outDir
197
- * @param [fileName=The original filename]
198
- */
199
- copyFile: function(/**string*/ inFile, /**string*/ outDir, /**string*/ fileName) {
200
- if (fileName == null) fileName = FilePath.fileName(inFile);
201
-
202
- var inFile = new File(inFile);
203
- var outFile = new File(outDir+SYS.slash+fileName);
204
-
205
- var bis = new Packages.java.io.BufferedInputStream(new Packages.java.io.FileInputStream(inFile), 4096);
206
- var bos = new Packages.java.io.BufferedOutputStream(new Packages.java.io.FileOutputStream(outFile), 4096);
207
- var theChar;
208
- while ((theChar = bis.read()) != -1) {
209
- bos.write(theChar);
210
- }
211
- bos.close();
212
- bis.close();
213
- },
214
-
215
- /**
216
- * Creates a series of nested directories.
217
- */
218
- mkPath: function(/**Array*/ path) {
219
- if (path.constructor != Array) path = path.split(/[\\\/]/);
220
- var make = "";
221
- for (var i = 0, l = path.length; i < l; i++) {
222
- make += path[i] + SYS.slash;
223
- if (! IO.exists(make)) {
224
- IO.makeDir(make);
225
- }
226
- }
227
- },
228
-
229
- /**
230
- * Creates a directory at the given path.
231
- */
232
- makeDir: function(/**string*/ path) {
233
- (new File(path)).mkdir();
234
- },
235
-
236
- /**
237
- * @type string[]
238
- * @param dir The starting directory to look in.
239
- * @param [recurse=1] How many levels deep to scan.
240
- * @returns An array of all the paths to files in the given dir.
241
- */
242
- ls: function(/**string*/ dir, /**number*/ recurse, _allFiles, _path) {
243
- if (_path === undefined) { // initially
244
- var _allFiles = [];
245
- var _path = [dir];
246
- }
247
- if (_path.length == 0) return _allFiles;
248
- if (recurse === undefined) recurse = 1;
249
-
250
- dir = new File(dir);
251
- if (!dir.directory) return [String(dir)];
252
- var files = dir.list();
253
-
254
- for (var f = 0; f < files.length; f++) {
255
- var file = String(files[f]);
256
- if (file.match(/^\.[^\.\/\\]/)) continue; // skip dot files
257
-
258
- if ((new File(_path.join(SYS.slash)+SYS.slash+file)).list()) { // it's a directory
259
- _path.push(file);
260
- if (_path.length-1 < recurse) IO.ls(_path.join(SYS.slash), recurse, _allFiles, _path);
261
- _path.pop();
262
- }
263
- else {
264
- _allFiles.push((_path.join(SYS.slash)+SYS.slash+file).replace(SYS.slash+SYS.slash, SYS.slash));
265
- }
266
- }
267
-
268
- return _allFiles;
269
- },
270
-
271
- /**
272
- * @type boolean
273
- */
274
- exists: function(/**string*/ path) {
275
- file = new File(path);
276
-
277
- if (file.isDirectory()){
278
- return true;
279
- }
280
- if (!file.exists()){
281
- return false;
282
- }
283
- if (!file.canRead()){
284
- return false;
285
- }
286
- return true;
287
- },
288
-
289
- /**
290
- *
291
- */
292
- open: function(/**string*/ path, /**string*/ append) {
293
- var append = true;
294
- var outFile = new File(path);
295
- var out = new Packages.java.io.PrintWriter(
296
- new Packages.java.io.OutputStreamWriter(
297
- new Packages.java.io.FileOutputStream(outFile, append),
298
- IO.encoding
299
- )
300
- );
301
- return out;
302
- },
303
-
304
- /**
305
- * Sets {@link IO.encoding}.
306
- * Encoding is used when reading and writing text to files,
307
- * and in the meta tags of HTML output.
308
- */
309
- setEncoding: function(/**string*/ encoding) {
310
- if (/ISO-8859-([0-9]+)/i.test(encoding)) {
311
- IO.encoding = "ISO8859_"+RegExp.$1;
312
- }
313
- else {
314
- IO.encoding = encoding;
315
- }
316
- },
317
-
318
- /**
319
- * @default "utf-8"
320
- * @private
321
- */
322
- encoding: "utf-8",
323
-
324
- /**
325
- * Load the given script.
326
- */
327
- include: function(relativePath) {
328
- load(SYS.pwd+relativePath);
329
- },
330
-
331
- /**
332
- * Loads all scripts from the given directory path.
333
- */
334
- includeDir: function(path) {
335
- if (!path) return;
336
-
337
- for (var lib = IO.ls(SYS.pwd+path), i = 0; i < lib.length; i++)
338
- load(lib[i]);
339
- }
340
- }
341
-
342
- // now run the application
343
- IO.include("frame.js");
344
- IO.include("main.js");
345
-
346
- main();