ninjs 0.11.1 → 0.12.0
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.
- data/VERSION +1 -1
- data/bin/ninjs +0 -0
- data/lib/ninjs/command.rb +1 -1
- data/ninjs.gemspec +6 -5
- data/repository/ninjs/core/application.js +2 -2
- data/repository/ninjs/core/existence.js +8 -8
- data/repository/ninjs/core/extend.js +50 -2
- data/repository/ninjs/core/module.js +1 -4
- data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
- data/repository/ninjs/docs/Data/FileInfo.nd +3 -3
- data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
- data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
- data/repository/ninjs/docs/files/core/extend-js.html +1 -1
- data/repository/ninjs/docs/files/core/module-js.html +3 -3
- data/repository/ninjs/docs/index/Functions.html +11 -7
- data/repository/ninjs/docs/index/General.html +13 -9
- data/repository/ninjs/docs/javascript/searchdata.js +11 -11
- data/repository/ninjs/docs/search/FunctionsR.html +1 -1
- data/repository/ninjs/docs/search/FunctionsSymbols.html +20 -0
- data/repository/ninjs/docs/search/GeneralR.html +1 -1
- data/repository/ninjs/docs/search/GeneralSymbols.html +20 -0
- data/repository/ninjs/tests/ninjs.test.js +26 -4
- data/repository/ninjs/tests/ninjs.utilities.test.js +1 -1
- metadata +47 -7
- data/repository/ninjs/docs/files/existence-js.html +0 -54
- data/repository/ninjs/docs/styles/mystyles.css +0 -828
@@ -11,21 +11,25 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
<div id=Index><div class=IPageTitle>Index</div><div class=INavigationBar
|
14
|
+
<div id=Index><div class=IPageTitle>Index</div><div class=INavigationBar><a href="#Symbols">$#!</a> · 0-9 · <a href="#A">A</a> · B · <a href="#C">C</a> · <a href="#D">D</a> · <a href="#E">E</a> · <a href="#F">F</a> · G · H · <a href="#I">I</a> · J · K · L · <a href="#M">M</a> · <a href="#N">N</a> · O · P · Q · <a href="#R">R</a> · <a href="#S">S</a> · <a href="#T">T</a> · U · <a href="#V">V</a> · W · X · Y · Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="Symbols"></a>$#!</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule._run_tests" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>_run_tests</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="A"></a>A</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.actions" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')" class=ISymbol>actions</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication.add_module" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')" class=ISymbol>add_module</a>, <span class=IParent>NinjsApplication</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.add_test" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')" class=ISymbol>add_test</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#application.js" class=ISymbol>application.js</a></td></tr><tr><td class=IHeading><a name="C"></a>C</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.call_on_ready" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')" class=ISymbol>call_on_ready</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="D"></a>D</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.data" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')" class=ISymbol>data</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="E"></a>E</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.elements" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')" class=ISymbol>elements</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.execute" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')" class=ISymbol>execute</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#existence.js" class=ISymbol>existence.js</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#extend.js" class=ISymbol>extend.js</a></td></tr><tr><td class=IHeading><a name="F"></a>F</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><span class=ISymbol>Functions</span><div class=ISubIndex><span class=IParent>Global</span><div class=ISubIndex><a href="../files/core/existence-js.html#Functions" class=IFile>core/<wbr>existence.js</a><a href="../files/core/extend-js.html#Functions" class=IFile>core/<wbr>extend.js</a></div><a href="../files/core/application-js.html#NinjsApplication.Functions" class=IParent>NinjsApplication</a><a href="../files/core/module-js.html#NinjsModule.Functions" class=IParent>NinjsModule</a></div></td></tr><tr><td class=IHeading><a name="I"></a>I</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_array" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')" class=ISymbol>is_array</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_bool" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')" class=ISymbol>is_bool</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_date" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')" class=ISymbol>is_date</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_defined" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')" class=ISymbol>is_defined</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_number" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')" class=ISymbol>is_number</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_numeric" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')" class=ISymbol>is_numeric</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_regex" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')" class=ISymbol>is_regex</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_string" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')" class=ISymbol>is_string</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_typeof" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')" class=ISymbol>is_typeof</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/existence-js.html#is_undefined" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')" class=ISymbol>is_undefined</a></td></tr><tr><td class=IHeading><a name="M"></a>M</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/extend-js.html#method" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')" class=ISymbol>method</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#module.js" class=ISymbol>module.js</a></td></tr><tr><td class=IHeading><a name="N"></a>N</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.name" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')" class=ISymbol>name</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/nin-js.html#nin.js" class=ISymbol>nin.js</a></td></tr><tr><td class=ISymbolPrefix> </td><td class=IEntry><a href="../files/core/application-js.html#NinjsApplication" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')" class=ISymbol>NinjsApplication</a></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')" class=ISymbol>NinjsModule</a></td></tr><tr><td class=IHeading><a name="R"></a>R</td><td></td></tr><tr><td class=ISymbolPrefix id=IFirstSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')" class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=ISymbolPrefix id=ILastSymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.run_tests(beta)" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')" class=ISymbol>run_tests(beta)</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="S"></a>S</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.set_data" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')" class=ISymbol>set_data</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="T"></a>T</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.tests(beta)" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')" class=ISymbol>tests(beta)</a>, <span class=IParent>NinjsModule</span></td></tr><tr><td class=IHeading><a name="V"></a>V</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix> </td><td class=IEntry><a href="../files/core/module-js.html#NinjsModule.Variables" class=ISymbol>Variables</a>, <span class=IParent>NinjsModule</span></td></tr></table>
|
15
15
|
<!--START_ND_TOOLTIPS-->
|
16
|
-
<div class=CToolTip id="tt1"><div class=CFunction>
|
16
|
+
<div class=CToolTip id="tt1"><div class=CFunction>Runs the test files in the test array. </div></div><!--END_ND_TOOLTIPS-->
|
17
17
|
|
18
18
|
|
19
19
|
<!--START_ND_TOOLTIPS-->
|
20
|
-
<div class=CToolTip id="
|
20
|
+
<div class=CToolTip id="tt2"><div class=CFunction>The actions method contains code to be executed when run is called. </div></div><div class=CToolTip id="tt3"><div class=CFunction>Adds a NinjsModule to the application.</div></div><div class=CToolTip id="tt4"><div class=CFunction>Adds a test file to the tests array (beta).</div></div><!--END_ND_TOOLTIPS-->
|
21
21
|
|
22
22
|
|
23
23
|
<!--START_ND_TOOLTIPS-->
|
24
|
-
<div class=CToolTip id="tt5"><div class=
|
24
|
+
<div class=CToolTip id="tt5"><div class=CFunction>Waits for the DOM to be ready and then executes a callback.</div></div><!--END_ND_TOOLTIPS-->
|
25
25
|
|
26
26
|
|
27
27
|
<!--START_ND_TOOLTIPS-->
|
28
|
-
<div class=CToolTip id="tt6"><div class=
|
28
|
+
<div class=CToolTip id="tt6"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">this.data</td></tr></table></blockquote>The module’s data object</div></div><!--END_ND_TOOLTIPS-->
|
29
|
+
|
30
|
+
|
31
|
+
<!--START_ND_TOOLTIPS-->
|
32
|
+
<div class=CToolTip id="tt7"><div class=CFunction>Method to define module elements.</div></div><div class=CToolTip id="tt8"><div class=CFunction>Wrapper method that set’s up the environment and then calls actions.</div></div><!--END_ND_TOOLTIPS-->
|
29
33
|
|
30
34
|
|
31
35
|
<!--START_ND_TOOLTIPS-->
|
@@ -33,19 +37,19 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
33
37
|
|
34
38
|
|
35
39
|
<!--START_ND_TOOLTIPS-->
|
36
|
-
<div class=CToolTip id="
|
40
|
+
<div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_array = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determine if the suspect is an Array. </div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_bool = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a Boolean. </div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_date = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a Date. </div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_defined = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Checks if a variable is undefined.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_number = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a Number. </div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_numeric = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determine if the suspect string represents a numeric value.</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_regex = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determines if the suspect is a RegExp. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_string = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determine the suspect is a String. </div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_typeof = function(</td><td class="PParameter prettyprint " nowrap>type,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Determine an object’s type strictly by comparing constructors.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>var is_undefined = function(</td><td class="PParameter prettyprint " nowrap>suspect</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Checks if a variable is defined.</div></div><!--END_ND_TOOLTIPS-->
|
37
41
|
|
38
42
|
|
39
43
|
<!--START_ND_TOOLTIPS-->
|
40
|
-
<div class=CToolTip id="
|
44
|
+
<div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>Function.prototype.method = function(</td><td class="PParameter prettyprint " nowrap>name,</td></tr><tr><td></td><td class="PParameter prettyprint " nowrap>func</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Method to add a method to an object (ie. </div></div><!--END_ND_TOOLTIPS-->
|
41
45
|
|
42
46
|
|
43
47
|
<!--START_ND_TOOLTIPS-->
|
44
|
-
<div class=CToolTip id="
|
48
|
+
<div class=CToolTip id="tt20"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">this.name</td></tr></table></blockquote>The module’s name (string)</div></div><div class=CToolTip id="tt21"><div class=CClass>An NinjsApplication object serves as your application’s namespace and includes a utility to add modules to the application object.</div></div><div class=CToolTip id="tt22"><div class=CClass>A NinjsModule is an object which encapsulates a certain behavior or functionality.</div></div><!--END_ND_TOOLTIPS-->
|
45
49
|
|
46
50
|
|
47
51
|
<!--START_ND_TOOLTIPS-->
|
48
|
-
<div class=CToolTip id="
|
52
|
+
<div class=CToolTip id="tt23"><div class=CFunction>Waits for the DOM to load then calls execute.</div></div><div class=CToolTip id="tt24"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">this.run_tests</td></tr></table></blockquote>Boolean to turn tests on/off</div></div><!--END_ND_TOOLTIPS-->
|
49
53
|
|
50
54
|
|
51
55
|
<!--START_ND_TOOLTIPS-->
|
@@ -1,11 +1,11 @@
|
|
1
1
|
var indexSectionsWithContent = {
|
2
2
|
"General": {
|
3
|
-
"Symbols":
|
3
|
+
"Symbols": true,
|
4
4
|
"Numbers": false,
|
5
|
-
"A":
|
5
|
+
"A": true,
|
6
6
|
"B": false,
|
7
|
-
"C":
|
8
|
-
"D":
|
7
|
+
"C": true,
|
8
|
+
"D": true,
|
9
9
|
"E": true,
|
10
10
|
"F": true,
|
11
11
|
"G": false,
|
@@ -14,16 +14,16 @@ var indexSectionsWithContent = {
|
|
14
14
|
"J": false,
|
15
15
|
"K": false,
|
16
16
|
"L": false,
|
17
|
-
"M":
|
18
|
-
"N":
|
17
|
+
"M": true,
|
18
|
+
"N": true,
|
19
19
|
"O": false,
|
20
20
|
"P": false,
|
21
21
|
"Q": false,
|
22
|
-
"R":
|
23
|
-
"S":
|
24
|
-
"T":
|
22
|
+
"R": true,
|
23
|
+
"S": true,
|
24
|
+
"T": true,
|
25
25
|
"U": false,
|
26
|
-
"V":
|
26
|
+
"V": true,
|
27
27
|
"W": false,
|
28
28
|
"X": false,
|
29
29
|
"Y": false,
|
@@ -60,7 +60,7 @@ var indexSectionsWithContent = {
|
|
60
60
|
"Z": false
|
61
61
|
},
|
62
62
|
"Functions": {
|
63
|
-
"Symbols":
|
63
|
+
"Symbols": true,
|
64
64
|
"Numbers": false,
|
65
65
|
"A": true,
|
66
66
|
"B": false,
|
@@ -11,7 +11,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_run><div class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" target=_parent class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></div></div
|
14
|
+
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_run><div class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" target=_parent class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
|
15
15
|
document.getElementById("Loading").style.display="none";
|
16
16
|
document.getElementById("NoMatches").style.display="none";
|
17
17
|
var searchResults = new SearchResults("searchResults", "HTML");
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
2
|
+
|
3
|
+
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
|
4
|
+
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
|
5
|
+
|
6
|
+
<!-- Generated by Natural Docs, version 1.51 -->
|
7
|
+
<!-- http://www.naturaldocs.org -->
|
8
|
+
|
9
|
+
<!-- saved from url=(0026)http://www.naturaldocs.org -->
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__undrun_undtests><div class=IEntry><a href="../files/core/module-js.html#NinjsModule._run_tests" target=_parent class=ISymbol>_run_tests</a>, <span class=IParent>NinjsModule</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
|
15
|
+
document.getElementById("Loading").style.display="none";
|
16
|
+
document.getElementById("NoMatches").style.display="none";
|
17
|
+
var searchResults = new SearchResults("searchResults", "HTML");
|
18
|
+
searchResults.Search();
|
19
|
+
--></script></div><script language=JavaScript><!--
|
20
|
+
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
|
@@ -11,7 +11,7 @@ if (browserType) {document.write("<div class=" + browserType + ">");if (browserV
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_run><div class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" target=_parent class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></div></div><div class=SRResult id=
|
14
|
+
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR_run><div class=IEntry><a href="../files/core/module-js.html#NinjsModule.run" target=_parent class=ISymbol>run</a>, <span class=IParent>NinjsModule</span></div></div><div class=SRResult id=SR_run_undtests_lpabeta_rpa><div class=IEntry><a href="../files/core/module-js.html#NinjsModule.run_tests(beta)" target=_parent class=ISymbol>run_tests(beta)</a>, <span class=IParent>NinjsModule</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
|
15
15
|
document.getElementById("Loading").style.display="none";
|
16
16
|
document.getElementById("NoMatches").style.display="none";
|
17
17
|
var searchResults = new SearchResults("searchResults", "HTML");
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
2
|
+
|
3
|
+
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script></head><body class="PopupSearchResultsPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
|
4
|
+
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
|
5
|
+
|
6
|
+
<!-- Generated by Natural Docs, version 1.51 -->
|
7
|
+
<!-- http://www.naturaldocs.org -->
|
8
|
+
|
9
|
+
<!-- saved from url=(0026)http://www.naturaldocs.org -->
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
<div id=Index><div class=SRStatus id=Loading>Loading...</div><table border=0 cellspacing=0 cellpadding=0><div class=SRResult id=SR__undrun_undtests><div class=IEntry><a href="../files/core/module-js.html#NinjsModule._run_tests" target=_parent class=ISymbol>_run_tests</a>, <span class=IParent>NinjsModule</span></div></div></table><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div><script type="text/javascript"><!--
|
15
|
+
document.getElementById("Loading").style.display="none";
|
16
|
+
document.getElementById("NoMatches").style.display="none";
|
17
|
+
var searchResults = new SearchResults("searchResults", "HTML");
|
18
|
+
searchResults.Search();
|
19
|
+
--></script></div><script language=JavaScript><!--
|
20
|
+
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
|
@@ -80,6 +80,31 @@ test("can add a method to the prototype", function() {
|
|
80
80
|
equals('Hello'.test_method(), 'This is a test', 'can create a prototype method with method');
|
81
81
|
});
|
82
82
|
|
83
|
+
test("can test a condition with unless", function() {
|
84
|
+
var is_true = false;
|
85
|
+
|
86
|
+
unless (false,
|
87
|
+
function() {
|
88
|
+
is_true = true;
|
89
|
+
}
|
90
|
+
);
|
91
|
+
|
92
|
+
ok(is_true, "unless works");
|
93
|
+
|
94
|
+
var does_fallback_work = false;
|
95
|
+
|
96
|
+
unless (true,
|
97
|
+
function() {
|
98
|
+
|
99
|
+
},
|
100
|
+
function() {
|
101
|
+
does_fallback_work = true;
|
102
|
+
}
|
103
|
+
);
|
104
|
+
|
105
|
+
ok(does_fallback_work, 'fallback works');
|
106
|
+
});
|
107
|
+
|
83
108
|
module("Ninjs application tests");
|
84
109
|
|
85
110
|
test("can create a ninjs application object", function() {
|
@@ -110,8 +135,7 @@ test("module defaults", function() {
|
|
110
135
|
ok(is_defined(testapp.testmodule.tests), 'testapp.testmodule.tests is defined');
|
111
136
|
ok(is_array(testapp.testmodule.tests), 'testapp.testmodule.tests is_array');
|
112
137
|
ok(testapp.testmodule.tests.is_empty(), 'testapp.testmodule.tests is empty');
|
113
|
-
ok(is_defined(
|
114
|
-
ok(is_defined(_.testmodule), '_.testmodule is defined');
|
138
|
+
ok(is_defined(app), 'app is defined');
|
115
139
|
|
116
140
|
// methods
|
117
141
|
ok(is_defined(testapp.testmodule.actions), 'testapp.testmodule.actions is defined');
|
@@ -135,8 +159,6 @@ test("module defaults", function() {
|
|
135
159
|
|
136
160
|
test("Ninjs module can run actions", function() {
|
137
161
|
equals($('#made-by-actions').length, 1,'testapp.test.actions ran after DOM was ready');
|
138
|
-
ok(is_defined(__, '__ is defined'));
|
139
|
-
equals(__.name, 'testmodule', '__ is testmodule');
|
140
162
|
});
|
141
163
|
};
|
142
164
|
|
metadata
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ninjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 12
|
8
|
+
- 0
|
9
|
+
version: 0.12.0
|
6
10
|
platform: ruby
|
7
11
|
authors:
|
8
12
|
- Dayton Nolan
|
@@ -10,7 +14,7 @@ autorequire:
|
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
16
|
|
13
|
-
date: 2011-
|
17
|
+
date: 2011-04-07 00:00:00 -05:00
|
14
18
|
default_executable: ninjs
|
15
19
|
dependencies:
|
16
20
|
- !ruby/object:Gem::Dependency
|
@@ -20,6 +24,8 @@ dependencies:
|
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 0
|
23
29
|
version: "0"
|
24
30
|
type: :runtime
|
25
31
|
prerelease: false
|
@@ -31,6 +37,8 @@ dependencies:
|
|
31
37
|
requirements:
|
32
38
|
- - ">="
|
33
39
|
- !ruby/object:Gem::Version
|
40
|
+
segments:
|
41
|
+
- 0
|
34
42
|
version: "0"
|
35
43
|
type: :runtime
|
36
44
|
prerelease: false
|
@@ -42,6 +50,8 @@ dependencies:
|
|
42
50
|
requirements:
|
43
51
|
- - ">="
|
44
52
|
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 0
|
45
55
|
version: "0"
|
46
56
|
type: :runtime
|
47
57
|
prerelease: false
|
@@ -53,6 +63,8 @@ dependencies:
|
|
53
63
|
requirements:
|
54
64
|
- - ">="
|
55
65
|
- !ruby/object:Gem::Version
|
66
|
+
segments:
|
67
|
+
- 0
|
56
68
|
version: "0"
|
57
69
|
type: :runtime
|
58
70
|
prerelease: false
|
@@ -64,6 +76,8 @@ dependencies:
|
|
64
76
|
requirements:
|
65
77
|
- - ">="
|
66
78
|
- !ruby/object:Gem::Version
|
79
|
+
segments:
|
80
|
+
- 0
|
67
81
|
version: "0"
|
68
82
|
type: :development
|
69
83
|
prerelease: false
|
@@ -75,6 +89,8 @@ dependencies:
|
|
75
89
|
requirements:
|
76
90
|
- - ">="
|
77
91
|
- !ruby/object:Gem::Version
|
92
|
+
segments:
|
93
|
+
- 0
|
78
94
|
version: "0"
|
79
95
|
type: :development
|
80
96
|
prerelease: false
|
@@ -86,6 +102,10 @@ dependencies:
|
|
86
102
|
requirements:
|
87
103
|
- - ~>
|
88
104
|
- !ruby/object:Gem::Version
|
105
|
+
segments:
|
106
|
+
- 1
|
107
|
+
- 0
|
108
|
+
- 0
|
89
109
|
version: 1.0.0
|
90
110
|
type: :development
|
91
111
|
prerelease: false
|
@@ -97,6 +117,10 @@ dependencies:
|
|
97
117
|
requirements:
|
98
118
|
- - ~>
|
99
119
|
- !ruby/object:Gem::Version
|
120
|
+
segments:
|
121
|
+
- 1
|
122
|
+
- 5
|
123
|
+
- 2
|
100
124
|
version: 1.5.2
|
101
125
|
type: :development
|
102
126
|
prerelease: false
|
@@ -108,6 +132,8 @@ dependencies:
|
|
108
132
|
requirements:
|
109
133
|
- - ">="
|
110
134
|
- !ruby/object:Gem::Version
|
135
|
+
segments:
|
136
|
+
- 0
|
111
137
|
version: "0"
|
112
138
|
type: :development
|
113
139
|
prerelease: false
|
@@ -119,6 +145,8 @@ dependencies:
|
|
119
145
|
requirements:
|
120
146
|
- - ">="
|
121
147
|
- !ruby/object:Gem::Version
|
148
|
+
segments:
|
149
|
+
- 0
|
122
150
|
version: "0"
|
123
151
|
type: :development
|
124
152
|
prerelease: false
|
@@ -130,6 +158,8 @@ dependencies:
|
|
130
158
|
requirements:
|
131
159
|
- - ">="
|
132
160
|
- !ruby/object:Gem::Version
|
161
|
+
segments:
|
162
|
+
- 0
|
133
163
|
version: "0"
|
134
164
|
type: :runtime
|
135
165
|
prerelease: false
|
@@ -141,6 +171,8 @@ dependencies:
|
|
141
171
|
requirements:
|
142
172
|
- - ">="
|
143
173
|
- !ruby/object:Gem::Version
|
174
|
+
segments:
|
175
|
+
- 0
|
144
176
|
version: "0"
|
145
177
|
type: :runtime
|
146
178
|
prerelease: false
|
@@ -152,6 +184,8 @@ dependencies:
|
|
152
184
|
requirements:
|
153
185
|
- - ">="
|
154
186
|
- !ruby/object:Gem::Version
|
187
|
+
segments:
|
188
|
+
- 0
|
155
189
|
version: "0"
|
156
190
|
type: :runtime
|
157
191
|
prerelease: false
|
@@ -163,6 +197,8 @@ dependencies:
|
|
163
197
|
requirements:
|
164
198
|
- - ">="
|
165
199
|
- !ruby/object:Gem::Version
|
200
|
+
segments:
|
201
|
+
- 0
|
166
202
|
version: "0"
|
167
203
|
type: :runtime
|
168
204
|
prerelease: false
|
@@ -174,6 +210,8 @@ dependencies:
|
|
174
210
|
requirements:
|
175
211
|
- - ">="
|
176
212
|
- !ruby/object:Gem::Version
|
213
|
+
segments:
|
214
|
+
- 0
|
177
215
|
version: "0"
|
178
216
|
type: :development
|
179
217
|
prerelease: false
|
@@ -312,7 +350,6 @@ files:
|
|
312
350
|
- repository/ninjs/docs/files/core/extend-js.html
|
313
351
|
- repository/ninjs/docs/files/core/module-js.html
|
314
352
|
- repository/ninjs/docs/files/core/nin-js.html
|
315
|
-
- repository/ninjs/docs/files/existence-js.html
|
316
353
|
- repository/ninjs/docs/index.html
|
317
354
|
- repository/ninjs/docs/index/Classes.html
|
318
355
|
- repository/ninjs/docs/index/Files.html
|
@@ -334,6 +371,7 @@ files:
|
|
334
371
|
- repository/ninjs/docs/search/FunctionsM.html
|
335
372
|
- repository/ninjs/docs/search/FunctionsR.html
|
336
373
|
- repository/ninjs/docs/search/FunctionsS.html
|
374
|
+
- repository/ninjs/docs/search/FunctionsSymbols.html
|
337
375
|
- repository/ninjs/docs/search/GeneralA.html
|
338
376
|
- repository/ninjs/docs/search/GeneralC.html
|
339
377
|
- repository/ninjs/docs/search/GeneralD.html
|
@@ -344,6 +382,7 @@ files:
|
|
344
382
|
- repository/ninjs/docs/search/GeneralN.html
|
345
383
|
- repository/ninjs/docs/search/GeneralR.html
|
346
384
|
- repository/ninjs/docs/search/GeneralS.html
|
385
|
+
- repository/ninjs/docs/search/GeneralSymbols.html
|
347
386
|
- repository/ninjs/docs/search/GeneralT.html
|
348
387
|
- repository/ninjs/docs/search/GeneralV.html
|
349
388
|
- repository/ninjs/docs/search/NoResults.html
|
@@ -352,7 +391,6 @@ files:
|
|
352
391
|
- repository/ninjs/docs/search/VariablesR.html
|
353
392
|
- repository/ninjs/docs/search/VariablesT.html
|
354
393
|
- repository/ninjs/docs/styles/main.css
|
355
|
-
- repository/ninjs/docs/styles/mystyles.css
|
356
394
|
- repository/ninjs/tests/index.html
|
357
395
|
- repository/ninjs/tests/ninjs.test.js
|
358
396
|
- repository/ninjs/tests/ninjs.utilities.test.js
|
@@ -488,7 +526,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
488
526
|
requirements:
|
489
527
|
- - ">="
|
490
528
|
- !ruby/object:Gem::Version
|
491
|
-
hash:
|
529
|
+
hash: 3857615926705815432
|
492
530
|
segments:
|
493
531
|
- 0
|
494
532
|
version: "0"
|
@@ -497,11 +535,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
497
535
|
requirements:
|
498
536
|
- - ">="
|
499
537
|
- !ruby/object:Gem::Version
|
538
|
+
segments:
|
539
|
+
- 0
|
500
540
|
version: "0"
|
501
541
|
requirements: []
|
502
542
|
|
503
543
|
rubyforge_project: nowarning
|
504
|
-
rubygems_version: 1.
|
544
|
+
rubygems_version: 1.3.7
|
505
545
|
signing_key:
|
506
546
|
specification_version: 3
|
507
547
|
summary: ninjs is a command line application to help you write clean, modular javascript applications.
|