xpcomcore-rubygem 0.3.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. data/README.markdown +14 -0
  2. data/Rakefile +13 -11
  3. data/VERSION +1 -1
  4. data/bin/xpcomcore +7 -0
  5. data/lib/xpcomcore-rubygem.rb +9 -0
  6. data/lib/xpcomcore-rubygem/commands.rb +54 -0
  7. data/lib/xpcomcore-rubygem/commands/generate.rb +23 -0
  8. data/lib/xpcomcore-rubygem/commands/generate/application.rb +63 -0
  9. data/lib/xpcomcore-rubygem/commands/generate/jeweler_builder_command.rb +108 -0
  10. data/lib/xpcomcore-rubygem/commands/generate/library.rb +25 -0
  11. data/lib/xpcomcore-rubygem/commands/generate/template_helpers.rb +78 -0
  12. data/lib/xpcomcore-rubygem/commands/launch.rb +129 -0
  13. data/templates/application/application.ini.erb +12 -0
  14. data/templates/application/chrome/chrome.manifest.erb +1 -0
  15. data/templates/application/chrome/content/xul/main_window.xul.erb +6 -0
  16. data/{extension → templates/application}/components/bootstrapper.js +1 -1
  17. data/templates/application/defaults/preferences/prefs.js.erb +7 -0
  18. data/templates/shared/jsdoc_doc_task.erb +7 -0
  19. data/templates/shared/xultestrunner_test_task.erb +7 -0
  20. data/xpcomcore-rubygem.gemspec +48 -136
  21. data/xpcomcore/Rakefile +42 -19
  22. data/xpcomcore/bootstrapper.js +1 -3
  23. data/xpcomcore/{VERSION.yml → build_properties.yml} +3 -0
  24. data/xpcomcore/components/XPCOMCore.js +0 -2
  25. data/xpcomcore/doc/files.html +10 -10
  26. data/xpcomcore/doc/index.html +17 -17
  27. data/xpcomcore/doc/symbols/_global_.html +10 -9
  28. data/xpcomcore/doc/symbols/{Error.html → error.html} +10 -9
  29. data/xpcomcore/doc/symbols/{File.html → file.html} +13 -12
  30. data/xpcomcore/doc/symbols/{File.NoSuchFileError.html → file.nosuchfileerror.html} +13 -12
  31. data/xpcomcore/doc/symbols/{Kernel.html → kernel.html} +48 -47
  32. data/xpcomcore/doc/symbols/{LoadError.html → loaderror.html} +13 -12
  33. data/xpcomcore/doc/symbols/{SelfConceptError.html → selfconcepterror.html} +13 -12
  34. data/xpcomcore/doc/symbols/{Sys.html → sys.html} +12 -11
  35. data/xpcomcore/doc/symbols/{XPCBuiltins.html → xpcbuiltins.html} +11 -10
  36. metadata +61 -135
  37. data/README.rdoc +0 -18
  38. data/bin/xpcomcore-firefox +0 -4
  39. data/bin/xpcomcore-rubygem-install +0 -205
  40. data/extension/README.txt +0 -1
  41. data/extension/install.rdf +0 -16
  42. data/xpcomcore/etc/jsdoc-toolkit/README.txt +0 -186
  43. data/xpcomcore/etc/jsdoc-toolkit/app/frame.js +0 -33
  44. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Chain.js +0 -102
  45. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Dumper.js +0 -144
  46. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Hash.js +0 -84
  47. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Link.js +0 -153
  48. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Namespace.js +0 -10
  49. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Opt.js +0 -134
  50. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Reflection.js +0 -26
  51. data/xpcomcore/etc/jsdoc-toolkit/app/frame/String.js +0 -93
  52. data/xpcomcore/etc/jsdoc-toolkit/app/frame/Testrun.js +0 -129
  53. data/xpcomcore/etc/jsdoc-toolkit/app/handlers/FOODOC.js +0 -26
  54. data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC.js +0 -26
  55. data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js +0 -159
  56. data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js +0 -16
  57. data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js +0 -292
  58. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC.js +0 -104
  59. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocComment.js +0 -200
  60. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocTag.js +0 -294
  61. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js +0 -126
  62. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js +0 -109
  63. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Lang.js +0 -144
  64. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Parser.js +0 -145
  65. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js +0 -33
  66. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Symbol.js +0 -645
  67. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js +0 -241
  68. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TextStream.js +0 -41
  69. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Token.js +0 -18
  70. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js +0 -332
  71. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js +0 -133
  72. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Util.js +0 -32
  73. data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Walker.js +0 -474
  74. data/xpcomcore/etc/jsdoc-toolkit/app/main.js +0 -111
  75. data/xpcomcore/etc/jsdoc-toolkit/app/plugins/commentSrcJson.js +0 -20
  76. data/xpcomcore/etc/jsdoc-toolkit/app/plugins/frameworkPrototype.js +0 -16
  77. data/xpcomcore/etc/jsdoc-toolkit/app/plugins/functionCall.js +0 -10
  78. data/xpcomcore/etc/jsdoc-toolkit/app/plugins/publishSrcHilite.js +0 -62
  79. data/xpcomcore/etc/jsdoc-toolkit/app/plugins/symbolLink.js +0 -10
  80. data/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagParamConfig.js +0 -31
  81. data/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagSynonyms.js +0 -43
  82. data/xpcomcore/etc/jsdoc-toolkit/app/run.js +0 -348
  83. data/xpcomcore/etc/jsdoc-toolkit/app/t/TestDoc.js +0 -144
  84. data/xpcomcore/etc/jsdoc-toolkit/app/t/runner.js +0 -13
  85. data/xpcomcore/etc/jsdoc-toolkit/app/test.js +0 -325
  86. data/xpcomcore/etc/jsdoc-toolkit/app/test/addon.js +0 -24
  87. data/xpcomcore/etc/jsdoc-toolkit/app/test/anon_inner.js +0 -14
  88. data/xpcomcore/etc/jsdoc-toolkit/app/test/augments.js +0 -31
  89. data/xpcomcore/etc/jsdoc-toolkit/app/test/augments2.js +0 -26
  90. data/xpcomcore/etc/jsdoc-toolkit/app/test/borrows.js +0 -46
  91. data/xpcomcore/etc/jsdoc-toolkit/app/test/borrows2.js +0 -23
  92. data/xpcomcore/etc/jsdoc-toolkit/app/test/config.js +0 -22
  93. data/xpcomcore/etc/jsdoc-toolkit/app/test/constructs.js +0 -18
  94. data/xpcomcore/etc/jsdoc-toolkit/app/test/encoding.js +0 -10
  95. data/xpcomcore/etc/jsdoc-toolkit/app/test/encoding_other.js +0 -12
  96. data/xpcomcore/etc/jsdoc-toolkit/app/test/event.js +0 -54
  97. data/xpcomcore/etc/jsdoc-toolkit/app/test/exports.js +0 -14
  98. data/xpcomcore/etc/jsdoc-toolkit/app/test/functions_anon.js +0 -39
  99. data/xpcomcore/etc/jsdoc-toolkit/app/test/functions_nested.js +0 -33
  100. data/xpcomcore/etc/jsdoc-toolkit/app/test/global.js +0 -13
  101. data/xpcomcore/etc/jsdoc-toolkit/app/test/globals.js +0 -25
  102. data/xpcomcore/etc/jsdoc-toolkit/app/test/ignore.js +0 -10
  103. data/xpcomcore/etc/jsdoc-toolkit/app/test/inner.js +0 -16
  104. data/xpcomcore/etc/jsdoc-toolkit/app/test/jsdoc_test.js +0 -477
  105. data/xpcomcore/etc/jsdoc-toolkit/app/test/lend.js +0 -33
  106. data/xpcomcore/etc/jsdoc-toolkit/app/test/memberof.js +0 -19
  107. data/xpcomcore/etc/jsdoc-toolkit/app/test/memberof_constructor.js +0 -17
  108. data/xpcomcore/etc/jsdoc-toolkit/app/test/module.js +0 -17
  109. data/xpcomcore/etc/jsdoc-toolkit/app/test/name.js +0 -19
  110. data/xpcomcore/etc/jsdoc-toolkit/app/test/namespace_nested.js +0 -23
  111. data/xpcomcore/etc/jsdoc-toolkit/app/test/nocode.js +0 -13
  112. data/xpcomcore/etc/jsdoc-toolkit/app/test/oblit_anon.js +0 -20
  113. data/xpcomcore/etc/jsdoc-toolkit/app/test/overview.js +0 -20
  114. data/xpcomcore/etc/jsdoc-toolkit/app/test/param_inline.js +0 -37
  115. data/xpcomcore/etc/jsdoc-toolkit/app/test/params_optional.js +0 -8
  116. data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype.js +0 -17
  117. data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_nested.js +0 -9
  118. data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit.js +0 -13
  119. data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit_constructor.js +0 -24
  120. data/xpcomcore/etc/jsdoc-toolkit/app/test/public.js +0 -10
  121. data/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/code.js +0 -5
  122. data/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/notcode.txt +0 -5
  123. data/xpcomcore/etc/jsdoc-toolkit/app/test/shared.js +0 -42
  124. data/xpcomcore/etc/jsdoc-toolkit/app/test/shared2.js +0 -2
  125. data/xpcomcore/etc/jsdoc-toolkit/app/test/shortcuts.js +0 -22
  126. data/xpcomcore/etc/jsdoc-toolkit/app/test/static_this.js +0 -13
  127. data/xpcomcore/etc/jsdoc-toolkit/app/test/synonyms.js +0 -31
  128. data/xpcomcore/etc/jsdoc-toolkit/app/test/tosource.js +0 -23
  129. data/xpcomcore/etc/jsdoc-toolkit/app/test/variable_redefine.js +0 -14
  130. data/xpcomcore/etc/jsdoc-toolkit/changes.txt +0 -96
  131. data/xpcomcore/etc/jsdoc-toolkit/conf/sample.conf +0 -31
  132. data/xpcomcore/etc/jsdoc-toolkit/java/build.xml +0 -36
  133. data/xpcomcore/etc/jsdoc-toolkit/java/build_1.4.xml +0 -36
  134. data/xpcomcore/etc/jsdoc-toolkit/java/classes/js.jar +0 -0
  135. data/xpcomcore/etc/jsdoc-toolkit/java/src/JsDebugRun.java +0 -21
  136. data/xpcomcore/etc/jsdoc-toolkit/java/src/JsRun.java +0 -21
  137. data/xpcomcore/etc/jsdoc-toolkit/jsdebug.jar +0 -0
  138. data/xpcomcore/etc/jsdoc-toolkit/jsrun.jar +0 -0
  139. data/xpcomcore/etc/jsdoc-toolkit/jsrun.sh +0 -52
  140. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl +0 -17
  141. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl +0 -56
  142. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/class.tmpl +0 -646
  143. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/index.tmpl +0 -39
  144. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/publish.js +0 -200
  145. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/default.css +0 -162
  146. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/header.html +0 -2
  147. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/index.html +0 -19
  148. data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/symbol.tmpl +0 -35
