bivouac 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README +6 -7
- data/bin/bivouac +1 -1
- data/doc/rdoc/classes/BivouacHelpers/BaseView.html +178 -0
- data/doc/rdoc/classes/BivouacHelpers/FormView.html +398 -0
- data/doc/rdoc/classes/BivouacHelpers/HtmlView.html +305 -0
- data/doc/rdoc/classes/BivouacHelpers/JavaScriptView.html +573 -0
- data/doc/rdoc/classes/BivouacHelpers/ScriptAculoUsView.html +258 -0
- data/doc/rdoc/classes/BivouacHelpers/TooltipView.html +158 -0
- data/doc/rdoc/classes/BivouacHelpers.html +117 -0
- data/doc/rdoc/classes/JavaScriptGenerator.html +564 -0
- data/doc/rdoc/created.rid +1 -0
- data/doc/rdoc/files/AUTHORS.html +109 -0
- data/doc/rdoc/files/COPYING.html +533 -0
- data/doc/rdoc/files/README.html +427 -0
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/base_rb.html +109 -0
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/form_rb.html +109 -0
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/html_rb.html +109 -0
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/javascript_rb.html +113 -0
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html +113 -0
- data/doc/rdoc/files/lib/bivouac/helpers/view/goh/tooltip_rb.html +109 -0
- data/doc/rdoc/index.html +10 -0
- data/doc/rdoc/permalink.gif +0 -0
- data/doc/rdoc/rdoc-style.css +106 -0
- data/doc/rdoc/rubyfr.png +0 -0
- data/examples/bivouac_sample/Rakefile +48 -0
- data/examples/bivouac_sample/app/bivouac_sample.rb +15 -7
- data/examples/bivouac_sample/app/controllers/index.rb +2 -2
- data/examples/bivouac_sample/app/controllers/sound.rb +10 -0
- data/examples/bivouac_sample/app/helpers/_helpers.rb +6 -3
- data/examples/bivouac_sample/app/views/sound.rb +16 -0
- data/examples/bivouac_sample/config/environment.rb +5 -2
- data/examples/bivouac_sample/config/postamble.rb +89 -18
- data/examples/bivouac_sample/public/javascripts/builder.js +12 -7
- data/examples/bivouac_sample/public/javascripts/controls.js +485 -355
- data/examples/bivouac_sample/public/javascripts/dragdrop.js +82 -52
- data/examples/bivouac_sample/public/javascripts/effects.js +361 -329
- data/examples/bivouac_sample/public/javascripts/prototype.js +2826 -1120
- data/examples/bivouac_sample/public/javascripts/scriptaculous.js +15 -8
- data/examples/bivouac_sample/public/javascripts/slider.js +40 -43
- data/examples/bivouac_sample/public/javascripts/sound.js +55 -0
- data/examples/bivouac_sample/public/javascripts/unittest.js +16 -12
- data/examples/bivouac_sample/public/sound/sword.mp3 +0 -0
- data/examples/bivouac_sample/script/console +6 -0
- data/examples/bivouac_sample/script/plugin +3 -0
- data/examples/bivouac_sample/script/server +2 -1
- data/examples/bivouac_sample/test/test_sound.rb +15 -0
- data/lib/bivouac/helpers/view/goh/sound.rb +38 -0
- data/lib/bivouac/template/application/helpers_goh.rb +2 -0
- data/lib/bivouac/template/static/builder.js +12 -7
- data/lib/bivouac/template/static/controls.js +485 -355
- data/lib/bivouac/template/static/dragdrop.js +82 -52
- data/lib/bivouac/template/static/effects.js +361 -329
- data/lib/bivouac/template/static/prototype.js +2826 -1120
- data/lib/bivouac/template/static/scriptaculous.js +15 -8
- data/lib/bivouac/template/static/slider.js +40 -43
- data/lib/bivouac/template/static/sound.js +55 -0
- data/lib/bivouac/template/static/unittest.js +16 -12
- metadata +45 -2
@@ -0,0 +1,109 @@
|
|
1
|
+
|
2
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title>
|
6
|
+
Bivouac, the Documentation » File: html.rb
|
7
|
+
</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
<script language="JavaScript" type="text/javascript">
|
11
|
+
// <![CDATA[
|
12
|
+
|
13
|
+
function toggleSource( id )
|
14
|
+
{
|
15
|
+
var elem
|
16
|
+
var link
|
17
|
+
|
18
|
+
if( document.getElementById )
|
19
|
+
{
|
20
|
+
elem = document.getElementById( id )
|
21
|
+
link = document.getElementById( "l_" + id )
|
22
|
+
}
|
23
|
+
else if ( document.all )
|
24
|
+
{
|
25
|
+
elem = eval( "document.all." + id )
|
26
|
+
link = eval( "document.all.l_" + id )
|
27
|
+
}
|
28
|
+
else
|
29
|
+
return false;
|
30
|
+
|
31
|
+
if( elem.style.display == "block" )
|
32
|
+
{
|
33
|
+
elem.style.display = "none"
|
34
|
+
link.innerHTML = "show source"
|
35
|
+
}
|
36
|
+
else
|
37
|
+
{
|
38
|
+
elem.style.display = "block"
|
39
|
+
link.innerHTML = "hide source"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
function openCode( url )
|
44
|
+
{
|
45
|
+
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
46
|
+
}
|
47
|
+
// ]]>
|
48
|
+
</script>
|
49
|
+
</head>
|
50
|
+
<body>
|
51
|
+
<!--
|
52
|
+
<div id="menu">
|
53
|
+
<h3 class="title">File: html.rb</h3>
|
54
|
+
</div>
|
55
|
+
-->
|
56
|
+
<div id="fullpage">
|
57
|
+
<div id="pager">
|
58
|
+
<table>
|
59
|
+
<tr><td><img src="../../../../../../rubyfr.png" /></td>
|
60
|
+
<td id="pagertd">
|
61
|
+
<strong># File: html.rb<br />
|
62
|
+
[
|
63
|
+
"<a href="../../../../../../files/README.html" value="File: README">README</a>",
|
64
|
+
"<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
|
65
|
+
"<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
|
66
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
|
67
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
|
68
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
|
69
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
|
70
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
|
71
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
|
72
|
+
<a href="http://greg.rubyfr.net">nil</a>].each do<br />
|
73
|
+
<a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
|
74
|
+
<a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
|
75
|
+
<a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
|
76
|
+
<a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
|
77
|
+
<a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
|
78
|
+
<a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
|
79
|
+
<a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
|
80
|
+
<a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
|
81
|
+
end</strong>
|
82
|
+
</td></tr>
|
83
|
+
</table>
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="lib/bivouac/helpers/view/goh/html.rb" class="page_shade">
|
88
|
+
<div class="page">
|
89
|
+
<div class="header">
|
90
|
+
<div class="path">lib/bivouac/helpers/view/goh/html.rb / Thu Jan 31 13:52:47 +0100 2008</div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<p>
|
94
|
+
bivouac/helpers/view/html
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
</body>
|
109
|
+
</html>
|
@@ -0,0 +1,113 @@
|
|
1
|
+
|
2
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title>
|
6
|
+
Bivouac, the Documentation » File: javascript.rb
|
7
|
+
</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
<script language="JavaScript" type="text/javascript">
|
11
|
+
// <![CDATA[
|
12
|
+
|
13
|
+
function toggleSource( id )
|
14
|
+
{
|
15
|
+
var elem
|
16
|
+
var link
|
17
|
+
|
18
|
+
if( document.getElementById )
|
19
|
+
{
|
20
|
+
elem = document.getElementById( id )
|
21
|
+
link = document.getElementById( "l_" + id )
|
22
|
+
}
|
23
|
+
else if ( document.all )
|
24
|
+
{
|
25
|
+
elem = eval( "document.all." + id )
|
26
|
+
link = eval( "document.all.l_" + id )
|
27
|
+
}
|
28
|
+
else
|
29
|
+
return false;
|
30
|
+
|
31
|
+
if( elem.style.display == "block" )
|
32
|
+
{
|
33
|
+
elem.style.display = "none"
|
34
|
+
link.innerHTML = "show source"
|
35
|
+
}
|
36
|
+
else
|
37
|
+
{
|
38
|
+
elem.style.display = "block"
|
39
|
+
link.innerHTML = "hide source"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
function openCode( url )
|
44
|
+
{
|
45
|
+
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
46
|
+
}
|
47
|
+
// ]]>
|
48
|
+
</script>
|
49
|
+
</head>
|
50
|
+
<body>
|
51
|
+
<!--
|
52
|
+
<div id="menu">
|
53
|
+
<h3 class="title">File: javascript.rb</h3>
|
54
|
+
</div>
|
55
|
+
-->
|
56
|
+
<div id="fullpage">
|
57
|
+
<div id="pager">
|
58
|
+
<table>
|
59
|
+
<tr><td><img src="../../../../../../rubyfr.png" /></td>
|
60
|
+
<td id="pagertd">
|
61
|
+
<strong># File: javascript.rb<br />
|
62
|
+
[
|
63
|
+
"<a href="../../../../../../files/README.html" value="File: README">README</a>",
|
64
|
+
"<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
|
65
|
+
"<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
|
66
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
|
67
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
|
68
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
|
69
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
|
70
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
|
71
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
|
72
|
+
<a href="http://greg.rubyfr.net">nil</a>].each do<br />
|
73
|
+
<a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
|
74
|
+
<a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
|
75
|
+
<a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
|
76
|
+
<a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
|
77
|
+
<a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
|
78
|
+
<a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
|
79
|
+
<a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
|
80
|
+
<a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
|
81
|
+
end</strong>
|
82
|
+
</td></tr>
|
83
|
+
</table>
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="lib/bivouac/helpers/view/goh/javascript.rb" class="page_shade">
|
88
|
+
<div class="page">
|
89
|
+
<div class="header">
|
90
|
+
<div class="path">lib/bivouac/helpers/view/goh/javascript.rb / Wed Sep 12 12:22:52 +0200 2007</div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<p>
|
94
|
+
bivouac/helpers/view/javascript
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
<h4>Requires:</h4>
|
99
|
+
<ul>
|
100
|
+
<li>active_support</li>
|
101
|
+
</ul>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
</body>
|
113
|
+
</html>
|
@@ -0,0 +1,113 @@
|
|
1
|
+
|
2
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title>
|
6
|
+
Bivouac, the Documentation » File: scriptaculous.rb
|
7
|
+
</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
<script language="JavaScript" type="text/javascript">
|
11
|
+
// <![CDATA[
|
12
|
+
|
13
|
+
function toggleSource( id )
|
14
|
+
{
|
15
|
+
var elem
|
16
|
+
var link
|
17
|
+
|
18
|
+
if( document.getElementById )
|
19
|
+
{
|
20
|
+
elem = document.getElementById( id )
|
21
|
+
link = document.getElementById( "l_" + id )
|
22
|
+
}
|
23
|
+
else if ( document.all )
|
24
|
+
{
|
25
|
+
elem = eval( "document.all." + id )
|
26
|
+
link = eval( "document.all.l_" + id )
|
27
|
+
}
|
28
|
+
else
|
29
|
+
return false;
|
30
|
+
|
31
|
+
if( elem.style.display == "block" )
|
32
|
+
{
|
33
|
+
elem.style.display = "none"
|
34
|
+
link.innerHTML = "show source"
|
35
|
+
}
|
36
|
+
else
|
37
|
+
{
|
38
|
+
elem.style.display = "block"
|
39
|
+
link.innerHTML = "hide source"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
function openCode( url )
|
44
|
+
{
|
45
|
+
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
46
|
+
}
|
47
|
+
// ]]>
|
48
|
+
</script>
|
49
|
+
</head>
|
50
|
+
<body>
|
51
|
+
<!--
|
52
|
+
<div id="menu">
|
53
|
+
<h3 class="title">File: scriptaculous.rb</h3>
|
54
|
+
</div>
|
55
|
+
-->
|
56
|
+
<div id="fullpage">
|
57
|
+
<div id="pager">
|
58
|
+
<table>
|
59
|
+
<tr><td><img src="../../../../../../rubyfr.png" /></td>
|
60
|
+
<td id="pagertd">
|
61
|
+
<strong># File: scriptaculous.rb<br />
|
62
|
+
[
|
63
|
+
"<a href="../../../../../../files/README.html" value="File: README">README</a>",
|
64
|
+
"<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
|
65
|
+
"<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
|
66
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
|
67
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
|
68
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
|
69
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
|
70
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
|
71
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
|
72
|
+
<a href="http://greg.rubyfr.net">nil</a>].each do<br />
|
73
|
+
<a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
|
74
|
+
<a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
|
75
|
+
<a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
|
76
|
+
<a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
|
77
|
+
<a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
|
78
|
+
<a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
|
79
|
+
<a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
|
80
|
+
<a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
|
81
|
+
end</strong>
|
82
|
+
</td></tr>
|
83
|
+
</table>
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="lib/bivouac/helpers/view/goh/scriptaculous.rb" class="page_shade">
|
88
|
+
<div class="page">
|
89
|
+
<div class="header">
|
90
|
+
<div class="path">lib/bivouac/helpers/view/goh/scriptaculous.rb / Wed Sep 12 12:20:38 +0200 2007</div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<p>
|
94
|
+
bivouac/helpers/view/scriptaculous
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
<h4>Requires:</h4>
|
99
|
+
<ul>
|
100
|
+
<li>active_support</li>
|
101
|
+
</ul>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
|
110
|
+
|
111
|
+
</div>
|
112
|
+
</body>
|
113
|
+
</html>
|
@@ -0,0 +1,109 @@
|
|
1
|
+
|
2
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title>
|
6
|
+
Bivouac, the Documentation » File: tooltip.rb
|
7
|
+
</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
+
<link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
|
10
|
+
<script language="JavaScript" type="text/javascript">
|
11
|
+
// <![CDATA[
|
12
|
+
|
13
|
+
function toggleSource( id )
|
14
|
+
{
|
15
|
+
var elem
|
16
|
+
var link
|
17
|
+
|
18
|
+
if( document.getElementById )
|
19
|
+
{
|
20
|
+
elem = document.getElementById( id )
|
21
|
+
link = document.getElementById( "l_" + id )
|
22
|
+
}
|
23
|
+
else if ( document.all )
|
24
|
+
{
|
25
|
+
elem = eval( "document.all." + id )
|
26
|
+
link = eval( "document.all.l_" + id )
|
27
|
+
}
|
28
|
+
else
|
29
|
+
return false;
|
30
|
+
|
31
|
+
if( elem.style.display == "block" )
|
32
|
+
{
|
33
|
+
elem.style.display = "none"
|
34
|
+
link.innerHTML = "show source"
|
35
|
+
}
|
36
|
+
else
|
37
|
+
{
|
38
|
+
elem.style.display = "block"
|
39
|
+
link.innerHTML = "hide source"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
function openCode( url )
|
44
|
+
{
|
45
|
+
window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
|
46
|
+
}
|
47
|
+
// ]]>
|
48
|
+
</script>
|
49
|
+
</head>
|
50
|
+
<body>
|
51
|
+
<!--
|
52
|
+
<div id="menu">
|
53
|
+
<h3 class="title">File: tooltip.rb</h3>
|
54
|
+
</div>
|
55
|
+
-->
|
56
|
+
<div id="fullpage">
|
57
|
+
<div id="pager">
|
58
|
+
<table>
|
59
|
+
<tr><td><img src="../../../../../../rubyfr.png" /></td>
|
60
|
+
<td id="pagertd">
|
61
|
+
<strong># File: tooltip.rb<br />
|
62
|
+
[
|
63
|
+
"<a href="../../../../../../files/README.html" value="File: README">README</a>",
|
64
|
+
"<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
|
65
|
+
"<a href="../../../../../../files/COPYING.html" value="File: COPYING">COPYING</a>",
|
66
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/base_rb.html" value="File: base.rb">lib/bivouac/helpers/view/goh/base.rb</a>",
|
67
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/form_rb.html" value="File: form.rb">lib/bivouac/helpers/view/goh/form.rb</a>",
|
68
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/html_rb.html" value="File: html.rb">lib/bivouac/helpers/view/goh/html.rb</a>",
|
69
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/tooltip_rb.html" value="File: tooltip.rb">lib/bivouac/helpers/view/goh/tooltip.rb</a>",
|
70
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html" value="File: scriptaculous.rb">lib/bivouac/helpers/view/goh/scriptaculous.rb</a>",
|
71
|
+
"<a href="../../../../../../files/lib/bivouac/helpers/view/goh/javascript_rb.html" value="File: javascript.rb">lib/bivouac/helpers/view/goh/javascript.rb</a>",
|
72
|
+
<a href="http://greg.rubyfr.net">nil</a>].each do<br />
|
73
|
+
<a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
|
74
|
+
<a href="../../../../../../classes/BivouacHelpers.html" title="Module: BivouacHelpers">BivouacHelpers</a>.view_html<br />
|
75
|
+
<a href="../../../../../../classes/BivouacHelpers/TooltipView.html" title="Module: BivouacHelpers::TooltipView">BivouacHelpers::TooltipView</a>.view_html<br />
|
76
|
+
<a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
|
77
|
+
<a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
|
78
|
+
<a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
|
79
|
+
<a href="../../../../../../classes/BivouacHelpers/HtmlView.html" title="Module: BivouacHelpers::HtmlView">BivouacHelpers::HtmlView</a>.view_html<br />
|
80
|
+
<a href="../../../../../../classes/BivouacHelpers/FormView.html" title="Module: BivouacHelpers::FormView">BivouacHelpers::FormView</a>.view_html<br />
|
81
|
+
end</strong>
|
82
|
+
</td></tr>
|
83
|
+
</table>
|
84
|
+
</ul>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="lib/bivouac/helpers/view/goh/tooltip.rb" class="page_shade">
|
88
|
+
<div class="page">
|
89
|
+
<div class="header">
|
90
|
+
<div class="path">lib/bivouac/helpers/view/goh/tooltip.rb / Mon Sep 03 14:33:26 +0200 2007</div>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
<p>
|
94
|
+
bivouac/helpers/view/html
|
95
|
+
</p>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
</div>
|
104
|
+
</div>
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
</body>
|
109
|
+
</html>
|
data/doc/rdoc/index.html
ADDED
Binary file
|
@@ -0,0 +1,106 @@
|
|
1
|
+
|
2
|
+
body {
|
3
|
+
font: normal 14px verdana,arial,'Bitstream Vera Sans',helvetica,sans-serif;
|
4
|
+
line-height: 160%;
|
5
|
+
padding: 0; margin: 0;
|
6
|
+
margin-bottom: 30px;
|
7
|
+
/* background-color: #402; */
|
8
|
+
background-color: #CCCC99;
|
9
|
+
}
|
10
|
+
h1, h2, h3, h4 {
|
11
|
+
font-family: Utopia, Georgia, serif;
|
12
|
+
font-weight: bold;
|
13
|
+
letter-spacing: -0.018em;
|
14
|
+
}
|
15
|
+
h1 { font-size: 24px; margin: .15em 1em 0 0 }
|
16
|
+
h2 { font-size: 24px }
|
17
|
+
h3 { font-size: 19px }
|
18
|
+
h4 { font-size: 17px; font-weight: normal; }
|
19
|
+
h4.ruled { border-bottom: solid 1px #CC9; }
|
20
|
+
h2.ruled { padding-top: 35px; border-top: solid 1px #AA5; }
|
21
|
+
|
22
|
+
/* Link styles */
|
23
|
+
:link, :visited {
|
24
|
+
|
25
|
+
}
|
26
|
+
:link:hover, :visited:hover {
|
27
|
+
|
28
|
+
}
|
29
|
+
#fullpage {
|
30
|
+
width: 720px;
|
31
|
+
padding-top: 20px;
|
32
|
+
margin: 0 auto;
|
33
|
+
}
|
34
|
+
.page_shade, .page {
|
35
|
+
border-left: 1px solid black;
|
36
|
+
border-right: 1px solid black;
|
37
|
+
border-bottom: 1px solid black;
|
38
|
+
background-color: #FFFFFF;
|
39
|
+
}
|
40
|
+
.page {
|
41
|
+
padding: 20px 35px;
|
42
|
+
}
|
43
|
+
.page .header {
|
44
|
+
float: right;
|
45
|
+
color: #777;
|
46
|
+
font-size: 10px;
|
47
|
+
}
|
48
|
+
.page h1, .page h2, .page h3 {
|
49
|
+
clear: both;
|
50
|
+
text-align: center;
|
51
|
+
}
|
52
|
+
#pager {
|
53
|
+
background-color: #EEEEAE;
|
54
|
+
border-top: 2px solid black;
|
55
|
+
border-left: 2px solid black;
|
56
|
+
border-right: 2px solid black;
|
57
|
+
border-bottom: 1px dashed #999966;
|
58
|
+
padding: 20px 0 20px 20px;
|
59
|
+
color: #666633;
|
60
|
+
font-size: 11px;
|
61
|
+
}
|
62
|
+
#pager :link, #pager :visited {
|
63
|
+
color: #8E2400;
|
64
|
+
padding: 0px 5px;
|
65
|
+
}
|
66
|
+
#pager :link:hover, #pager :visited:hover {
|
67
|
+
color: #8E2400;
|
68
|
+
}
|
69
|
+
#pagertd {
|
70
|
+
font-size: 11px;
|
71
|
+
}
|
72
|
+
#logo { float: left; }
|
73
|
+
#menu {
|
74
|
+
padding: 4px 12px;
|
75
|
+
margin: 0;
|
76
|
+
}
|
77
|
+
#menu h3 { padding: 0; margin: 0; }
|
78
|
+
#menu #links { float: right; }
|
79
|
+
pre { font-weight: bold; color: black; }
|
80
|
+
tt { color: #703; font-size: 12pt; }
|
81
|
+
.dyn-source {
|
82
|
+
background-color: #EEEEEE;
|
83
|
+
border: 1px solid #CCCCCC;
|
84
|
+
padding: 4px 8px;
|
85
|
+
margin: 0;
|
86
|
+
display: none; }
|
87
|
+
.dyn-source pre {
|
88
|
+
color: #000000;
|
89
|
+
font-size: 8pt;
|
90
|
+
font-familly: monospace;
|
91
|
+
|
92
|
+
}
|
93
|
+
.source-link { text-align: right; font-size: 8pt; }
|
94
|
+
.ruby-comment { color: black; font-style: italic }
|
95
|
+
.ruby-constant { color: #123456; font-weight: bold; }
|
96
|
+
.ruby-identifier { color: #005599; }
|
97
|
+
.ruby-ivar { color: orange; }
|
98
|
+
.ruby-keyword { color: red; font-weight: bold }
|
99
|
+
.ruby-node { color: #FFFFFF; }
|
100
|
+
.ruby-operator { color: #055005; }
|
101
|
+
.ruby-regexp { color: #DDFFDD; }
|
102
|
+
.ruby-value { color: #FFAAAA; font-style: italic }
|
103
|
+
.kw { color: red; font-weight: bold }
|
104
|
+
.cmt { color: green; font-style: italic }
|
105
|
+
.str { color: #EECCCC; font-style: italic }
|
106
|
+
.re { color: #EECCCC; }
|
data/doc/rdoc/rubyfr.png
ADDED
Binary file
|
@@ -0,0 +1,48 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'camping'
|
3
|
+
require 'camping/session'
|
4
|
+
require 'bivouac'
|
5
|
+
|
6
|
+
include Bivouac
|
7
|
+
ENV['BIVOUAC_ROOT'] = File.expand_path( File.dirname(__FILE__) )
|
8
|
+
|
9
|
+
task :environment do
|
10
|
+
Camping.goes :BivouacSample
|
11
|
+
|
12
|
+
# Load models from app/models
|
13
|
+
files( 'models' ) { |file| require( file ) }
|
14
|
+
|
15
|
+
# Load create
|
16
|
+
files( '../db' ) { |file| require( file ) }
|
17
|
+
|
18
|
+
# Load database schema from db/migrate
|
19
|
+
files( '../db/migrate' ) { |file| require( file ) }
|
20
|
+
|
21
|
+
require "#{ENV['BIVOUAC_ROOT']}/config/environment.rb"
|
22
|
+
config = Bivouac::Environment.new( )
|
23
|
+
database_connection = config.environment.db
|
24
|
+
if database_connection[:adapter] =~ /sqlite/
|
25
|
+
database_connection[:database] = ENV['BIVOUAC_ROOT'] + "/" + database_connection[:database]
|
26
|
+
end
|
27
|
+
BivouacSample::Models::Base.establish_connection database_connection
|
28
|
+
end
|
29
|
+
|
30
|
+
namespace :db do
|
31
|
+
desc "Migrate the database through scripts in db/migrate."
|
32
|
+
task :migrate => :environment do
|
33
|
+
if BivouacSample.respond_to? :create
|
34
|
+
BivouacSample.create
|
35
|
+
else
|
36
|
+
puts "Nothing to do!"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
desc "Clear the sessions table"
|
41
|
+
namespace :sessions do
|
42
|
+
task :clear => :environment do
|
43
|
+
session_table = 'session'
|
44
|
+
session_table = Inflector.pluralize(session_table) if ActiveRecord::Base.pluralize_table_names
|
45
|
+
ActiveRecord::Base.connection.execute "DELETE FROM #{session_table}"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -3,13 +3,10 @@
|
|
3
3
|
#
|
4
4
|
# Project BivouacSample
|
5
5
|
#
|
6
|
-
# Created using bivouac on
|
7
|
-
# Copyright (c)
|
6
|
+
# Created using bivouac on Sun Mar 23 20:30:13 +0100 2008.
|
7
|
+
# Copyright (c) 2008 __My__. All rights reserved.
|
8
8
|
#
|
9
9
|
|
10
|
-
LIB = File.join File.expand_path(File.dirname(__FILE__)), '..', 'lib'
|
11
|
-
$:.unshift( LIB )
|
12
|
-
|
13
10
|
require 'rubygems'
|
14
11
|
require 'camping'
|
15
12
|
require 'camping/session'
|
@@ -18,6 +15,16 @@ require 'bivouac'
|
|
18
15
|
|
19
16
|
include Bivouac
|
20
17
|
|
18
|
+
# Load libs
|
19
|
+
LIB = filePath( __FILE__, '..', 'lib' )
|
20
|
+
$:.unshift( LIB )
|
21
|
+
|
22
|
+
# Load plugins
|
23
|
+
Dir.glob( filePath( __FILE__, '../plugins/**/init.rb' ) ).each { |p| require p }
|
24
|
+
|
25
|
+
# Indent the code -- See http://code.whytheluckystiff.net/markaby/wiki/TipsAndTrickery
|
26
|
+
Markaby::Builder.set(:indent, 2)
|
27
|
+
|
21
28
|
Camping.goes :BivouacSample
|
22
29
|
|
23
30
|
# Load helpers from app/helpers
|
@@ -37,7 +44,7 @@ files( 'controllers', :except => [File.basename(__FILE__)] ) { |file| require( f
|
|
37
44
|
|
38
45
|
module BivouacSample::Controllers
|
39
46
|
class Public < R '/public/(.+)'
|
40
|
-
PATH =
|
47
|
+
PATH = filePath( __FILE__ )
|
41
48
|
|
42
49
|
def get file
|
43
50
|
if file.include? '..'
|
@@ -46,7 +53,8 @@ module BivouacSample::Controllers
|
|
46
53
|
else
|
47
54
|
type = (MIME::Types.type_for(file)[0] || '/text/plain').to_s
|
48
55
|
@headers['Content-Type'] = type
|
49
|
-
@
|
56
|
+
@body = open( File.join( PATH, '..', 'public', file ) )
|
57
|
+
# @headers['X-Sendfile'] = File.join PATH, '..', 'public', file
|
50
58
|
end
|
51
59
|
end
|
52
60
|
end
|