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.
- data/README.markdown +14 -0
- data/Rakefile +13 -11
- data/VERSION +1 -1
- data/bin/xpcomcore +7 -0
- data/lib/xpcomcore-rubygem.rb +9 -0
- data/lib/xpcomcore-rubygem/commands.rb +54 -0
- data/lib/xpcomcore-rubygem/commands/generate.rb +23 -0
- data/lib/xpcomcore-rubygem/commands/generate/application.rb +63 -0
- data/lib/xpcomcore-rubygem/commands/generate/jeweler_builder_command.rb +108 -0
- data/lib/xpcomcore-rubygem/commands/generate/library.rb +25 -0
- data/lib/xpcomcore-rubygem/commands/generate/template_helpers.rb +78 -0
- data/lib/xpcomcore-rubygem/commands/launch.rb +129 -0
- data/templates/application/application.ini.erb +12 -0
- data/templates/application/chrome/chrome.manifest.erb +1 -0
- data/templates/application/chrome/content/xul/main_window.xul.erb +6 -0
- data/{extension → templates/application}/components/bootstrapper.js +1 -1
- data/templates/application/defaults/preferences/prefs.js.erb +7 -0
- data/templates/shared/jsdoc_doc_task.erb +7 -0
- data/templates/shared/xultestrunner_test_task.erb +7 -0
- data/xpcomcore-rubygem.gemspec +48 -136
- data/xpcomcore/Rakefile +42 -19
- data/xpcomcore/bootstrapper.js +1 -3
- data/xpcomcore/{VERSION.yml → build_properties.yml} +3 -0
- data/xpcomcore/components/XPCOMCore.js +0 -2
- data/xpcomcore/doc/files.html +10 -10
- data/xpcomcore/doc/index.html +17 -17
- data/xpcomcore/doc/symbols/_global_.html +10 -9
- data/xpcomcore/doc/symbols/{Error.html → error.html} +10 -9
- data/xpcomcore/doc/symbols/{File.html → file.html} +13 -12
- data/xpcomcore/doc/symbols/{File.NoSuchFileError.html → file.nosuchfileerror.html} +13 -12
- data/xpcomcore/doc/symbols/{Kernel.html → kernel.html} +48 -47
- data/xpcomcore/doc/symbols/{LoadError.html → loaderror.html} +13 -12
- data/xpcomcore/doc/symbols/{SelfConceptError.html → selfconcepterror.html} +13 -12
- data/xpcomcore/doc/symbols/{Sys.html → sys.html} +12 -11
- data/xpcomcore/doc/symbols/{XPCBuiltins.html → xpcbuiltins.html} +11 -10
- metadata +61 -135
- data/README.rdoc +0 -18
- data/bin/xpcomcore-firefox +0 -4
- data/bin/xpcomcore-rubygem-install +0 -205
- data/extension/README.txt +0 -1
- data/extension/install.rdf +0 -16
- data/xpcomcore/etc/jsdoc-toolkit/README.txt +0 -186
- data/xpcomcore/etc/jsdoc-toolkit/app/frame.js +0 -33
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Chain.js +0 -102
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Dumper.js +0 -144
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Hash.js +0 -84
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Link.js +0 -153
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Namespace.js +0 -10
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Opt.js +0 -134
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Reflection.js +0 -26
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/String.js +0 -93
- data/xpcomcore/etc/jsdoc-toolkit/app/frame/Testrun.js +0 -129
- data/xpcomcore/etc/jsdoc-toolkit/app/handlers/FOODOC.js +0 -26
- data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC.js +0 -26
- data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js +0 -159
- data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js +0 -16
- data/xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js +0 -292
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC.js +0 -104
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocComment.js +0 -200
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocTag.js +0 -294
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js +0 -126
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js +0 -109
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Lang.js +0 -144
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Parser.js +0 -145
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js +0 -33
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Symbol.js +0 -645
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js +0 -241
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TextStream.js +0 -41
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Token.js +0 -18
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js +0 -332
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js +0 -133
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Util.js +0 -32
- data/xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Walker.js +0 -474
- data/xpcomcore/etc/jsdoc-toolkit/app/main.js +0 -111
- data/xpcomcore/etc/jsdoc-toolkit/app/plugins/commentSrcJson.js +0 -20
- data/xpcomcore/etc/jsdoc-toolkit/app/plugins/frameworkPrototype.js +0 -16
- data/xpcomcore/etc/jsdoc-toolkit/app/plugins/functionCall.js +0 -10
- data/xpcomcore/etc/jsdoc-toolkit/app/plugins/publishSrcHilite.js +0 -62
- data/xpcomcore/etc/jsdoc-toolkit/app/plugins/symbolLink.js +0 -10
- data/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagParamConfig.js +0 -31
- data/xpcomcore/etc/jsdoc-toolkit/app/plugins/tagSynonyms.js +0 -43
- data/xpcomcore/etc/jsdoc-toolkit/app/run.js +0 -348
- data/xpcomcore/etc/jsdoc-toolkit/app/t/TestDoc.js +0 -144
- data/xpcomcore/etc/jsdoc-toolkit/app/t/runner.js +0 -13
- data/xpcomcore/etc/jsdoc-toolkit/app/test.js +0 -325
- data/xpcomcore/etc/jsdoc-toolkit/app/test/addon.js +0 -24
- data/xpcomcore/etc/jsdoc-toolkit/app/test/anon_inner.js +0 -14
- data/xpcomcore/etc/jsdoc-toolkit/app/test/augments.js +0 -31
- data/xpcomcore/etc/jsdoc-toolkit/app/test/augments2.js +0 -26
- data/xpcomcore/etc/jsdoc-toolkit/app/test/borrows.js +0 -46
- data/xpcomcore/etc/jsdoc-toolkit/app/test/borrows2.js +0 -23
- data/xpcomcore/etc/jsdoc-toolkit/app/test/config.js +0 -22
- data/xpcomcore/etc/jsdoc-toolkit/app/test/constructs.js +0 -18
- data/xpcomcore/etc/jsdoc-toolkit/app/test/encoding.js +0 -10
- data/xpcomcore/etc/jsdoc-toolkit/app/test/encoding_other.js +0 -12
- data/xpcomcore/etc/jsdoc-toolkit/app/test/event.js +0 -54
- data/xpcomcore/etc/jsdoc-toolkit/app/test/exports.js +0 -14
- data/xpcomcore/etc/jsdoc-toolkit/app/test/functions_anon.js +0 -39
- data/xpcomcore/etc/jsdoc-toolkit/app/test/functions_nested.js +0 -33
- data/xpcomcore/etc/jsdoc-toolkit/app/test/global.js +0 -13
- data/xpcomcore/etc/jsdoc-toolkit/app/test/globals.js +0 -25
- data/xpcomcore/etc/jsdoc-toolkit/app/test/ignore.js +0 -10
- data/xpcomcore/etc/jsdoc-toolkit/app/test/inner.js +0 -16
- data/xpcomcore/etc/jsdoc-toolkit/app/test/jsdoc_test.js +0 -477
- data/xpcomcore/etc/jsdoc-toolkit/app/test/lend.js +0 -33
- data/xpcomcore/etc/jsdoc-toolkit/app/test/memberof.js +0 -19
- data/xpcomcore/etc/jsdoc-toolkit/app/test/memberof_constructor.js +0 -17
- data/xpcomcore/etc/jsdoc-toolkit/app/test/module.js +0 -17
- data/xpcomcore/etc/jsdoc-toolkit/app/test/name.js +0 -19
- data/xpcomcore/etc/jsdoc-toolkit/app/test/namespace_nested.js +0 -23
- data/xpcomcore/etc/jsdoc-toolkit/app/test/nocode.js +0 -13
- data/xpcomcore/etc/jsdoc-toolkit/app/test/oblit_anon.js +0 -20
- data/xpcomcore/etc/jsdoc-toolkit/app/test/overview.js +0 -20
- data/xpcomcore/etc/jsdoc-toolkit/app/test/param_inline.js +0 -37
- data/xpcomcore/etc/jsdoc-toolkit/app/test/params_optional.js +0 -8
- data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype.js +0 -17
- data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_nested.js +0 -9
- data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit.js +0 -13
- data/xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit_constructor.js +0 -24
- data/xpcomcore/etc/jsdoc-toolkit/app/test/public.js +0 -10
- data/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/code.js +0 -5
- data/xpcomcore/etc/jsdoc-toolkit/app/test/scripts/notcode.txt +0 -5
- data/xpcomcore/etc/jsdoc-toolkit/app/test/shared.js +0 -42
- data/xpcomcore/etc/jsdoc-toolkit/app/test/shared2.js +0 -2
- data/xpcomcore/etc/jsdoc-toolkit/app/test/shortcuts.js +0 -22
- data/xpcomcore/etc/jsdoc-toolkit/app/test/static_this.js +0 -13
- data/xpcomcore/etc/jsdoc-toolkit/app/test/synonyms.js +0 -31
- data/xpcomcore/etc/jsdoc-toolkit/app/test/tosource.js +0 -23
- data/xpcomcore/etc/jsdoc-toolkit/app/test/variable_redefine.js +0 -14
- data/xpcomcore/etc/jsdoc-toolkit/changes.txt +0 -96
- data/xpcomcore/etc/jsdoc-toolkit/conf/sample.conf +0 -31
- data/xpcomcore/etc/jsdoc-toolkit/java/build.xml +0 -36
- data/xpcomcore/etc/jsdoc-toolkit/java/build_1.4.xml +0 -36
- data/xpcomcore/etc/jsdoc-toolkit/java/classes/js.jar +0 -0
- data/xpcomcore/etc/jsdoc-toolkit/java/src/JsDebugRun.java +0 -21
- data/xpcomcore/etc/jsdoc-toolkit/java/src/JsRun.java +0 -21
- data/xpcomcore/etc/jsdoc-toolkit/jsdebug.jar +0 -0
- data/xpcomcore/etc/jsdoc-toolkit/jsrun.jar +0 -0
- data/xpcomcore/etc/jsdoc-toolkit/jsrun.sh +0 -52
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl +0 -17
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl +0 -56
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/class.tmpl +0 -646
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/index.tmpl +0 -39
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/publish.js +0 -200
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/default.css +0 -162
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/header.html +0 -2
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/index.html +0 -19
- data/xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/symbol.tmpl +0 -35
@@ -0,0 +1 @@
|
|
1
|
+
content <%=@default_chrome_id%> file:content/
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
3
|
+
|
4
|
+
<window id="main" title="My App" width="300" height="300" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
5
|
+
<caption label="Hello World from <%=@app_name%>"/>
|
6
|
+
</window>
|
@@ -20,7 +20,7 @@ XPCOMCoreBootstrapper.prototype = {
|
|
20
20
|
dump("\n\nXPCOMCore already bootstrapped.\n\n");
|
21
21
|
} else {
|
22
22
|
var env = Components.classes["@mozilla.org/process/environment;1"].getService(Components.interfaces.nsIEnvironment);
|
23
|
-
var xpcomcoreBootstrapper = env.exists('
|
23
|
+
var xpcomcoreBootstrapper = env.exists('XPCOMCORE') && env.get('XPCOMCORE');
|
24
24
|
if (xpcomcoreBootstrapper) {
|
25
25
|
dump("\n\nLoading XPCOMCore Bootstrapper from " + xpcomcoreBootstrapper + ".\n\n");
|
26
26
|
Components.utils.import("file://" + xpcomcoreBootstrapper);
|
@@ -0,0 +1,7 @@
|
|
1
|
+
pref("toolkit.defaultChromeURI", "chrome://<%=@default_chrome_id%>/content/xul/main_window.xul");
|
2
|
+
pref("toolkit.defaultChromeFeatures", "chrome,menubar,resizable");
|
3
|
+
pref("javascript.options.showInConsole", true);
|
4
|
+
// TODO - only disable caching in development mode.
|
5
|
+
pref("nglayout.debug.disable_xul_cache", true);
|
6
|
+
pref("nglayout.debug.disable_xul_fastload", true);
|
7
|
+
pref("browser.dom.window.dump.enabled", true);
|
data/xpcomcore-rubygem.gemspec
CHANGED
@@ -5,164 +5,68 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{xpcomcore-rubygem}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["ggironda"]
|
12
|
-
s.date = %q{2009-10-
|
12
|
+
s.date = %q{2009-10-11}
|
13
|
+
s.default_executable = %q{xpcomcore}
|
13
14
|
s.description = %q{Gem to allow for using XPCOMCore via RubyGems}
|
14
15
|
s.email = %q{gabriel.gironda@gmail.com}
|
15
|
-
s.executables = ["xpcomcore
|
16
|
+
s.executables = ["xpcomcore"]
|
16
17
|
s.extra_rdoc_files = [
|
17
18
|
"LICENSE",
|
18
|
-
"README.
|
19
|
+
"README.markdown"
|
19
20
|
]
|
20
21
|
s.files = [
|
21
22
|
".document",
|
22
23
|
".gitignore",
|
23
24
|
".gitmodules",
|
24
25
|
"LICENSE",
|
25
|
-
"README.
|
26
|
+
"README.markdown",
|
26
27
|
"Rakefile",
|
27
28
|
"VERSION",
|
28
|
-
"bin/xpcomcore
|
29
|
-
"bin/xpcomcore-rubygem-install",
|
30
|
-
"extension/README.txt",
|
31
|
-
"extension/components/bootstrapper.js",
|
32
|
-
"extension/install.rdf",
|
29
|
+
"bin/xpcomcore",
|
33
30
|
"lib/xpcomcore-rubygem.rb",
|
31
|
+
"lib/xpcomcore-rubygem/commands.rb",
|
32
|
+
"lib/xpcomcore-rubygem/commands/generate.rb",
|
33
|
+
"lib/xpcomcore-rubygem/commands/generate/application.rb",
|
34
|
+
"lib/xpcomcore-rubygem/commands/generate/jeweler_builder_command.rb",
|
35
|
+
"lib/xpcomcore-rubygem/commands/generate/library.rb",
|
36
|
+
"lib/xpcomcore-rubygem/commands/generate/template_helpers.rb",
|
37
|
+
"lib/xpcomcore-rubygem/commands/launch.rb",
|
38
|
+
"templates/application/application.ini.erb",
|
39
|
+
"templates/application/chrome/chrome.manifest.erb",
|
40
|
+
"templates/application/chrome/content/xul/main_window.xul.erb",
|
41
|
+
"templates/application/components/bootstrapper.js",
|
42
|
+
"templates/application/defaults/preferences/prefs.js.erb",
|
43
|
+
"templates/shared/jsdoc_doc_task.erb",
|
44
|
+
"templates/shared/xultestrunner_test_task.erb",
|
34
45
|
"test/test_helper.rb",
|
35
46
|
"test/xpcomcore-rubygem_test.rb",
|
36
47
|
"xpcomcore-rubygem.gemspec",
|
37
48
|
"xpcomcore/LICENSE",
|
38
49
|
"xpcomcore/README",
|
39
50
|
"xpcomcore/Rakefile",
|
40
|
-
"xpcomcore/VERSION.yml",
|
41
51
|
"xpcomcore/bin/popen_helper.sh",
|
42
52
|
"xpcomcore/bootstrapper.js",
|
53
|
+
"xpcomcore/build_properties.yml",
|
43
54
|
"xpcomcore/components/XPCOMCore.js",
|
44
55
|
"xpcomcore/doc/files.html",
|
45
56
|
"xpcomcore/doc/index.html",
|
46
|
-
"xpcomcore/doc/symbols/Error.html",
|
47
|
-
"xpcomcore/doc/symbols/File.NoSuchFileError.html",
|
48
|
-
"xpcomcore/doc/symbols/File.html",
|
49
|
-
"xpcomcore/doc/symbols/Kernel.html",
|
50
|
-
"xpcomcore/doc/symbols/LoadError.html",
|
51
|
-
"xpcomcore/doc/symbols/SelfConceptError.html",
|
52
|
-
"xpcomcore/doc/symbols/Sys.html",
|
53
|
-
"xpcomcore/doc/symbols/XPCBuiltins.html",
|
54
57
|
"xpcomcore/doc/symbols/_global_.html",
|
58
|
+
"xpcomcore/doc/symbols/error.html",
|
59
|
+
"xpcomcore/doc/symbols/file.html",
|
60
|
+
"xpcomcore/doc/symbols/file.nosuchfileerror.html",
|
61
|
+
"xpcomcore/doc/symbols/kernel.html",
|
62
|
+
"xpcomcore/doc/symbols/loaderror.html",
|
63
|
+
"xpcomcore/doc/symbols/selfconcepterror.html",
|
55
64
|
"xpcomcore/doc/symbols/src/lib_file.js.html",
|
56
65
|
"xpcomcore/doc/symbols/src/lib_kernel.js.html",
|
57
66
|
"xpcomcore/doc/symbols/src/lib_sys.js.html",
|
58
67
|
"xpcomcore/doc/symbols/src/lib_xpc_builtins.js.html",
|
59
|
-
"xpcomcore/
|
60
|
-
"xpcomcore/
|
61
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Chain.js",
|
62
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Dumper.js",
|
63
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Hash.js",
|
64
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Link.js",
|
65
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Namespace.js",
|
66
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Opt.js",
|
67
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Reflection.js",
|
68
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/String.js",
|
69
|
-
"xpcomcore/etc/jsdoc-toolkit/app/frame/Testrun.js",
|
70
|
-
"xpcomcore/etc/jsdoc-toolkit/app/handlers/FOODOC.js",
|
71
|
-
"xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC.js",
|
72
|
-
"xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/DomReader.js",
|
73
|
-
"xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js",
|
74
|
-
"xpcomcore/etc/jsdoc-toolkit/app/handlers/XMLDOC/XMLParse.js",
|
75
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC.js",
|
76
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocComment.js",
|
77
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/DocTag.js",
|
78
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsDoc.js",
|
79
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/JsPlate.js",
|
80
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Lang.js",
|
81
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Parser.js",
|
82
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/PluginManager.js",
|
83
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Symbol.js",
|
84
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/SymbolSet.js",
|
85
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TextStream.js",
|
86
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Token.js",
|
87
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenReader.js",
|
88
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/TokenStream.js",
|
89
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Util.js",
|
90
|
-
"xpcomcore/etc/jsdoc-toolkit/app/lib/JSDOC/Walker.js",
|
91
|
-
"xpcomcore/etc/jsdoc-toolkit/app/main.js",
|
92
|
-
"xpcomcore/etc/jsdoc-toolkit/app/plugins/commentSrcJson.js",
|
93
|
-
"xpcomcore/etc/jsdoc-toolkit/app/plugins/frameworkPrototype.js",
|
94
|
-
"xpcomcore/etc/jsdoc-toolkit/app/plugins/functionCall.js",
|
95
|
-
"xpcomcore/etc/jsdoc-toolkit/app/plugins/publishSrcHilite.js",
|
96
|
-
"xpcomcore/etc/jsdoc-toolkit/app/plugins/symbolLink.js",
|
97
|
-
"xpcomcore/etc/jsdoc-toolkit/app/plugins/tagParamConfig.js",
|
98
|
-
"xpcomcore/etc/jsdoc-toolkit/app/plugins/tagSynonyms.js",
|
99
|
-
"xpcomcore/etc/jsdoc-toolkit/app/run.js",
|
100
|
-
"xpcomcore/etc/jsdoc-toolkit/app/t/TestDoc.js",
|
101
|
-
"xpcomcore/etc/jsdoc-toolkit/app/t/runner.js",
|
102
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test.js",
|
103
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/addon.js",
|
104
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/anon_inner.js",
|
105
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/augments.js",
|
106
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/augments2.js",
|
107
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/borrows.js",
|
108
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/borrows2.js",
|
109
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/config.js",
|
110
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/constructs.js",
|
111
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/encoding.js",
|
112
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/encoding_other.js",
|
113
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/event.js",
|
114
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/exports.js",
|
115
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/functions_anon.js",
|
116
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/functions_nested.js",
|
117
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/global.js",
|
118
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/globals.js",
|
119
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/ignore.js",
|
120
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/inner.js",
|
121
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/jsdoc_test.js",
|
122
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/lend.js",
|
123
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/memberof.js",
|
124
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/memberof_constructor.js",
|
125
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/module.js",
|
126
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/name.js",
|
127
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/namespace_nested.js",
|
128
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/nocode.js",
|
129
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/oblit_anon.js",
|
130
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/overview.js",
|
131
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/param_inline.js",
|
132
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/params_optional.js",
|
133
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/prototype.js",
|
134
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/prototype_nested.js",
|
135
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit.js",
|
136
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/prototype_oblit_constructor.js",
|
137
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/public.js",
|
138
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/scripts/code.js",
|
139
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/scripts/notcode.txt",
|
140
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/shared.js",
|
141
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/shared2.js",
|
142
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/shortcuts.js",
|
143
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/static_this.js",
|
144
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/synonyms.js",
|
145
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/tosource.js",
|
146
|
-
"xpcomcore/etc/jsdoc-toolkit/app/test/variable_redefine.js",
|
147
|
-
"xpcomcore/etc/jsdoc-toolkit/changes.txt",
|
148
|
-
"xpcomcore/etc/jsdoc-toolkit/conf/sample.conf",
|
149
|
-
"xpcomcore/etc/jsdoc-toolkit/java/build.xml",
|
150
|
-
"xpcomcore/etc/jsdoc-toolkit/java/build_1.4.xml",
|
151
|
-
"xpcomcore/etc/jsdoc-toolkit/java/classes/js.jar",
|
152
|
-
"xpcomcore/etc/jsdoc-toolkit/java/src/JsDebugRun.java",
|
153
|
-
"xpcomcore/etc/jsdoc-toolkit/java/src/JsRun.java",
|
154
|
-
"xpcomcore/etc/jsdoc-toolkit/jsdebug.jar",
|
155
|
-
"xpcomcore/etc/jsdoc-toolkit/jsrun.jar",
|
156
|
-
"xpcomcore/etc/jsdoc-toolkit/jsrun.sh",
|
157
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allclasses.tmpl",
|
158
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/allfiles.tmpl",
|
159
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/class.tmpl",
|
160
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/index.tmpl",
|
161
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/publish.js",
|
162
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/default.css",
|
163
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/header.html",
|
164
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/static/index.html",
|
165
|
-
"xpcomcore/etc/jsdoc-toolkit/templates/jsdoc/symbol.tmpl",
|
68
|
+
"xpcomcore/doc/symbols/sys.html",
|
69
|
+
"xpcomcore/doc/symbols/xpcbuiltins.html",
|
166
70
|
"xpcomcore/lib/file.js",
|
167
71
|
"xpcomcore/lib/kernel.js",
|
168
72
|
"xpcomcore/lib/sys.js",
|
@@ -178,16 +82,15 @@ Gem::Specification.new do |s|
|
|
178
82
|
"xpcomcore/test/xpc_builtins_test.js"
|
179
83
|
]
|
180
84
|
s.homepage = %q{http://github.com/gabrielg/xpcomcore-rubygem}
|
181
|
-
s.post_install_message = %q{
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
}
|
85
|
+
s.post_install_message = %q{[1m[31m[44m
|
86
|
+
|
87
|
+
STEP 1. OBTAIN A PIG. THIS ONE WILL DO:
|
88
|
+
|
89
|
+
_____
|
90
|
+
^..^ \9
|
91
|
+
(oo)_____/
|
92
|
+
WW WW Pig
|
93
|
+
[0m[0m}
|
191
94
|
s.rdoc_options = ["--charset=UTF-8"]
|
192
95
|
s.require_paths = ["lib"]
|
193
96
|
s.rubygems_version = %q{1.3.5}
|
@@ -203,13 +106,22 @@ usage information on using it to install the bootstrapper code for this gem.
|
|
203
106
|
|
204
107
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
205
108
|
s.add_runtime_dependency(%q<sys-uname>, [">= 0"])
|
109
|
+
s.add_runtime_dependency(%q<cmdparse>, [">= 0"])
|
110
|
+
s.add_runtime_dependency(%q<uuidtools>, [">= 2.0.0"])
|
111
|
+
s.add_runtime_dependency(%q<jeweler>, ["= 1.2.1"])
|
206
112
|
s.add_development_dependency(%q<colored>, [">= 0"])
|
207
113
|
else
|
208
114
|
s.add_dependency(%q<sys-uname>, [">= 0"])
|
115
|
+
s.add_dependency(%q<cmdparse>, [">= 0"])
|
116
|
+
s.add_dependency(%q<uuidtools>, [">= 2.0.0"])
|
117
|
+
s.add_dependency(%q<jeweler>, ["= 1.2.1"])
|
209
118
|
s.add_dependency(%q<colored>, [">= 0"])
|
210
119
|
end
|
211
120
|
else
|
212
121
|
s.add_dependency(%q<sys-uname>, [">= 0"])
|
122
|
+
s.add_dependency(%q<cmdparse>, [">= 0"])
|
123
|
+
s.add_dependency(%q<uuidtools>, [">= 2.0.0"])
|
124
|
+
s.add_dependency(%q<jeweler>, ["= 1.2.1"])
|
213
125
|
s.add_dependency(%q<colored>, [">= 0"])
|
214
126
|
end
|
215
127
|
end
|
data/xpcomcore/Rakefile
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
require 'yaml'
|
3
|
+
require 'jsdoc-toolkit/doc_task'
|
4
|
+
|
5
|
+
# TODO - fix this rakefile because it sucks sucks sucks
|
6
|
+
|
3
7
|
here = (Pathname(__FILE__).parent.expand_path)
|
4
8
|
|
5
9
|
task :test do
|
@@ -13,10 +17,9 @@ namespace :docs do
|
|
13
17
|
doc_dir = here + "doc"
|
14
18
|
jsdoc_loc = here + "etc/jsdoc-toolkit"
|
15
19
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
system(%Q[java -jar "#{jsdoc_loc}/jsrun.jar" "#{jsdoc_loc}/app/run.js" -r -a -t="#{jsdoc_loc}/templates/jsdoc" -d="#{doc_dir}" lib])
|
20
|
+
JsDocToolkit::DocTask.new(:build) do |doc|
|
21
|
+
doc.jsdoc_dir = 'doc'
|
22
|
+
doc.jsdoc_files = 'lib'
|
20
23
|
end
|
21
24
|
|
22
25
|
task :clean do
|
@@ -44,30 +47,50 @@ task :release => :build do
|
|
44
47
|
end
|
45
48
|
|
46
49
|
namespace :version do
|
47
|
-
|
50
|
+
properties_file = here + "build_properties.yml"
|
48
51
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
new_file = component_file.readlines.collect do |line|
|
56
|
-
next line unless line =~ /@XPCOMCORE_VERSION@/
|
57
|
-
js_version_string
|
52
|
+
ghetto_template = lambda do |file, identifier, new_val|
|
53
|
+
js_marker_comment = "// DO NOT REMOVE THIS COMMENT OR MOVE THIS LINE. THIS LINE IS AUTO-GENERATED FROM A RAKE TASK. @#{identifier}@"
|
54
|
+
|
55
|
+
new_file = file.readlines.collect do |line|
|
56
|
+
next line unless line =~ /#{Regexp.escape(js_marker_comment)}/
|
57
|
+
"#{new_val} #{js_marker_comment}"
|
58
58
|
end
|
59
59
|
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
|
61
|
+
file.open('w') { |f| f << new_file.join }
|
62
|
+
puts "Updated '#{file}' to reflect build_properties.yml"
|
63
|
+
|
64
|
+
system(%Q[cd "#{here}" && git add "#{file}" && git commit -m "Updating from build_properties.yml" "#{file}"])
|
63
65
|
end
|
64
66
|
|
67
|
+
|
68
|
+
task :update_component do
|
69
|
+
component_file = (Pathname(__FILE__).parent + "components/XPCOMCore.js").expand_path
|
70
|
+
current = YAML.load_file(properties_file.to_s)
|
71
|
+
version_string = "#{current['version']['major']}.#{current['version']['minor']}.#{current['version']['patch']}"
|
72
|
+
|
73
|
+
js_version_string = "var XPCOMCoreVersion = '#{version_string}';"
|
74
|
+
ghetto_template.call(component_file, 'XPCOMCORE_VERSION', js_version_string)
|
75
|
+
end
|
76
|
+
|
77
|
+
task :update_bootstrapper do
|
78
|
+
bootstrapper_file = (Pathname(__FILE__).parent + "bootstrapper.js").expand_path
|
79
|
+
properties = YAML.load_file(properties_file.to_s)
|
80
|
+
gecko_min_version = properties['gecko']['min_version']
|
81
|
+
|
82
|
+
gecko_min_version_string = "const requiredMinGeckoVersion = '#{gecko_min_version}';"
|
83
|
+
ghetto_template.call(bootstrapper_file, 'MIN_GECKO_VERSION', gecko_min_version_string)
|
84
|
+
end
|
85
|
+
|
86
|
+
task :update_files => [:update_component, :update_bootstrapper]
|
87
|
+
|
65
88
|
namespace :bump do
|
66
89
|
bumper = lambda do |version_part|
|
67
|
-
current = YAML.load_file(
|
90
|
+
current = YAML.load_file(properties_file.to_s)
|
68
91
|
puts "Current version is: #{current['version']['major']}.#{current['version']['minor']}.#{current['version']['patch']}"
|
69
92
|
current['version'][version_part] += 1
|
70
|
-
|
93
|
+
properties_file.open('w') { |f| f << YAML.dump(current) }
|
71
94
|
puts "Current version is now: #{current['version']['major']}.#{current['version']['minor']}.#{current['version']['patch']}"
|
72
95
|
end
|
73
96
|
|
data/xpcomcore/bootstrapper.js
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
const requiredMinGeckoVersion = '1.9.0';
|
2
|
-
var EXPORTED_SYMBOLS = ["XPCOMCore", "XPCOMCoreConfig"];
|
3
|
-
|
1
|
+
const requiredMinGeckoVersion = '1.9.0'; // DO NOT REMOVE THIS COMMENT OR MOVE THIS LINE. THIS LINE IS AUTO-GENERATED FROM A RAKE TASK. @MIN_GECKO_VERSION@
|
4
2
|
const $Cc = Components.classes;
|
5
3
|
const $Ci = Components.interfaces;
|
6
4
|
|
@@ -1,6 +1,4 @@
|
|
1
1
|
var XPCOMCoreVersion = '0.4.1'; // DO NOT REMOVE THIS COMMENT OR MOVE THIS LINE. THIS LINE IS AUTO-GENERATED FROM A RAKE TASK. @XPCOMCORE_VERSION@
|
2
|
-
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
3
|
-
|
4
2
|
const $Cc = Components.classes;
|
5
3
|
const $Ci = Components.interfaces;
|
6
4
|
|
data/xpcomcore/doc/files.html
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
3
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
4
|
<head>
|
5
|
-
<meta http-equiv="content-type" content="text/html; charset=utf-8"
|
5
|
+
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
6
6
|
|
7
7
|
<title>JsDoc Reference - File Index</title>
|
8
8
|
<meta name="generator" content="JsDoc Toolkit" />
|
@@ -186,21 +186,21 @@ ul.inheritsList
|
|
186
186
|
|
187
187
|
<li><i><a href="symbols/_global_.html">_global_</a></i></li>
|
188
188
|
|
189
|
-
<li><a href="symbols/
|
189
|
+
<li><a href="symbols/error.html">Error</a></li>
|
190
190
|
|
191
|
-
<li><a href="symbols/
|
191
|
+
<li><a href="symbols/file.html">File</a></li>
|
192
192
|
|
193
|
-
<li><a href="symbols/
|
193
|
+
<li><a href="symbols/file.nosuchfileerror.html">File.NoSuchFileError</a></li>
|
194
194
|
|
195
|
-
<li><a href="symbols/
|
195
|
+
<li><a href="symbols/kernel.html">Kernel</a></li>
|
196
196
|
|
197
|
-
<li><a href="symbols/
|
197
|
+
<li><a href="symbols/loaderror.html">LoadError</a></li>
|
198
198
|
|
199
|
-
<li><a href="symbols/
|
199
|
+
<li><a href="symbols/selfconcepterror.html">SelfConceptError</a></li>
|
200
200
|
|
201
|
-
<li><a href="symbols/
|
201
|
+
<li><a href="symbols/sys.html">Sys</a></li>
|
202
202
|
|
203
|
-
<li><a href="symbols/
|
203
|
+
<li><a href="symbols/xpcbuiltins.html">XPCBuiltins</a></li>
|
204
204
|
|
205
205
|
</ul>
|
206
206
|
<hr />
|
@@ -269,7 +269,7 @@ This file defines the implementation of our File object.
|
|
269
269
|
</div>
|
270
270
|
<div class="fineprint" style="clear:both">
|
271
271
|
|
272
|
-
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.3.
|
272
|
+
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blankt">JsDoc Toolkit</a> 2.3.2 on Sun Oct 11 2009 18:59:13 GMT-0500 (CDT)
|
273
273
|
</div>
|
274
274
|
</body>
|
275
275
|
</html>
|