@@ -1,33 +0,0 @@
1
- /** @class */
2
- var Person = Class.create(
3
- /**
4
- @lends Person.prototype
5
- */
6
- {
7
- initialize: function(name) {
8
- this.name = name;
9
- },
10
- say: function(message) {
11
- return this.name + ': ' + message;
12
- }
13
- }
14
- );
15
-
16
- /** @lends Person.prototype */
17
- {
18
- /** like say but more musical */
19
- sing: function(song) {
20
- }
21
- }
22
-
23
- /** @lends Person */
24
- {
25
- getCount: function() {
26
- }
27
- }
28
-
29
- /** @lends Unknown.prototype */
30
- {
31
- notok: function() {
32
- }
33
- }
@@ -1,19 +0,0 @@
1
- /** @constructor */
2
- pack = function() {
3
- this.init = function(){}
4
- function config(){}
5
- }
6
-
7
- pack.build = function(task) {};
8
-
9
- /** @memberOf pack */
10
- pack.install = function() {}
11
-
12
- /** @memberOf pack */
13
- pack.install.overwrite = function() {}
14
-
15
- /** @memberOf pack */
16
- clean = function() {}
17
-
18
- /** @memberOf pack-config */
19
- install = function() {};
@@ -1,17 +0,0 @@
1
- /** @constructor */
2
- function Circle(){}
3
-
4
- /**
5
- @constructor
6
- @memberOf Circle#
7
- */
8
- Circle.prototype.Tangent = function(){};
9
-
10
- // renaming Circle#Tangent to Circle#Circle#Tangent
11
-
12
- /**
13
- @memberOf Circle#Tangent#
14
- */
15
- Circle.prototype.Tangent.prototype.getDiameter = function(){};
16
-
17
-
@@ -1,17 +0,0 @@
1
- /** @namespace */
2
- myProject = myProject || {};
3
-
4
- /** @namespace */
5
- myProject.myModule = (function () {
6
- /** describe myPrivateVar here */
7
- var myPrivateVar = "";
8
-
9
- var myPrivateMethod = function () {
10
- }
11
-
12
- /** @scope myProject.myModule */
13
- return {
14
- myPublicMethod: function () {
15
- }
16
- };
17
- })();
@@ -1,19 +0,0 @@
1
- /**
2
- @name Response
3
- @class
4
- */
5
-
6
- Response.prototype = {
7
- /**
8
- @name Response#text
9
- @function
10
- @description
11
- Gets the body of the response as plain text
12
- @returns {String}
13
- Response as text
14
- */
15
-
16
- text: function() {
17
- return this.nativeResponse.responseText;
18
- }
19
- }
@@ -1,23 +0,0 @@
1
- /**
2
- @namespace This is the first namespace.
3
- */
4
- ns1 = {};
5
-
6
- /**
7
- This is the second namespace.
8
- @namespace
9
- */
10
- ns1.ns2 = {};
11
-
12
- /**
13
- This part of ns1.ns2
14
- @constructor
15
- */
16
- ns1.ns2.Function1 = function() {
17
- };
18
-
19
- ns1.staticFunction = function() {
20
- };
21
-
22
- /** A static field in a namespace. */
23
- ns1.ns2.staticField = 1;
@@ -1,13 +0,0 @@
1
- /**#nocode+*/
2
- /**
3
- @name star
4
- @function
5
- */
6
- function blahblah() {
7
-
8
- }
9
- /**#nocode-*/
10
-
11
- function yaddayadda() {
12
-
13
- }
@@ -1,20 +0,0 @@
1
- /** the options */
2
- opt = Opt.get(
3
- arguments,
4
- {
5
- d: "directory",
6
- c: "conf",
7
- "D[]": "define"
8
- }
9
- );
10
-
11
- /** configuration */
12
- opt.conf = {
13
- /** keep */
14
- keep: true,
15
- /** base */
16
- base: getBase(this, {p: properties})
17
- }
18
-
19
-
20
-
@@ -1,20 +0,0 @@
1
- /**
2
- * @overview This "library" contains a
3
- * lot of classes and functions.
4
- * @example
5
- <pre>
6
- var x (x < 1);
7
- alert("This 'is' \"code\"");
8
- </pre>
9
- * @name My Cool Library
10
- * @author Joe Smith jsmith@company.com
11
- * @version 0.1
12
- */
13
-
14
- /**
15
- * Gets the current foo
16
- * @param {String} fooId The unique identifier for the foo.
17
- * @return {Object} Returns the current foo.
18
- */
19
- function getFoo(fooID){
20
- }
@@ -1,37 +0,0 @@
1
- /**
2
- @constructor
3
- @param columns The number of columns.
4
- */
5
- function Layout(/**int*/columns){
6
- /**
7
- @param [id] The id of the element.
8
- @param elName The name of the element.
9
- */
10
- this.getElement = function(
11
- /** string */ elName,
12
- /** number|string */ id
13
- ) {
14
- };
15
-
16
- /**
17
- @constructor
18
- */
19
- this.Canvas = function(top, left, /**int*/width, height) {
20
- /** Is it initiated yet? */
21
- this.initiated = true;
22
- }
23
-
24
- this.rotate = function(/**nothing*/) {
25
- }
26
-
27
- /**
28
- @param x
29
- @param y
30
- @param {zoppler} z*/
31
- this.init = function(x, y, /**abbler*/z) {
32
- /** The xyz. */
33
- this.xyz = x+y+z;
34
- this.getXyz = function() {
35
- }
36
- }
37
- }
@@ -1,8 +0,0 @@
1
-
2
- /**
3
- * @param {Page[]} pages
4
- * @param {number} [id] Specifies the id, if applicable.
5
- * @param {String} [title = This is untitled.] Specifies the title.
6
- */
7
- function Document(pages, id, title){
8
- }
@@ -1,17 +0,0 @@
1
- /** @constructor */
2
- function Article() {
3
- }
4
-
5
- Article.prototype.init = function(title) {
6
- /** the instance title */
7
- this.title = title;
8
-
9
- /** the static counter */
10
- Article.counter = 1;
11
- }
12
-
13
- a = new Article();
14
- a.Init("my title");
15
-
16
- print(a.title);
17
- print(Article.counter);
@@ -1,9 +0,0 @@
1
- /** @constructor */
2
- function Word() {
3
- }
4
-
5
- Word.prototype.reverse = function() {
6
- }
7
-
8
- Word.prototype.reverse.utf8 = function() {
9
- }
@@ -1,13 +0,0 @@
1
- /** @constructor */
2
- function Article() {
3
- }
4
-
5
- Article.prototype = {
6
- /** instance get title */
7
- getTitle: function(){
8
- }
9
- }
10
-
11
- /** static get title */
12
- Article.getTitle = function(){
13
- }
@@ -1,24 +0,0 @@
1
- /** @constructor */
2
- function Article() {
3
- }
4
-
5
- Article.prototype = {
6
- /** @constructor */
7
- Title: function(title) {
8
- /** the value of the Title instance */
9
- this.title = title;
10
- },
11
-
12
- init: function(pages) {
13
- /** the value of the pages of the Article instance */
14
- this.pages = pages;
15
- }
16
- }
17
-
18
- f = new Article();
19
- f.init("one two three");
20
-
21
- t = new f.Title("my title");
22
-
23
- print(f.pages);
24
- print(t.title);
@@ -1,10 +0,0 @@
1
- /**@constructor*/
2
- function Foo() {
3
- /**
4
- @public
5
- @static
6
- @field
7
- */
8
- var bar = function(x) {
9
- }
10
- }
@@ -1,5 +0,0 @@
1
- /**
2
- @class
3
- */
4
- function thisiscode() {
5
- }
@@ -1,5 +0,0 @@
1
- (This is not code)
2
- function foo(){{{{
3
- (
4
- !
5
- @
@@ -1,42 +0,0 @@
1
-
2
- /**
3
- * Builtin object.
4
- * @class
5
- * @name Array
6
- */
7
-
8
- /**#@+
9
- * Extension to builtin array.
10
- * @memberOf Array
11
- * @method
12
- */
13
-
14
- /**
15
- * @returns Boolen if some array members...
16
- */
17
- Array.prototype.some = function(){};
18
-
19
- /**
20
- * Change every element of an array.
21
- * @returns Filtered array copy.
22
- */
23
- Array.prototype.filter = function(){};
24
-
25
- /**#@-*/
26
-
27
-
28
- /**
29
- * A first in, first out data structure.
30
- * @constructor
31
- */
32
- Queue = function(){};
33
-
34
- /**#@+
35
- * Extension to Queue.
36
- * @memberOf Queue
37
- */
38
-
39
- rewind = function(){
40
- }
41
-
42
- // should close automatically here.
@@ -1,2 +0,0 @@
1
- startOver = function(){
2
- }
@@ -1,22 +0,0 @@
1
- // /**#=+
2
- // * {
3
- // * 'D': 'Date.prototype',
4
- // * '$N': 'Number'
5
- // * }
6
- // */
7
- // var D = Date.prototype,
8
- // $N = Number;
9
- //
10
- // D.locale = function(){
11
- // };
12
- //
13
- // /**
14
- // @return {string} The cardinal number string.
15
- // */
16
- // $N.nth = function(n){
17
- // };
18
- //
19
- // LOAD.file = function(){
20
- // }
21
- //
22
- // /**#=-*/
@@ -1,13 +0,0 @@
1
- /** the parent */
2
- var box = {};
3
-
4
- /** @namespace */
5
- box.holder = {}
6
-
7
- box.holder.foo = function() {
8
- /** the counter */
9
- this.counter = 1;
10
- }
11
-
12
- box.holder.foo();
13
- print(box.holder.counter);
@@ -1,31 +0,0 @@
1
- /**
2
- @class
3
- @inherits Bar#zop as #my_zop
4
- */
5
- function Foo() {
6
- /** this is a zip. */
7
- this.zip = function() {}
8
-
9
- /** from Bar */
10
- this.my_zop = new Bar().zop;
11
- }
12
-
13
- /**
14
- @class
15
- @borrows Foo#zip as this.my_zip
16
- */
17
- function Bar() {
18
- /** this is a zop. */
19
- this.zop = function() {}
20
-
21
- /** from Foo */
22
- this.my_zip = new Foo().zip;
23
- }
24
-
25
- /** @namespace */
26
- var myObject = {
27
- /**
28
- @type function
29
- */
30
- myFunc: getFunction()
31
- }