bivouac 0.2.0 → 0.2.1
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/README +14 -0
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/README.html +34 -1
- data/examples/bivouac_sample/Rakefile +0 -0
- data/examples/bivouac_sample/script/console +0 -0
- data/examples/bivouac_sample/script/generate +0 -0
- data/examples/bivouac_sample/script/plugin +0 -0
- data/examples/bivouac_sample/script/server +0 -0
- data/examples/blog_goh/script/generate +0 -0
- data/examples/blog_goh/script/server +0 -0
- data/lib/bivouac.rb +9 -0
- data/lib/bivouac/template/Rakefile.rb +1 -0
- data/lib/bivouac/template/application/helpers_goh.rb +5 -1
- data/lib/bivouac/template/application_goh.rb +1 -1
- metadata +3 -3
data/README
CHANGED
|
@@ -10,8 +10,22 @@ Copyright (C) 2007, 2008 Gregoire Lejeune
|
|
|
10
10
|
|
|
11
11
|
Bivouac is a simple generator for camping[http://code.whytheluckystiff.net/camping].
|
|
12
12
|
|
|
13
|
+
== PLUGINS:
|
|
14
|
+
|
|
15
|
+
* iUI's Tent
|
|
16
|
+
* Roo's Tent
|
|
17
|
+
* Scaffold's Tent
|
|
18
|
+
* Tooltip
|
|
19
|
+
* Will Paginate
|
|
20
|
+
|
|
13
21
|
== FEATURES/PROBLEMS:
|
|
14
22
|
|
|
23
|
+
=== 0.2.1:
|
|
24
|
+
* Add addControllerHelperModule and controllerHelperModule
|
|
25
|
+
* iUI's Tent Plugin beta
|
|
26
|
+
* Add rake task for plugins documentation
|
|
27
|
+
* Loading a static page with Webrick now work
|
|
28
|
+
|
|
15
29
|
=== 0.2.0:
|
|
16
30
|
* Class Bivouac::Generate has been completely rewritten
|
|
17
31
|
* Scaffold generator is no longer un Bivouac Core, use scaffold_s_tent plugin
|
data/doc/rdoc/created.rid
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Fri, 04 Apr 2008 20:24:50 +0200
|
data/doc/rdoc/files/README.html
CHANGED
|
@@ -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 /
|
|
90
|
+
<div class="path">README / Fri Apr 04 19:52:44 +0200 2008</div>
|
|
91
91
|
</div>
|
|
92
92
|
|
|
93
93
|
<h1>Bivouac</h1>
|
|
@@ -111,7 +111,40 @@ href="http://rubyforge.org/projects/bivouac">rubyforge.org/projects/bivouac</a>/
|
|
|
111
111
|
Bivouac is a simple generator for <a
|
|
112
112
|
href="http://code.whytheluckystiff.net/camping">camping</a>.
|
|
113
113
|
</p>
|
|
114
|
+
<h2>PLUGINS:</h2>
|
|
115
|
+
<ul>
|
|
116
|
+
<li>iUI‘s Tent
|
|
117
|
+
|
|
118
|
+
</li>
|
|
119
|
+
<li>Roo‘s Tent
|
|
120
|
+
|
|
121
|
+
</li>
|
|
122
|
+
<li>Scaffold‘s Tent
|
|
123
|
+
|
|
124
|
+
</li>
|
|
125
|
+
<li>Tooltip
|
|
126
|
+
|
|
127
|
+
</li>
|
|
128
|
+
<li>Will Paginate
|
|
129
|
+
|
|
130
|
+
</li>
|
|
131
|
+
</ul>
|
|
114
132
|
<h2>FEATURES/PROBLEMS:</h2>
|
|
133
|
+
<h3>0.2.1:</h3>
|
|
134
|
+
<ul>
|
|
135
|
+
<li>Add addControllerHelperModule and controllerHelperModule
|
|
136
|
+
|
|
137
|
+
</li>
|
|
138
|
+
<li>iUI‘s Tent Plugin beta
|
|
139
|
+
|
|
140
|
+
</li>
|
|
141
|
+
<li>Add rake task for plugins documentation
|
|
142
|
+
|
|
143
|
+
</li>
|
|
144
|
+
<li>Loading a static page with Webrick now work
|
|
145
|
+
|
|
146
|
+
</li>
|
|
147
|
+
</ul>
|
|
115
148
|
<h3>0.2.0:</h3>
|
|
116
149
|
<ul>
|
|
117
150
|
<li>Class Bivouac::Generate has been completely rewritten
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/bivouac.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module Bivouac
|
|
2
2
|
@@_plugins_view_helpers = []
|
|
3
|
+
@@_plugins_controller_helpers = []
|
|
3
4
|
|
|
4
5
|
def files( xPath, *options, &block )
|
|
5
6
|
path = File.dirname($0) + "/" + xPath.to_s + "/*.rb"
|
|
@@ -27,6 +28,14 @@ module Bivouac
|
|
|
27
28
|
def viewHelperModule
|
|
28
29
|
@@_plugins_view_helpers
|
|
29
30
|
end
|
|
31
|
+
|
|
32
|
+
def addControllerHelperModule( m )
|
|
33
|
+
@@_plugins_view_helpers << m
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def controllerHelperModule
|
|
37
|
+
@@_plugins_view_helpers
|
|
38
|
+
end
|
|
30
39
|
|
|
31
40
|
def filePath( from, *data )
|
|
32
41
|
File.join File.expand_path(File.dirname(from)), data
|
|
@@ -23,4 +23,8 @@ helpers = [
|
|
|
23
23
|
BivouacHelpers::SoundView,
|
|
24
24
|
] + viewHelperModule
|
|
25
25
|
|
|
26
|
-
<%= @conf.appname %>.module_eval "class Mab < Markaby::Builder; include #{helpers.join(', ')}; end"
|
|
26
|
+
<%= @conf.appname %>.module_eval "class Mab < Markaby::Builder; include #{helpers.join(', ')}; end"
|
|
27
|
+
|
|
28
|
+
if controllerHelperModule.size > 0
|
|
29
|
+
Camping.class_eval "include #{controllerHelperModule.join(', ')}"
|
|
30
|
+
end
|
|
@@ -55,7 +55,7 @@ module <%= @conf.appname %>::Controllers
|
|
|
55
55
|
else
|
|
56
56
|
type = (MIME::Types.type_for(file)[0] || '/text/plain').to_s
|
|
57
57
|
@headers['Content-Type'] = type
|
|
58
|
-
@body = open( File.join( PATH, '..', 'public', file ) )
|
|
58
|
+
@body = open( File.join( PATH, '..', 'public', file ) ).read
|
|
59
59
|
# @headers['X-Sendfile'] = File.join PATH, '..', 'public', file
|
|
60
60
|
end
|
|
61
61
|
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.2.
|
|
4
|
+
version: 0.2.1
|
|
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-
|
|
12
|
+
date: 2008-04-04 00:00:00 +02:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
321
321
|
requirements: []
|
|
322
322
|
|
|
323
323
|
rubyforge_project: bivouac
|
|
324
|
-
rubygems_version: 1.0
|
|
324
|
+
rubygems_version: 1.1.0
|
|
325
325
|
signing_key:
|
|
326
326
|
specification_version: 2
|
|
327
327
|
summary: Developpe with Camping like you do with Rails
|