bivouac 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,13 +66,13 @@
66
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
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
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>",
69
+ "<a href="../files/lib/bivouac/helpers/view/goh/sound_rb.html" value="File: sound.rb">lib/bivouac/helpers/view/goh/sound.rb</a>",
70
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
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
72
  <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
73
  <a href="../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
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 />
75
+ <a href="../classes/BivouacHelpers/SoundView.html" title="Module: BivouacHelpers::SoundView">BivouacHelpers::SoundView</a>.view_html<br />
76
76
  <a href="../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
77
  <a href="../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
78
  <a href="../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
@@ -87,7 +87,7 @@ end</strong>
87
87
  <div id="README" class="page_shade">
88
88
  <div class="page">
89
89
  <div class="header">
90
- <div class="path">README / Sun Mar 23 21:14:46 +0100 2008</div>
90
+ <div class="path">README / Mon Mar 24 04:25:10 +0100 2008</div>
91
91
  </div>
92
92
 
93
93
  <h1>Bivouac</h1>
@@ -112,6 +112,21 @@ Bivouac is a simple generator for <a
112
112
  href="http://code.whytheluckystiff.net/camping">camping</a>.
113
113
  </p>
114
114
  <h2>FEATURES/PROBLEMS:</h2>
115
+ <h3>0.1.6:</h3>
116
+ <ul>
117
+ <li>Plugins now support Rake tasks
118
+
119
+ </li>
120
+ <li>Add plugin:list task
121
+
122
+ </li>
123
+ <li>Tooltip is no longer in Bivouac Core, it&#8216;s a plugin
124
+
125
+ </li>
126
+ <li>iUI&#8216;s Tent Plugin (alpha)
127
+
128
+ </li>
129
+ </ul>
115
130
  <h3>0.1.5:</h3>
116
131
  <ul>
117
132
  <li>Upgrade prototype (1.6.0.2)
@@ -66,13 +66,13 @@
66
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
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
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>",
69
+ "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/sound_rb.html" value="File: sound.rb">lib/bivouac/helpers/view/goh/sound.rb</a>",
70
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
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
72
  <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
73
  <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
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 />
75
+ <a href="../../../../../../classes/BivouacHelpers/SoundView.html" title="Module: BivouacHelpers::SoundView">BivouacHelpers::SoundView</a>.view_html<br />
76
76
  <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
77
  <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
78
  <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
@@ -66,13 +66,13 @@
66
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
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
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>",
69
+ "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/sound_rb.html" value="File: sound.rb">lib/bivouac/helpers/view/goh/sound.rb</a>",
70
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
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
72
  <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
73
  <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
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 />
75
+ <a href="../../../../../../classes/BivouacHelpers/SoundView.html" title="Module: BivouacHelpers::SoundView">BivouacHelpers::SoundView</a>.view_html<br />
76
76
  <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
77
  <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
78
  <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
@@ -66,13 +66,13 @@
66
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
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
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>",
69
+ "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/sound_rb.html" value="File: sound.rb">lib/bivouac/helpers/view/goh/sound.rb</a>",
70
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
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
72
  <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
73
  <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
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 />
75
+ <a href="../../../../../../classes/BivouacHelpers/SoundView.html" title="Module: BivouacHelpers::SoundView">BivouacHelpers::SoundView</a>.view_html<br />
76
76
  <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
77
  <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
78
  <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
@@ -87,7 +87,7 @@ end</strong>
87
87
  <div id="lib/bivouac/helpers/view/goh/html.rb" class="page_shade">
88
88
  <div class="page">
89
89
  <div class="header">
90
- <div class="path">lib/bivouac/helpers/view/goh/html.rb / Thu Jan 31 13:52:47 +0100 2008</div>
90
+ <div class="path">lib/bivouac/helpers/view/goh/html.rb / Mon Mar 24 04:00:21 +0100 2008</div>
91
91
  </div>
92
92
 
93
93
  <p>
@@ -66,13 +66,13 @@
66
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
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
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>",
69
+ "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/sound_rb.html" value="File: sound.rb">lib/bivouac/helpers/view/goh/sound.rb</a>",
70
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
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
72
  <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
73
  <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
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 />
75
+ <a href="../../../../../../classes/BivouacHelpers/SoundView.html" title="Module: BivouacHelpers::SoundView">BivouacHelpers::SoundView</a>.view_html<br />
76
76
  <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
77
  <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
78
  <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
@@ -66,13 +66,13 @@
66
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
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
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>",
69
+ "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/sound_rb.html" value="File: sound.rb">lib/bivouac/helpers/view/goh/sound.rb</a>",
70
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
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
72
  <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
73
  <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
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 />
75
+ <a href="../../../../../../classes/BivouacHelpers/SoundView.html" title="Module: BivouacHelpers::SoundView">BivouacHelpers::SoundView</a>.view_html<br />
76
76
  <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
77
  <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
78
  <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
@@ -3,7 +3,7 @@
3
3
  <html>
4
4
  <head>
5
5
  <title>
6
- Bivouac, the Documentation &raquo; File: tooltip.rb
6
+ Bivouac, the Documentation &raquo; File: sound.rb
7
7
  </title>
8
8
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
9
  <link rel="stylesheet" href="../../../../../.././rdoc-style.css" type="text/css" media="screen" />
@@ -50,7 +50,7 @@
50
50
  <body>
51
51
  <!--
52
52
  <div id="menu">
53
- <h3 class="title">File: tooltip.rb</h3>
53
+ <h3 class="title">File: sound.rb</h3>
54
54
  </div>
55
55
  -->
56
56
  <div id="fullpage">
@@ -58,7 +58,7 @@
58
58
  <table>
59
59
  <tr><td><img src="../../../../../../rubyfr.png" /></td>
60
60
  <td id="pagertd">
61
- <strong># File: tooltip.rb<br />
61
+ <strong># File: sound.rb<br />
62
62
  [
63
63
  "<a href="../../../../../../files/README.html" value="File: README">README</a>",
64
64
  "<a href="../../../../../../files/AUTHORS.html" value="File: AUTHORS">AUTHORS</a>",
@@ -66,13 +66,13 @@
66
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
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
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>",
69
+ "<a href="../../../../../../files/lib/bivouac/helpers/view/goh/sound_rb.html" value="File: sound.rb">lib/bivouac/helpers/view/goh/sound.rb</a>",
70
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
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
72
  <a href="http://greg.rubyfr.net">nil</a>].each do<br />
73
73
  <a href="../../../../../../classes/JavaScriptGenerator.html" title="Class: JavaScriptGenerator">JavaScriptGenerator</a>.view_html<br />
74
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 />
75
+ <a href="../../../../../../classes/BivouacHelpers/SoundView.html" title="Module: BivouacHelpers::SoundView">BivouacHelpers::SoundView</a>.view_html<br />
76
76
  <a href="../../../../../../classes/BivouacHelpers/ScriptAculoUsView.html" title="Module: BivouacHelpers::ScriptAculoUsView">BivouacHelpers::ScriptAculoUsView</a>.view_html<br />
77
77
  <a href="../../../../../../classes/BivouacHelpers/BaseView.html" title="Module: BivouacHelpers::BaseView">BivouacHelpers::BaseView</a>.view_html<br />
78
78
  <a href="../../../../../../classes/BivouacHelpers/JavaScriptView.html" title="Module: BivouacHelpers::JavaScriptView">BivouacHelpers::JavaScriptView</a>.view_html<br />
@@ -84,10 +84,10 @@ end</strong>
84
84
  </ul>
85
85
  </div>
86
86
 
87
- <div id="lib/bivouac/helpers/view/goh/tooltip.rb" class="page_shade">
87
+ <div id="lib/bivouac/helpers/view/goh/sound.rb" class="page_shade">
88
88
  <div class="page">
89
89
  <div class="header">
90
- <div class="path">lib/bivouac/helpers/view/goh/tooltip.rb / Mon Sep 03 14:33:26 +0200 2007</div>
90
+ <div class="path">lib/bivouac/helpers/view/goh/sound.rb / Sun Mar 23 20:25:44 +0100 2008</div>
91
91
  </div>
92
92
 
93
93
  <p>
@@ -2,7 +2,7 @@
2
2
 
3
3
  module BivouacHelpers
4
4
  module HtmlView
5
- @@javascript_default_sources = %w{prototype.js scriptaculous.js tooltip.js}
5
+ @@javascript_default_sources = %w{prototype.js scriptaculous.js}
6
6
 
7
7
  # Returns a stylesheet link tag for the sources specified as arguments. If
8
8
  # you don't specify an extension, .css will be appended automatically.
@@ -46,3 +46,16 @@ namespace :db do
46
46
  end
47
47
  end
48
48
  end
49
+
50
+ namespace :plugin do
51
+ desc "List plugins"
52
+ task :list do
53
+ Dir.glob( filePath( __FILE__, 'plugins/**' ) ).each do |p|
54
+ pn = p.gsub( /.*\//, "" )
55
+ print " - #{pn} : "
56
+ Rake::Task["plugin:#{pn}:desc"].invoke
57
+ end
58
+ end
59
+
60
+ Dir.glob( filePath( __FILE__, 'plugins/**/tasks/**.rake' ) ).each { |p| load p }
61
+ end
@@ -13,7 +13,6 @@ require 'bivouac/helpers/view/goh/form'
13
13
  require 'bivouac/helpers/view/goh/scriptaculous'
14
14
  require 'bivouac/helpers/view/goh/javascript'
15
15
  require 'bivouac/helpers/view/goh/sound'
16
- require 'bivouac/helpers/view/goh/tooltip'
17
16
 
18
17
  helpers = [
19
18
  BivouacHelpers::BaseView,
@@ -22,7 +21,6 @@ helpers = [
22
21
  BivouacHelpers::ScriptAculoUsView,
23
22
  BivouacHelpers::JavaScriptView,
24
23
  BivouacHelpers::SoundView,
25
- BivouacHelpers::TooltipView
26
24
  ] + viewHelperModule
27
25
 
28
26
  <%= @appname %>.module_eval "class Mab < Markaby::Builder; include #{helpers.join(', ')}; end"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bivouac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Gr\xC3\xA9goire Lejeune"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-23 00:00:00 +01:00
12
+ date: 2008-03-24 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -71,7 +71,7 @@ extra_rdoc_files:
71
71
  - lib/bivouac/helpers/view/goh/form.rb
72
72
  - lib/bivouac/helpers/view/goh/html.rb
73
73
  - lib/bivouac/helpers/view/goh/scriptaculous.rb
74
- - lib/bivouac/helpers/view/goh/tooltip.rb
74
+ - lib/bivouac/helpers/view/goh/sound.rb
75
75
  - lib/bivouac/helpers/view/goh/javascript.rb
76
76
  files:
77
77
  - COPYING
@@ -87,7 +87,7 @@ files:
87
87
  - doc/rdoc/classes/BivouacHelpers/HtmlView.html
88
88
  - doc/rdoc/classes/BivouacHelpers/JavaScriptView.html
89
89
  - doc/rdoc/classes/BivouacHelpers/ScriptAculoUsView.html
90
- - doc/rdoc/classes/BivouacHelpers/TooltipView.html
90
+ - doc/rdoc/classes/BivouacHelpers/SoundView.html
91
91
  - doc/rdoc/classes/BivouacHelpers.html
92
92
  - doc/rdoc/classes/JavaScriptGenerator.html
93
93
  - doc/rdoc/created.rid
@@ -104,7 +104,7 @@ files:
104
104
  - doc/rdoc/files/lib/bivouac/helpers/view/goh/html_rb.html
105
105
  - doc/rdoc/files/lib/bivouac/helpers/view/goh/javascript_rb.html
106
106
  - doc/rdoc/files/lib/bivouac/helpers/view/goh/scriptaculous_rb.html
107
- - doc/rdoc/files/lib/bivouac/helpers/view/goh/tooltip_rb.html
107
+ - doc/rdoc/files/lib/bivouac/helpers/view/goh/sound_rb.html
108
108
  - doc/rdoc/files/README.html
109
109
  - doc/rdoc/index.html
110
110
  - doc/rdoc/permalink.gif
@@ -125,7 +125,6 @@ files:
125
125
  - lib/bivouac/helpers/view/goh/javascript.rb
126
126
  - lib/bivouac/helpers/view/goh/scriptaculous.rb
127
127
  - lib/bivouac/helpers/view/goh/sound.rb
128
- - lib/bivouac/helpers/view/goh/tooltip.rb
129
128
  - lib/bivouac/template
130
129
  - lib/bivouac/template/application
131
130
  - lib/bivouac/template/application/helpers_goh.rb
@@ -166,7 +165,6 @@ files:
166
165
  - lib/bivouac/template/static/scriptaculous.js
167
166
  - lib/bivouac/template/static/slider.js
168
167
  - lib/bivouac/template/static/sound.js
169
- - lib/bivouac/template/static/tooltip.js
170
168
  - lib/bivouac/template/static/unittest.js
171
169
  - lib/bivouac/template.rb
172
170
  - lib/bivouac.rb
@@ -1,33 +0,0 @@
1
- # bivouac/helpers/view/html
2
-
3
- module BivouacHelpers
4
- module TooltipView
5
- # Returns an html div (id +name+) as a tooltip for +element+.
6
- #
7
- # div( id => "tooltip_me" ) do
8
- # "Hello World"
9
- # end
10
- # tooltip( "i_m_the_tooltip", "tooltip_me" ) do
11
- # "Content of the tooltip"
12
- # end # =>
13
- # <div id="tooltip_me">
14
- # Hello World
15
- # </div>
16
- # <div id = "i_m_the_tooltip" style = "display:none;">
17
- # Content of the tooltip
18
- # </div>
19
- # <script>
20
- # var i_m_the_tooltip = new Tooltip( 'tooltip_me', 'i_m_the_tooltip' )
21
- # </script>
22
- #
23
- # See http://blog.innerewut.de/tooltip for more information about tooltip
24
- def tooltip( name, element, &block )
25
- div( :id => name, :style => "display:none;" ) do
26
- yield( )
27
- end
28
- script do
29
- "var #{name} = new Tooltip( '#{element}', '#{name}' )"
30
- end
31
- end
32
- end
33
- end
@@ -1,208 +0,0 @@
1
- /*
2
- * Copyright (c) 2006 Jonathan Weiss <jw@innerewut.de>
3
- *
4
- * Permission to use, copy, modify, and distribute this software for any
5
- * purpose with or without fee is hereby granted, provided that the above
6
- * copyright notice and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
- */
16
-
17
-
18
- /* tooltip-0.2.js - Small tooltip library on top of Prototype
19
- * by Jonathan Weiss <jw@innerewut.de> distributed under the BSD license.
20
- *
21
- * This tooltip library works in two modes. If it gets a valid DOM element
22
- * or DOM id as an argument it uses this element as the tooltip. This
23
- * element will be placed (and shown) near the mouse pointer when a trigger-
24
- * element is moused-over.
25
- * If it gets only a text as an argument instead of a DOM id or DOM element
26
- * it will create a div with the classname 'tooltip' that holds the given text.
27
- * This newly created div will be used as the tooltip. This is usefull if you
28
- * want to use tooltip.js to create popups out of title attributes.
29
- *
30
- *
31
- * Usage:
32
- * <script src="/javascripts/prototype.js" type="text/javascript"></script>
33
- * <script src="/javascripts/tooltip.js" type="text/javascript"></script>
34
- * <script type="text/javascript">
35
- * // with valid DOM id
36
- * var my_tooltip = new Tooltip('id_of_trigger_element', 'id_of_tooltip_to_show_element')
37
- *
38
- * // with text
39
- * var my_other_tooltip = new Tooltip('id_of_trigger_element', 'a nice description')
40
- *
41
- * // create popups for each element with a title attribute
42
- * Event.observe(window,"load",function() {
43
- * $$("*").findAll(function(node){
44
- * return node.getAttribute('title');
45
- * }).each(function(node){
46
- * new Tooltip(node,node.title);
47
- * node.removeAttribute("title");
48
- * });
49
- * });
50
- *
51
- * </script>
52
- *
53
- * Now whenever you trigger a mouseOver on the `trigger` element, the tooltip element will
54
- * be shown. On o mouseOut the tooltip disappears.
55
- *
56
- * Example:
57
- *
58
- * <script src="/javascripts/prototype.js" type="text/javascript"></script>
59
- * <script src="/javascripts/scriptaculous.js" type="text/javascript"></script>
60
- * <script src="/javascripts/tooltip.js" type="text/javascript"></script>
61
- *
62
- * <div id='tooltip' style="display:none; margin: 5px; background-color: red;">
63
- * Detail infos on product 1....<br />
64
- * </div>
65
- *
66
- * <div id='product_1'>
67
- * This is product 1
68
- * </div>
69
- *
70
- * <script type="text/javascript">
71
- * var my_tooltip = new Tooltip('product_1', 'tooltip')
72
- * </script>
73
- *
74
- * You can use my_tooltip.destroy() to remove the event observers and thereby the tooltip.
75
- */
76
-
77
- var Tooltip = Class.create();
78
- Tooltip.prototype = {
79
- initialize: function(element, tool_tip) {
80
- var options = Object.extend({
81
- default_css: false,
82
- margin: "0px",
83
- padding: "5px",
84
- backgroundColor: "#d6d6fc",
85
- min_distance_x: 5,
86
- min_distance_y: 5,
87
- delta_x: 0,
88
- delta_y: 0,
89
- zindex: 1000
90
- }, arguments[2] || {});
91
-
92
- this.element = $(element);
93
-
94
- this.options = options;
95
-
96
- // use the supplied tooltip element or create our own div
97
- if($(tool_tip)) {
98
- this.tool_tip = $(tool_tip);
99
- } else {
100
- this.tool_tip = $(document.createElement("div"));
101
- document.body.appendChild(this.tool_tip);
102
- this.tool_tip.addClassName("tooltip");
103
- this.tool_tip.appendChild(document.createTextNode(tool_tip));
104
- }
105
-
106
- // hide the tool-tip by default
107
- this.tool_tip.hide();
108
-
109
- this.eventMouseOver = this.showTooltip.bindAsEventListener(this);
110
- this.eventMouseOut = this.hideTooltip.bindAsEventListener(this);
111
- this.eventMouseMove = this.moveTooltip.bindAsEventListener(this);
112
-
113
- this.registerEvents();
114
- },
115
-
116
- destroy: function() {
117
- Event.stopObserving(this.element, "mouseover", this.eventMouseOver);
118
- Event.stopObserving(this.element, "mouseout", this.eventMouseOut);
119
- Event.stopObserving(this.element, "mousemove", this.eventMouseMove);
120
- },
121
-
122
- registerEvents: function() {
123
- Event.observe(this.element, "mouseover", this.eventMouseOver);
124
- Event.observe(this.element, "mouseout", this.eventMouseOut);
125
- Event.observe(this.element, "mousemove", this.eventMouseMove);
126
- },
127
-
128
- moveTooltip: function(event){
129
- Event.stop(event);
130
- // get Mouse position
131
- var mouse_x = Event.pointerX(event);
132
- var mouse_y = Event.pointerY(event);
133
-
134
- // decide if wee need to switch sides for the tooltip
135
- var dimensions = Element.getDimensions( this.tool_tip );
136
- var element_width = dimensions.width;
137
- var element_height = dimensions.height;
138
-
139
- if ( (element_width + mouse_x) >= ( this.getWindowWidth() - this.options.min_distance_x) ){ // too big for X
140
- mouse_x = mouse_x - element_width;
141
- // apply min_distance to make sure that the mouse is not on the tool-tip
142
- mouse_x = mouse_x - this.options.min_distance_x;
143
- } else {
144
- mouse_x = mouse_x + this.options.min_distance_x;
145
- }
146
-
147
- if ( (element_height + mouse_y) >= ( this.getWindowHeight() - this.options.min_distance_y) ){ // too big for Y
148
- mouse_y = mouse_y - element_height;
149
- // apply min_distance to make sure that the mouse is not on the tool-tip
150
- mouse_y = mouse_y - this.options.min_distance_y;
151
- } else {
152
- mouse_y = mouse_y + this.options.min_distance_y;
153
- }
154
-
155
- // now set the right styles
156
- this.setStyles(mouse_x, mouse_y);
157
- },
158
-
159
-
160
- showTooltip: function(event) {
161
- Event.stop(event);
162
- this.moveTooltip(event);
163
- new Element.show(this.tool_tip);
164
- },
165
-
166
- setStyles: function(x, y){
167
- // set the right styles to position the tool tip
168
- Element.setStyle(this.tool_tip, { position:'absolute',
169
- top:y + this.options.delta_y + "px",
170
- left:x + this.options.delta_x + "px",
171
- zindex:this.options.zindex
172
- });
173
-
174
- // apply default theme if wanted
175
- if (this.options.default_css){
176
- Element.setStyle(this.tool_tip, { margin:this.options.margin,
177
- padding:this.options.padding,
178
- backgroundColor:this.options.backgroundColor,
179
- zindex:this.options.zindex
180
- });
181
- }
182
- },
183
-
184
- hideTooltip: function(event){
185
- new Element.hide(this.tool_tip);
186
- },
187
-
188
- getWindowHeight: function(){
189
- var innerHeight;
190
- if (navigator.appVersion.indexOf('MSIE')>0) {
191
- innerHeight = document.body.clientHeight;
192
- } else {
193
- innerHeight = window.innerHeight;
194
- }
195
- return innerHeight;
196
- },
197
-
198
- getWindowWidth: function(){
199
- var innerWidth;
200
- if (navigator.appVersion.indexOf('MSIE')>0) {
201
- innerWidth = document.body.clientWidth;
202
- } else {
203
- innerWidth = window.innerWidth;
204
- }
205
- return innerWidth;
206
- }
207
-
208
- }