ramaze 0.1.4 → 0.2.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/Rakefile +26 -6
- data/bin/ramaze +8 -1
- data/doc/AUTHORS +13 -11
- data/doc/CHANGELOG +472 -13
- data/doc/LEGAL +22 -0
- data/doc/README +1 -4
- data/doc/TODO +7 -2
- data/doc/changes.txt +472 -13
- data/doc/changes.xml +472 -13
- data/doc/meta/announcement.txt +21 -23
- data/doc/readme_chunks/appendix.txt +0 -3
- data/doc/readme_chunks/features.txt +1 -1
- data/examples/auth/auth.rb +49 -0
- data/examples/auth/template/layout.haml +20 -0
- data/examples/auth/template/login.haml +16 -0
- data/examples/blog/spec/blog.rb +1 -0
- data/examples/caching.rb +5 -6
- data/examples/css.rb +37 -0
- data/examples/layout.rb +3 -17
- data/examples/simple_auth.rb +23 -0
- data/examples/sourceview/public/images/file.gif +0 -0
- data/examples/sourceview/public/images/folder.gif +0 -0
- data/examples/sourceview/public/images/tv-collapsable-last.gif +0 -0
- data/examples/sourceview/public/images/tv-collapsable.gif +0 -0
- data/examples/sourceview/public/images/tv-expandable-last.gif +0 -0
- data/examples/sourceview/public/images/tv-expandable.gif +0 -0
- data/examples/sourceview/public/images/tv-item-last.gif +0 -0
- data/examples/sourceview/public/images/tv-item.gif +0 -0
- data/examples/sourceview/public/jquery.js +11 -0
- data/examples/sourceview/public/jquery.treeview.css +47 -0
- data/examples/sourceview/public/jquery.treeview.js +223 -0
- data/examples/sourceview/public/sourceview.js +16 -0
- data/examples/sourceview/sourceview.rb +74 -0
- data/examples/sourceview/template/index.haml +43 -0
- data/examples/templates/template/external.nag +28 -0
- data/examples/templates/template/external.xsl +57 -0
- data/examples/templates/template_amrita2.rb +2 -4
- data/examples/templates/template_erubis.rb +1 -1
- data/examples/templates/template_haml.rb +1 -1
- data/examples/templates/template_liquid.rb +2 -4
- data/examples/templates/template_markaby.rb +2 -4
- data/examples/templates/template_nagoro.rb +53 -0
- data/examples/templates/template_remarkably.rb +2 -4
- data/examples/templates/template_xslt.rb +52 -0
- data/examples/whywiki/spec/whywiki.rb +63 -0
- data/examples/whywiki/start.rb +11 -13
- data/examples/whywiki/template/edit.xhtml +3 -3
- data/examples/whywiki/template/show.xhtml +5 -8
- data/examples/wikore/spec/wikore.rb +115 -0
- data/examples/wikore/src/controller.rb +81 -0
- data/examples/wikore/src/model.rb +51 -0
- data/examples/wikore/start.rb +6 -0
- data/examples/wikore/template/index.xhtml +8 -0
- data/examples/wiktacular/spec/wiktacular.rb +1 -0
- data/examples/wiktacular/src/controller.rb +1 -1
- data/lib/ramaze.rb +6 -3
- data/lib/ramaze/action.rb +2 -13
- data/lib/ramaze/action/render.rb +36 -18
- data/lib/ramaze/adapter.rb +1 -1
- data/lib/ramaze/adapter/cgi.rb +0 -3
- data/lib/ramaze/adapter/evented_mongrel.rb +7 -0
- data/lib/ramaze/adapter/mongrel.rb +4 -13
- data/lib/ramaze/adapter/swiftiplied_mongrel.rb +7 -0
- data/lib/ramaze/cache.rb +12 -7
- data/lib/ramaze/contrib.rb +22 -0
- data/lib/ramaze/contrib/auto_params.rb +128 -0
- data/lib/ramaze/contrib/auto_params/get_args.rb +56 -0
- data/lib/ramaze/contrib/gzip_filter.rb +57 -0
- data/lib/ramaze/contrib/route.rb +40 -0
- data/lib/ramaze/contrib/sequel/fill.rb +12 -0
- data/lib/ramaze/controller.rb +17 -6
- data/lib/ramaze/controller/resolve.rb +51 -14
- data/lib/ramaze/dispatcher.rb +15 -13
- data/lib/ramaze/dispatcher/action.rb +4 -3
- data/lib/ramaze/dispatcher/directory.rb +3 -3
- data/lib/ramaze/dispatcher/error.rb +1 -1
- data/lib/ramaze/dispatcher/file.rb +17 -6
- data/lib/ramaze/error.rb +3 -0
- data/lib/ramaze/gestalt.rb +28 -8
- data/lib/ramaze/global.rb +26 -6
- data/lib/ramaze/global/globalstruct.rb +31 -6
- data/lib/ramaze/helper.rb +2 -1
- data/lib/ramaze/helper/aspect.rb +2 -2
- data/lib/ramaze/helper/auth.rb +6 -9
- data/lib/ramaze/helper/cache.rb +89 -9
- data/lib/ramaze/helper/cgi.rb +2 -2
- data/lib/ramaze/helper/formatting.rb +44 -0
- data/lib/ramaze/helper/link.rb +7 -5
- data/lib/ramaze/helper/partial.rb +6 -4
- data/lib/ramaze/helper/redirect.rb +24 -9
- data/lib/ramaze/helper/stack.rb +6 -1
- data/lib/ramaze/inform/growl.rb +1 -1
- data/lib/ramaze/inform/informer.rb +2 -1
- data/lib/ramaze/inform/informing.rb +6 -0
- data/lib/ramaze/inform/syslog.rb +1 -0
- data/lib/ramaze/snippets/array/put_within.rb +24 -0
- data/lib/ramaze/snippets/dictionary.rb +499 -0
- data/lib/ramaze/snippets/numeric/filesize_format.rb +19 -0
- data/lib/ramaze/snippets/ordered_set.rb +31 -0
- data/lib/ramaze/snippets/string/DIVIDE.rb +1 -1
- data/lib/ramaze/snippets/string/snake_case.rb +1 -1
- data/lib/ramaze/snippets/struct/values_at.rb +5 -1
- data/lib/ramaze/snippets/thread/into.rb +25 -0
- data/lib/ramaze/sourcereload.rb +39 -19
- data/lib/ramaze/spec/helper.rb +4 -1
- data/lib/ramaze/spec/helper/{context.rb → browser.rb} +3 -0
- data/lib/ramaze/spec/helper/layout.rb +3 -0
- data/lib/ramaze/spec/helper/minimal.rb +3 -0
- data/lib/ramaze/spec/helper/mock_http.rb +8 -5
- data/lib/ramaze/spec/helper/requester.rb +4 -1
- data/lib/ramaze/spec/helper/wrap.rb +15 -7
- data/lib/ramaze/template.rb +5 -1
- data/lib/ramaze/template/ezamar/engine.rb +2 -3
- data/lib/ramaze/template/ezamar/morpher.rb +26 -45
- data/lib/ramaze/template/nagoro.rb +53 -0
- data/lib/ramaze/template/none.rb +14 -0
- data/lib/ramaze/template/xslt.rb +96 -0
- data/lib/ramaze/tool.rb +0 -1
- data/lib/ramaze/tool/localize.rb +7 -2
- data/lib/ramaze/trinity/request.rb +1 -0
- data/lib/ramaze/trinity/session.rb +3 -3
- data/lib/ramaze/version.rb +2 -2
- data/rake_tasks/conf.rake +1 -2
- data/rake_tasks/{maintaince.rake → maintenance.rake} +25 -17
- data/spec/contrib/auto_params.rb +97 -0
- data/spec/contrib/route.rb +60 -0
- data/spec/contrib/sequel/fill.rb +46 -0
- data/spec/examples/caching.rb +1 -2
- data/spec/examples/css.rb +12 -0
- data/spec/examples/element.rb +0 -1
- data/spec/examples/hello.rb +0 -1
- data/spec/examples/simple.rb +0 -1
- data/spec/helper.rb +3 -2
- data/spec/ramaze/action/cache.rb +24 -7
- data/spec/ramaze/action/layout.rb +19 -11
- data/spec/ramaze/action/template/sub/sub_wrapper.xhtml +1 -0
- data/spec/ramaze/controller.rb +11 -0
- data/spec/ramaze/controller/template_resolving.rb +28 -27
- data/spec/ramaze/dispatcher.rb +32 -0
- data/spec/ramaze/dispatcher/directory.rb +2 -1
- data/spec/ramaze/element.rb +1 -1
- data/spec/ramaze/gestalt.rb +28 -0
- data/spec/ramaze/helper/aspect.rb +14 -3
- data/spec/ramaze/helper/cache.rb +78 -13
- data/spec/ramaze/helper/formatting.rb +20 -0
- data/spec/ramaze/helper/link.rb +2 -0
- data/spec/ramaze/helper/partial.rb +12 -1
- data/spec/ramaze/helper/redirect.rb +44 -8
- data/spec/ramaze/helper/stack.rb +3 -3
- data/spec/ramaze/helper/template/loop.xhtml +3 -0
- data/spec/ramaze/helper/template/num.xhtml +1 -0
- data/spec/ramaze/helper/template/recursive.xhtml +8 -0
- data/spec/ramaze/morpher.rb +25 -6
- data/spec/ramaze/params.rb +6 -2
- data/spec/ramaze/request.rb +5 -2
- data/spec/ramaze/session.rb +19 -0
- data/spec/ramaze/template.rb +2 -2
- data/spec/ramaze/template/amrita2.rb +2 -2
- data/spec/ramaze/template/erubis.rb +2 -2
- data/spec/ramaze/template/ezamar.rb +6 -3
- data/spec/ramaze/template/haml.rb +3 -3
- data/spec/ramaze/template/liquid.rb +1 -1
- data/spec/ramaze/template/markaby.rb +1 -1
- data/spec/ramaze/template/nagoro.rb +65 -0
- data/spec/ramaze/template/nagoro/another/long/action.nag +1 -0
- data/spec/ramaze/template/nagoro/combined.nag +1 -0
- data/spec/ramaze/template/nagoro/file_only.nag +1 -0
- data/spec/ramaze/template/nagoro/index.nag +1 -0
- data/spec/ramaze/template/nagoro/nested.nag +1 -0
- data/spec/ramaze/template/nagoro/some__long__action.nag +1 -0
- data/spec/ramaze/template/nagoro/sum.nag +1 -0
- data/spec/ramaze/template/remarkably.rb +1 -1
- data/spec/ramaze/template/sass.rb +1 -1
- data/spec/ramaze/template/xslt.rb +93 -0
- data/spec/ramaze/template/xslt/concat_words.xsl +16 -0
- data/spec/ramaze/template/xslt/index.xsl +14 -0
- data/spec/ramaze/template/xslt/products.xsl +32 -0
- data/spec/ramaze/template/xslt/ruby_version.xsl +14 -0
- data/spec/snippets/array/put_within.rb +32 -0
- data/spec/snippets/numeric/filesize_format.rb +12 -0
- data/spec/snippets/ordered_set.rb +56 -0
- data/spec/snippets/ramaze/caller_lines.rb +6 -3
- data/spec/snippets/string/snake_case.rb +3 -0
- metadata +118 -22
- data/doc/README.html +0 -737
- data/examples/fcgi.rb +0 -13
- data/lib/ramaze/snippets/numeric/human_readable_filesize_format.rb +0 -33
- data/lib/ramaze/tool/tidy.rb +0 -104
- data/spec/ramaze/controller/template/edit.xhtml +0 -1
- data/spec/ramaze/controller/template/edit/content.xhtml +0 -1
- data/spec/ramaze/tidy.rb +0 -12
- data/spec/snippets/numeric/human_readable_filesize_format.rb +0 -11
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
require 'spec/helper'
|
|
2
2
|
|
|
3
3
|
describe "Ramaze#caller_info" do
|
|
4
|
+
before :all do
|
|
5
|
+
@file = Ramaze::BASEDIR/'ramaze/gestalt.rb'
|
|
6
|
+
end
|
|
4
7
|
|
|
5
8
|
it 'should show line numbers' do
|
|
6
|
-
res = Ramaze.caller_lines(
|
|
9
|
+
res = Ramaze.caller_lines(@file, 68, 2)
|
|
7
10
|
res.size.should == 5
|
|
8
|
-
res.map
|
|
11
|
+
res.map{|e| e[0]}.should == (66..70).to_a
|
|
9
12
|
end
|
|
10
13
|
|
|
11
14
|
it 'should show which line we asked for' do
|
|
12
|
-
res = Ramaze.caller_lines(
|
|
15
|
+
res = Ramaze.caller_lines(@file, 68, 2)
|
|
13
16
|
res.size.should == 5
|
|
14
17
|
res.map {|e| e[2]}.should == [false,false,true,false,false]
|
|
15
18
|
end
|
metadata
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
|
-
rubygems_version: 0.9.4
|
|
3
|
-
specification_version:
|
|
2
|
+
rubygems_version: 0.9.4.7
|
|
3
|
+
specification_version: 2
|
|
4
4
|
name: ramaze
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.
|
|
7
|
-
date: 2007-
|
|
6
|
+
version: 0.2.0
|
|
7
|
+
date: 2007-11-20 00:00:00 +09:00
|
|
8
8
|
summary: Ramaze is a simple and modular web framework
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib
|
|
@@ -16,15 +16,22 @@ autorequire:
|
|
|
16
16
|
default_executable:
|
|
17
17
|
bindir: bin
|
|
18
18
|
has_rdoc: true
|
|
19
|
-
required_ruby_version: !ruby/object:Gem::
|
|
19
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
20
20
|
requirements:
|
|
21
|
-
- - "
|
|
21
|
+
- - ">="
|
|
22
22
|
- !ruby/object:Gem::Version
|
|
23
|
-
version: 0
|
|
23
|
+
version: "0"
|
|
24
|
+
version:
|
|
25
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
27
|
+
- - ">="
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: "0"
|
|
24
30
|
version:
|
|
25
31
|
platform: ruby
|
|
26
32
|
signing_key:
|
|
27
|
-
cert_chain:
|
|
33
|
+
cert_chain: []
|
|
34
|
+
|
|
28
35
|
post_install_message: |-
|
|
29
36
|
============================================================
|
|
30
37
|
|
|
@@ -44,6 +51,11 @@ files:
|
|
|
44
51
|
- doc/FAQ
|
|
45
52
|
- doc/CHANGELOG
|
|
46
53
|
- Rakefile
|
|
54
|
+
- examples/auth
|
|
55
|
+
- examples/auth/template
|
|
56
|
+
- examples/auth/template/layout.haml
|
|
57
|
+
- examples/auth/template/login.haml
|
|
58
|
+
- examples/auth/auth.rb
|
|
47
59
|
- examples/blog
|
|
48
60
|
- examples/blog/src
|
|
49
61
|
- examples/blog/src/model.rb
|
|
@@ -98,7 +110,26 @@ files:
|
|
|
98
110
|
- examples/wiktacular/public/favicon.ico
|
|
99
111
|
- examples/wiktacular/public/screen.css
|
|
100
112
|
- examples/wiktacular/start.rb
|
|
101
|
-
- examples/
|
|
113
|
+
- examples/sourceview
|
|
114
|
+
- examples/sourceview/template
|
|
115
|
+
- examples/sourceview/template/index.haml
|
|
116
|
+
- examples/sourceview/public
|
|
117
|
+
- examples/sourceview/public/jquery.treeview.css
|
|
118
|
+
- examples/sourceview/public/jquery.treeview.js
|
|
119
|
+
- examples/sourceview/public/jquery.js
|
|
120
|
+
- examples/sourceview/public/images
|
|
121
|
+
- examples/sourceview/public/images/file.gif
|
|
122
|
+
- examples/sourceview/public/images/folder.gif
|
|
123
|
+
- examples/sourceview/public/images/tv-collapsable-last.gif
|
|
124
|
+
- examples/sourceview/public/images/tv-collapsable.gif
|
|
125
|
+
- examples/sourceview/public/images/tv-item.gif
|
|
126
|
+
- examples/sourceview/public/images/tv-expandable.gif
|
|
127
|
+
- examples/sourceview/public/images/tv-item-last.gif
|
|
128
|
+
- examples/sourceview/public/images/tv-expandable-last.gif
|
|
129
|
+
- examples/sourceview/public/sourceview.js
|
|
130
|
+
- examples/sourceview/sourceview.rb
|
|
131
|
+
- examples/simple_auth.rb
|
|
132
|
+
- examples/css.rb
|
|
102
133
|
- examples/memleak_detector.rb
|
|
103
134
|
- examples/todolist
|
|
104
135
|
- examples/todolist/src
|
|
@@ -122,9 +153,21 @@ files:
|
|
|
122
153
|
- examples/todolist/start.rb
|
|
123
154
|
- examples/identity.rb
|
|
124
155
|
- examples/layout.rb
|
|
156
|
+
- examples/wikore
|
|
157
|
+
- examples/wikore/src
|
|
158
|
+
- examples/wikore/src/model.rb
|
|
159
|
+
- examples/wikore/src/controller.rb
|
|
160
|
+
- examples/wikore/spec
|
|
161
|
+
- examples/wikore/spec/wikore.rb
|
|
162
|
+
- examples/wikore/template
|
|
163
|
+
- examples/wikore/template/index.xhtml
|
|
164
|
+
- examples/wikore/public
|
|
165
|
+
- examples/wikore/start.rb
|
|
125
166
|
- examples/element.rb
|
|
126
167
|
- examples/simple.rb
|
|
127
168
|
- examples/whywiki
|
|
169
|
+
- examples/whywiki/spec
|
|
170
|
+
- examples/whywiki/spec/whywiki.rb
|
|
128
171
|
- examples/whywiki/template
|
|
129
172
|
- examples/whywiki/template/show.xhtml
|
|
130
173
|
- examples/whywiki/template/edit.xhtml
|
|
@@ -133,11 +176,14 @@ files:
|
|
|
133
176
|
- examples/templates
|
|
134
177
|
- examples/templates/template_ezamar.rb
|
|
135
178
|
- examples/templates/template_erubis.rb
|
|
179
|
+
- examples/templates/template_nagoro.rb
|
|
136
180
|
- examples/templates/template_remarkably.rb
|
|
137
181
|
- examples/templates/template_liquid.rb
|
|
138
182
|
- examples/templates/template
|
|
139
183
|
- examples/templates/template/external.mab
|
|
184
|
+
- examples/templates/template/external.nag
|
|
140
185
|
- examples/templates/template/external.rem
|
|
186
|
+
- examples/templates/template/external.xsl
|
|
141
187
|
- examples/templates/template/external.zmr
|
|
142
188
|
- examples/templates/template/external.amrita
|
|
143
189
|
- examples/templates/template/external.liquid
|
|
@@ -146,6 +192,7 @@ files:
|
|
|
146
192
|
- examples/templates/template_amrita2.rb
|
|
147
193
|
- examples/templates/template_haml.rb
|
|
148
194
|
- examples/templates/template_markaby.rb
|
|
195
|
+
- examples/templates/template_xslt.rb
|
|
149
196
|
- bin/ramaze
|
|
150
197
|
- doc/GPL
|
|
151
198
|
- doc/TODO
|
|
@@ -154,6 +201,7 @@ files:
|
|
|
154
201
|
- doc/meta/configuration.txt
|
|
155
202
|
- doc/meta/announcement.txt
|
|
156
203
|
- doc/meta/users.kml
|
|
204
|
+
- doc/LEGAL
|
|
157
205
|
- doc/migrate
|
|
158
206
|
- doc/migrate/1110_to_1111.txt
|
|
159
207
|
- doc/readme_chunks
|
|
@@ -170,12 +218,16 @@ files:
|
|
|
170
218
|
- doc/tutorial/todolist.html
|
|
171
219
|
- doc/tutorial/todolist.mkd
|
|
172
220
|
- doc/AUTHORS
|
|
173
|
-
- doc/README.html
|
|
174
221
|
- doc/INSTALL
|
|
175
222
|
- doc/COPYING
|
|
176
223
|
- doc/ProjectInfo
|
|
177
224
|
- doc/changes.txt
|
|
178
225
|
- doc/changes.xml
|
|
226
|
+
- spec/contrib
|
|
227
|
+
- spec/contrib/auto_params.rb
|
|
228
|
+
- spec/contrib/route.rb
|
|
229
|
+
- spec/contrib/sequel
|
|
230
|
+
- spec/contrib/sequel/fill.rb
|
|
179
231
|
- spec/ramaze
|
|
180
232
|
- spec/ramaze/request
|
|
181
233
|
- spec/ramaze/request/mongrel.rb
|
|
@@ -189,10 +241,17 @@ files:
|
|
|
189
241
|
- spec/ramaze/template/haml/with_vars.haml
|
|
190
242
|
- spec/ramaze/template/sass
|
|
191
243
|
- spec/ramaze/template/sass/file.css.sass
|
|
244
|
+
- spec/ramaze/template/xslt
|
|
245
|
+
- spec/ramaze/template/xslt/products.xsl
|
|
246
|
+
- spec/ramaze/template/xslt/concat_words.xsl
|
|
247
|
+
- spec/ramaze/template/xslt/index.xsl
|
|
248
|
+
- spec/ramaze/template/xslt/ruby_version.xsl
|
|
192
249
|
- spec/ramaze/template/markaby.rb
|
|
250
|
+
- spec/ramaze/template/xslt.rb
|
|
193
251
|
- spec/ramaze/template/sass.rb
|
|
194
252
|
- spec/ramaze/template/ezamar.rb
|
|
195
253
|
- spec/ramaze/template/erubis.rb
|
|
254
|
+
- spec/ramaze/template/nagoro.rb
|
|
196
255
|
- spec/ramaze/template/markaby
|
|
197
256
|
- spec/ramaze/template/markaby/external.mab
|
|
198
257
|
- spec/ramaze/template/markaby/sum.mab
|
|
@@ -217,6 +276,16 @@ files:
|
|
|
217
276
|
- spec/ramaze/template/liquid/index.liquid
|
|
218
277
|
- spec/ramaze/template/liquid/products.liquid
|
|
219
278
|
- spec/ramaze/template/haml.rb
|
|
279
|
+
- spec/ramaze/template/nagoro
|
|
280
|
+
- spec/ramaze/template/nagoro/sum.nag
|
|
281
|
+
- spec/ramaze/template/nagoro/nested.nag
|
|
282
|
+
- spec/ramaze/template/nagoro/combined.nag
|
|
283
|
+
- spec/ramaze/template/nagoro/index.nag
|
|
284
|
+
- spec/ramaze/template/nagoro/some__long__action.nag
|
|
285
|
+
- spec/ramaze/template/nagoro/file_only.nag
|
|
286
|
+
- spec/ramaze/template/nagoro/another
|
|
287
|
+
- spec/ramaze/template/nagoro/another/long
|
|
288
|
+
- spec/ramaze/template/nagoro/another/long/action.nag
|
|
220
289
|
- spec/ramaze/template/ramaze
|
|
221
290
|
- spec/ramaze/template/ramaze/external.test
|
|
222
291
|
- spec/ramaze/template/amrita2
|
|
@@ -228,6 +297,8 @@ files:
|
|
|
228
297
|
- spec/ramaze/action
|
|
229
298
|
- spec/ramaze/action/basics.rb
|
|
230
299
|
- spec/ramaze/action/template
|
|
300
|
+
- spec/ramaze/action/template/sub
|
|
301
|
+
- spec/ramaze/action/template/sub/sub_wrapper.xhtml
|
|
231
302
|
- spec/ramaze/action/template/bar.xhtml
|
|
232
303
|
- spec/ramaze/action/template/single_wrapper.xhtml
|
|
233
304
|
- spec/ramaze/action/template/other_wrapper.xhtml
|
|
@@ -235,13 +306,15 @@ files:
|
|
|
235
306
|
- spec/ramaze/action/layout.rb
|
|
236
307
|
- spec/ramaze/action/render.rb
|
|
237
308
|
- spec/ramaze/template.rb
|
|
238
|
-
- spec/ramaze/tidy.rb
|
|
239
309
|
- spec/ramaze/helper
|
|
240
310
|
- spec/ramaze/helper/pager.rb
|
|
241
311
|
- spec/ramaze/helper/link.rb
|
|
242
312
|
- spec/ramaze/helper/template
|
|
313
|
+
- spec/ramaze/helper/template/num.xhtml
|
|
243
314
|
- spec/ramaze/helper/template/test_template.xhtml
|
|
244
315
|
- spec/ramaze/helper/template/partial.xhtml
|
|
316
|
+
- spec/ramaze/helper/template/recursive.xhtml
|
|
317
|
+
- spec/ramaze/helper/template/loop.xhtml
|
|
245
318
|
- spec/ramaze/helper/cache.rb
|
|
246
319
|
- spec/ramaze/helper/partial.rb
|
|
247
320
|
- spec/ramaze/helper/file.rb
|
|
@@ -249,6 +322,7 @@ files:
|
|
|
249
322
|
- spec/ramaze/helper/redirect.rb
|
|
250
323
|
- spec/ramaze/helper/flash.rb
|
|
251
324
|
- spec/ramaze/helper/stack.rb
|
|
325
|
+
- spec/ramaze/helper/formatting.rb
|
|
252
326
|
- spec/ramaze/helper/auth.rb
|
|
253
327
|
- spec/ramaze/helper/aspect.rb
|
|
254
328
|
- spec/ramaze/adapter.rb
|
|
@@ -266,20 +340,18 @@ files:
|
|
|
266
340
|
- spec/ramaze/controller
|
|
267
341
|
- spec/ramaze/controller/template_resolving.rb
|
|
268
342
|
- spec/ramaze/controller/template
|
|
269
|
-
- spec/ramaze/controller/template/edit
|
|
270
|
-
- spec/ramaze/controller/template/edit/content.xhtml
|
|
271
343
|
- spec/ramaze/controller/template/other
|
|
272
344
|
- spec/ramaze/controller/template/other/greet
|
|
273
345
|
- spec/ramaze/controller/template/other/greet/other.xhtml
|
|
274
346
|
- spec/ramaze/controller/template/greet.xhtml
|
|
275
347
|
- spec/ramaze/controller/template/list.xhtml
|
|
276
|
-
- spec/ramaze/controller/template/edit.xhtml
|
|
277
348
|
- spec/ramaze/controller.rb
|
|
278
349
|
- spec/ramaze/public
|
|
279
350
|
- spec/ramaze/public/favicon.ico
|
|
280
351
|
- spec/ramaze/public/ramaze.png
|
|
281
352
|
- spec/ramaze/public/test_download.css
|
|
282
353
|
- spec/ramaze/public/error404.xhtml
|
|
354
|
+
- spec/ramaze/dispatcher.rb
|
|
283
355
|
- spec/ramaze/dispatcher
|
|
284
356
|
- spec/ramaze/dispatcher/file.rb
|
|
285
357
|
- spec/ramaze/dispatcher/public
|
|
@@ -293,6 +365,7 @@ files:
|
|
|
293
365
|
- spec/ramaze/params.rb
|
|
294
366
|
- spec/examples
|
|
295
367
|
- spec/examples/caching.rb
|
|
368
|
+
- spec/examples/css.rb
|
|
296
369
|
- spec/examples/element.rb
|
|
297
370
|
- spec/examples/simple.rb
|
|
298
371
|
- spec/examples/hello.rb
|
|
@@ -306,6 +379,9 @@ files:
|
|
|
306
379
|
- spec/examples/templates/template_markaby.rb
|
|
307
380
|
- spec/helper.rb
|
|
308
381
|
- spec/snippets
|
|
382
|
+
- spec/snippets/ordered_set.rb
|
|
383
|
+
- spec/snippets/array
|
|
384
|
+
- spec/snippets/array/put_within.rb
|
|
309
385
|
- spec/snippets/kernel
|
|
310
386
|
- spec/snippets/kernel/constant.rb
|
|
311
387
|
- spec/snippets/kernel/aquire.rb
|
|
@@ -322,7 +398,7 @@ files:
|
|
|
322
398
|
- spec/snippets/struct/fill.rb
|
|
323
399
|
- spec/snippets/struct/values_at.rb
|
|
324
400
|
- spec/snippets/numeric
|
|
325
|
-
- spec/snippets/numeric/
|
|
401
|
+
- spec/snippets/numeric/filesize_format.rb
|
|
326
402
|
- lib/proto
|
|
327
403
|
- lib/proto/doc
|
|
328
404
|
- lib/proto/log
|
|
@@ -348,7 +424,7 @@ files:
|
|
|
348
424
|
- lib/ramaze
|
|
349
425
|
- lib/ramaze/spec
|
|
350
426
|
- lib/ramaze/spec/helper
|
|
351
|
-
- lib/ramaze/spec/helper/
|
|
427
|
+
- lib/ramaze/spec/helper/browser.rb
|
|
352
428
|
- lib/ramaze/spec/helper/simple_http.rb
|
|
353
429
|
- lib/ramaze/spec/helper/mock_http.rb
|
|
354
430
|
- lib/ramaze/spec/helper/layout.rb
|
|
@@ -360,9 +436,16 @@ files:
|
|
|
360
436
|
- lib/ramaze/tool/mime_types.yaml
|
|
361
437
|
- lib/ramaze/tool/record.rb
|
|
362
438
|
- lib/ramaze/tool/mime.rb
|
|
363
|
-
- lib/ramaze/tool/tidy.rb
|
|
364
439
|
- lib/ramaze/tool/localize.rb
|
|
365
440
|
- lib/ramaze/tool/create.rb
|
|
441
|
+
- lib/ramaze/contrib
|
|
442
|
+
- lib/ramaze/contrib/auto_params
|
|
443
|
+
- lib/ramaze/contrib/auto_params/get_args.rb
|
|
444
|
+
- lib/ramaze/contrib/gzip_filter.rb
|
|
445
|
+
- lib/ramaze/contrib/auto_params.rb
|
|
446
|
+
- lib/ramaze/contrib/route.rb
|
|
447
|
+
- lib/ramaze/contrib/sequel
|
|
448
|
+
- lib/ramaze/contrib/sequel/fill.rb
|
|
366
449
|
- lib/ramaze/cache
|
|
367
450
|
- lib/ramaze/cache/yaml_store.rb
|
|
368
451
|
- lib/ramaze/cache/memcached.rb
|
|
@@ -372,9 +455,11 @@ files:
|
|
|
372
455
|
- lib/ramaze/error.rb
|
|
373
456
|
- lib/ramaze/template
|
|
374
457
|
- lib/ramaze/template/markaby.rb
|
|
458
|
+
- lib/ramaze/template/xslt.rb
|
|
375
459
|
- lib/ramaze/template/sass.rb
|
|
376
460
|
- lib/ramaze/template/ezamar.rb
|
|
377
461
|
- lib/ramaze/template/erubis.rb
|
|
462
|
+
- lib/ramaze/template/nagoro.rb
|
|
378
463
|
- lib/ramaze/template/liquid.rb
|
|
379
464
|
- lib/ramaze/template/remarkably.rb
|
|
380
465
|
- lib/ramaze/template/ezamar
|
|
@@ -383,6 +468,7 @@ files:
|
|
|
383
468
|
- lib/ramaze/template/ezamar/element.rb
|
|
384
469
|
- lib/ramaze/template/ezamar/morpher.rb
|
|
385
470
|
- lib/ramaze/template/haml.rb
|
|
471
|
+
- lib/ramaze/template/none.rb
|
|
386
472
|
- lib/ramaze/template/amrita2.rb
|
|
387
473
|
- lib/ramaze/cache.rb
|
|
388
474
|
- lib/ramaze/snippets.rb
|
|
@@ -404,6 +490,7 @@ files:
|
|
|
404
490
|
- lib/ramaze/helper/identity.rb
|
|
405
491
|
- lib/ramaze/helper/flash.rb
|
|
406
492
|
- lib/ramaze/helper/stack.rb
|
|
493
|
+
- lib/ramaze/helper/formatting.rb
|
|
407
494
|
- lib/ramaze/helper/auth.rb
|
|
408
495
|
- lib/ramaze/helper/aspect.rb
|
|
409
496
|
- lib/ramaze/helper/nitroform.rb
|
|
@@ -423,12 +510,15 @@ files:
|
|
|
423
510
|
- lib/ramaze/trinity/response.rb
|
|
424
511
|
- lib/ramaze/trinity/request.rb
|
|
425
512
|
- lib/ramaze/trinity/session.rb
|
|
513
|
+
- lib/ramaze/contrib.rb
|
|
426
514
|
- lib/ramaze/adapter
|
|
427
515
|
- lib/ramaze/adapter/mongrel.rb
|
|
428
516
|
- lib/ramaze/adapter/fcgi.rb
|
|
429
517
|
- lib/ramaze/adapter/webrick.rb
|
|
430
518
|
- lib/ramaze/adapter/cgi.rb
|
|
519
|
+
- lib/ramaze/adapter/evented_mongrel.rb
|
|
431
520
|
- lib/ramaze/adapter/base.rb
|
|
521
|
+
- lib/ramaze/adapter/swiftiplied_mongrel.rb
|
|
432
522
|
- lib/ramaze/controller
|
|
433
523
|
- lib/ramaze/controller/resolve.rb
|
|
434
524
|
- lib/ramaze/controller/error.rb
|
|
@@ -446,6 +536,10 @@ files:
|
|
|
446
536
|
- lib/ramaze/action.rb
|
|
447
537
|
- lib/ramaze/helper.rb
|
|
448
538
|
- lib/ramaze/snippets
|
|
539
|
+
- lib/ramaze/snippets/dictionary.rb
|
|
540
|
+
- lib/ramaze/snippets/ordered_set.rb
|
|
541
|
+
- lib/ramaze/snippets/array
|
|
542
|
+
- lib/ramaze/snippets/array/put_within.rb
|
|
449
543
|
- lib/ramaze/snippets/kernel
|
|
450
544
|
- lib/ramaze/snippets/kernel/constant.rb
|
|
451
545
|
- lib/ramaze/snippets/kernel/aquire.rb
|
|
@@ -456,6 +550,8 @@ files:
|
|
|
456
550
|
- lib/ramaze/snippets/ramaze
|
|
457
551
|
- lib/ramaze/snippets/ramaze/caller_lines.rb
|
|
458
552
|
- lib/ramaze/snippets/ramaze/caller_info.rb
|
|
553
|
+
- lib/ramaze/snippets/thread
|
|
554
|
+
- lib/ramaze/snippets/thread/into.rb
|
|
459
555
|
- lib/ramaze/snippets/string
|
|
460
556
|
- lib/ramaze/snippets/string/each.rb
|
|
461
557
|
- lib/ramaze/snippets/string/color.rb
|
|
@@ -468,13 +564,13 @@ files:
|
|
|
468
564
|
- lib/ramaze/snippets/symbol
|
|
469
565
|
- lib/ramaze/snippets/symbol/to_proc.rb
|
|
470
566
|
- lib/ramaze/snippets/numeric
|
|
471
|
-
- lib/ramaze/snippets/numeric/
|
|
567
|
+
- lib/ramaze/snippets/numeric/filesize_format.rb
|
|
472
568
|
- lib/ramaze/version.rb
|
|
473
569
|
- lib/ramaze/inform.rb
|
|
474
570
|
- rake_tasks/conf.rake
|
|
475
571
|
- rake_tasks/gem.rake
|
|
572
|
+
- rake_tasks/maintenance.rake
|
|
476
573
|
- rake_tasks/spec.rake
|
|
477
|
-
- rake_tasks/maintaince.rake
|
|
478
574
|
test_files: []
|
|
479
575
|
|
|
480
576
|
rdoc_options:
|
|
@@ -514,7 +610,7 @@ dependencies:
|
|
|
514
610
|
- !ruby/object:Gem::Dependency
|
|
515
611
|
name: rake
|
|
516
612
|
version_requirement:
|
|
517
|
-
version_requirements: !ruby/object:Gem::
|
|
613
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
518
614
|
requirements:
|
|
519
615
|
- - ">="
|
|
520
616
|
- !ruby/object:Gem::Version
|
|
@@ -523,7 +619,7 @@ dependencies:
|
|
|
523
619
|
- !ruby/object:Gem::Dependency
|
|
524
620
|
name: rspec
|
|
525
621
|
version_requirement:
|
|
526
|
-
version_requirements: !ruby/object:Gem::
|
|
622
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
527
623
|
requirements:
|
|
528
624
|
- - ">="
|
|
529
625
|
- !ruby/object:Gem::Version
|
|
@@ -532,7 +628,7 @@ dependencies:
|
|
|
532
628
|
- !ruby/object:Gem::Dependency
|
|
533
629
|
name: rack
|
|
534
630
|
version_requirement:
|
|
535
|
-
version_requirements: !ruby/object:Gem::
|
|
631
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
536
632
|
requirements:
|
|
537
633
|
- - ">="
|
|
538
634
|
- !ruby/object:Gem::Version
|
data/doc/README.html
DELETED
|
@@ -1,737 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
-
<!DOCTYPE html
|
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
-
|
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
-
<head>
|
|
8
|
-
<title>File: README</title>
|
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
-
<script type="text/javascript">
|
|
13
|
-
// <![CDATA[
|
|
14
|
-
|
|
15
|
-
function popupCode( url ) {
|
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function toggleCode( id ) {
|
|
20
|
-
if ( document.getElementById )
|
|
21
|
-
elem = document.getElementById( id );
|
|
22
|
-
else if ( document.all )
|
|
23
|
-
elem = eval( "document.all." + id );
|
|
24
|
-
else
|
|
25
|
-
return false;
|
|
26
|
-
|
|
27
|
-
elemStyle = elem.style;
|
|
28
|
-
|
|
29
|
-
if ( elemStyle.display != "block" ) {
|
|
30
|
-
elemStyle.display = "block"
|
|
31
|
-
} else {
|
|
32
|
-
elemStyle.display = "none"
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Make codeblocks hidden by default
|
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
-
|
|
41
|
-
// ]]>
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
</head>
|
|
45
|
-
<body>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div id="fileHeader">
|
|
50
|
-
<h1>README</h1>
|
|
51
|
-
<table class="header-table">
|
|
52
|
-
<tr class="top-aligned-row">
|
|
53
|
-
<td><strong>Path:</strong></td>
|
|
54
|
-
<td>doc/README
|
|
55
|
-
</td>
|
|
56
|
-
</tr>
|
|
57
|
-
<tr class="top-aligned-row">
|
|
58
|
-
<td><strong>Last Update:</strong></td>
|
|
59
|
-
<td>Thu Sep 06 22:02:25 +0900 2007</td>
|
|
60
|
-
</tr>
|
|
61
|
-
</table>
|
|
62
|
-
</div>
|
|
63
|
-
<!-- banner header -->
|
|
64
|
-
|
|
65
|
-
<div id="bodyContent">
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<div id="contextContent">
|
|
70
|
-
|
|
71
|
-
<div id="description">
|
|
72
|
-
<pre>
|
|
73
|
-
Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
|
|
74
|
-
All files in this distribution are subject to the terms of the Ruby license.
|
|
75
|
-
</pre>
|
|
76
|
-
<h1>About Ramaze</h1>
|
|
77
|
-
<p>
|
|
78
|
-
Ramaze is a very simple and straight-forward web-framework. The philosophy
|
|
79
|
-
of it could be expressed in a mix of KISS and POLS, trying to make simple
|
|
80
|
-
things simple and complex things possible.
|
|
81
|
-
</p>
|
|
82
|
-
<p>
|
|
83
|
-
This of course is nothing new to anyone who knows some ruby, but is often
|
|
84
|
-
forgotten in a chase for new functionality and features. Ramaze only tries
|
|
85
|
-
to give you the ultimate tools, but you have to use them yourself to
|
|
86
|
-
achieve perfect custom-tailored results.
|
|
87
|
-
</p>
|
|
88
|
-
<p>
|
|
89
|
-
Another one of the goals during development of Ramaze was to make every
|
|
90
|
-
part as modular and therefor reuasable as possible, not only to provide a
|
|
91
|
-
basic understanding after the first glance, but also to make it as simple
|
|
92
|
-
as possible to reuse parts of the code.
|
|
93
|
-
</p>
|
|
94
|
-
<p>
|
|
95
|
-
The original purpose of Ramaze was to act as a kind of framework to build
|
|
96
|
-
web-frameworks, this was made obsolete by the introduction of rack, which
|
|
97
|
-
provides this feature at a better level without trying to enforce any
|
|
98
|
-
structural layout of the resulting framework.
|
|
99
|
-
</p>
|
|
100
|
-
<h1>Features Overview</h1>
|
|
101
|
-
<p>
|
|
102
|
-
Ramaze offers following features at the moment:
|
|
103
|
-
</p>
|
|
104
|
-
<ul>
|
|
105
|
-
<li>Adapters
|
|
106
|
-
|
|
107
|
-
<pre>
|
|
108
|
-
Ramaze takes advantage of the rack library to provide a common way of
|
|
109
|
-
handling different ways to serve its content.
|
|
110
|
-
|
|
111
|
-
Rack supports at the moment:
|
|
112
|
-
|
|
113
|
-
* [Mongrel](http://mongrel.rubyforge.org/)
|
|
114
|
-
|
|
115
|
-
Mongrel is a fast HTTP library and server for Ruby that is intended for
|
|
116
|
-
hosting Ruby web applications of any kind using plain HTTP rather than
|
|
117
|
-
FastCGI or SCGI.
|
|
118
|
-
|
|
119
|
-
* [WEBrick](http://www.webrick.org/)
|
|
120
|
-
|
|
121
|
-
WEBrick is a Ruby library program to build HTTP servers.
|
|
122
|
-
|
|
123
|
-
* CGI
|
|
124
|
-
|
|
125
|
-
CGI is the Common Gateway Interface and is one of the most basic ways
|
|
126
|
-
to integrate into Webservers like Apache, Lighttpd or Nginx.
|
|
127
|
-
|
|
128
|
-
* FCGI
|
|
129
|
-
|
|
130
|
-
Improvment of CGI as it doesn't start up a new connection to Ramaze on
|
|
131
|
-
every request.
|
|
132
|
-
</pre>
|
|
133
|
-
</li>
|
|
134
|
-
<li>Templates
|
|
135
|
-
|
|
136
|
-
<ul>
|
|
137
|
-
<li>[Amrita2](<a
|
|
138
|
-
href="http://amrita2.rubyforge.org">amrita2.rubyforge.org</a>/)
|
|
139
|
-
|
|
140
|
-
<p>
|
|
141
|
-
Amrita2 is a xml/xhtml template library for Ruby. It makes html documents
|
|
142
|
-
from a template and a model data.
|
|
143
|
-
</p>
|
|
144
|
-
</li>
|
|
145
|
-
<li>[Erubis](<a
|
|
146
|
-
href="http://rubyforge.org/projects/erubis">rubyforge.org/projects/erubis</a>)
|
|
147
|
-
|
|
148
|
-
<p>
|
|
149
|
-
Erubis is a fast, secure, and very extensible implementation of eRuby.
|
|
150
|
-
</p>
|
|
151
|
-
</li>
|
|
152
|
-
<li>[Haml](<a href="http://haml.hamptoncatlin.com">haml.hamptoncatlin.com</a>/)
|
|
153
|
-
|
|
154
|
-
<p>
|
|
155
|
-
Haml takes your gross, ugly templates and replaces them with veritable
|
|
156
|
-
Haiku.
|
|
157
|
-
</p>
|
|
158
|
-
</li>
|
|
159
|
-
<li>[Liquid](<a
|
|
160
|
-
href="http://home.leetsoft.com/liquid">home.leetsoft.com/liquid</a>)
|
|
161
|
-
|
|
162
|
-
<p>
|
|
163
|
-
Liquid‘s syntax and parse model are inspired by Django templates, as
|
|
164
|
-
well as PHP‘s smarty.
|
|
165
|
-
</p>
|
|
166
|
-
</li>
|
|
167
|
-
<li>[Remarkably](<a
|
|
168
|
-
href="http://rubyforge.org/projects/remarkably">rubyforge.org/projects/remarkably</a>)
|
|
169
|
-
|
|
170
|
-
<p>
|
|
171
|
-
Remarkably is a very tiny Markaby-like XML builder
|
|
172
|
-
</p>
|
|
173
|
-
</li>
|
|
174
|
-
<li>[Markaby](<a
|
|
175
|
-
href="http://code.whytheluckystiff.net/markaby">code.whytheluckystiff.net/markaby</a>/)
|
|
176
|
-
|
|
177
|
-
<p>
|
|
178
|
-
Markaby means Markup as Ruby.
|
|
179
|
-
</p>
|
|
180
|
-
</li>
|
|
181
|
-
<li>[Sass](<a
|
|
182
|
-
href="http://haml.hamptoncatlin.com/docs/sass">haml.hamptoncatlin.com/docs/sass</a>)
|
|
183
|
-
|
|
184
|
-
<p>
|
|
185
|
-
Sass is a meta-language on top of CSS that‘s used to describe the style
|
|
186
|
-
of a document cleanly and structurally, with more power than flat CSS
|
|
187
|
-
allows.
|
|
188
|
-
</p>
|
|
189
|
-
</li>
|
|
190
|
-
<li>Ezamar
|
|
191
|
-
|
|
192
|
-
<p>
|
|
193
|
-
A simple homage to [Nitro](<a
|
|
194
|
-
href="http://nitroproject.org)s">nitroproject.org)s</a> templating, is
|
|
195
|
-
shipped together with Ramaze.
|
|
196
|
-
</p>
|
|
197
|
-
</li>
|
|
198
|
-
</ul>
|
|
199
|
-
</li>
|
|
200
|
-
<li>Cache
|
|
201
|
-
|
|
202
|
-
<ul>
|
|
203
|
-
<li>Hash
|
|
204
|
-
|
|
205
|
-
</li>
|
|
206
|
-
<li>YAML::Store
|
|
207
|
-
|
|
208
|
-
</li>
|
|
209
|
-
<li>MemCache
|
|
210
|
-
|
|
211
|
-
</li>
|
|
212
|
-
</ul>
|
|
213
|
-
</li>
|
|
214
|
-
<li>Helper
|
|
215
|
-
|
|
216
|
-
<ul>
|
|
217
|
-
<li>Active by default
|
|
218
|
-
|
|
219
|
-
<ul>
|
|
220
|
-
<li>CGI
|
|
221
|
-
|
|
222
|
-
<p>
|
|
223
|
-
Shortcuts for escape/unescape of the CGI module.
|
|
224
|
-
</p>
|
|
225
|
-
</li>
|
|
226
|
-
<li>File
|
|
227
|
-
|
|
228
|
-
<p>
|
|
229
|
-
Helps you serving files from your Controller.
|
|
230
|
-
</p>
|
|
231
|
-
</li>
|
|
232
|
-
<li>Flash
|
|
233
|
-
|
|
234
|
-
<p>
|
|
235
|
-
Store a couple of values for one request associated with a session.
|
|
236
|
-
</p>
|
|
237
|
-
</li>
|
|
238
|
-
<li>Link
|
|
239
|
-
|
|
240
|
-
<p>
|
|
241
|
-
Easier linking to the various parts of your applications Controllers and
|
|
242
|
-
Actions.
|
|
243
|
-
</p>
|
|
244
|
-
</li>
|
|
245
|
-
<li>Redirect
|
|
246
|
-
|
|
247
|
-
<p>
|
|
248
|
-
Easy redirection.
|
|
249
|
-
</p>
|
|
250
|
-
</li>
|
|
251
|
-
</ul>
|
|
252
|
-
</li>
|
|
253
|
-
<li>Optional
|
|
254
|
-
|
|
255
|
-
<ul>
|
|
256
|
-
<li>Aspect
|
|
257
|
-
|
|
258
|
-
<p>
|
|
259
|
-
Allows you to wrap different Actions on your Controller with code.
|
|
260
|
-
</p>
|
|
261
|
-
</li>
|
|
262
|
-
<li>Auth
|
|
263
|
-
|
|
264
|
-
<p>
|
|
265
|
-
Simple way to add basic authentication.
|
|
266
|
-
</p>
|
|
267
|
-
</li>
|
|
268
|
-
<li>Cache
|
|
269
|
-
|
|
270
|
-
<p>
|
|
271
|
-
Easy caching Actions and values.
|
|
272
|
-
</p>
|
|
273
|
-
</li>
|
|
274
|
-
<li>Identity
|
|
275
|
-
|
|
276
|
-
<p>
|
|
277
|
-
For ease of use of the OpenID authentication mechanism.
|
|
278
|
-
</p>
|
|
279
|
-
</li>
|
|
280
|
-
<li>Inform
|
|
281
|
-
|
|
282
|
-
<p>
|
|
283
|
-
Wrapping the functionality of Ramazes logging facilities.
|
|
284
|
-
</p>
|
|
285
|
-
</li>
|
|
286
|
-
<li>Markaby
|
|
287
|
-
|
|
288
|
-
<p>
|
|
289
|
-
Allows you to use Markaby in your Controller without having it as the
|
|
290
|
-
default templating engine.
|
|
291
|
-
</p>
|
|
292
|
-
</li>
|
|
293
|
-
<li>Nitroform
|
|
294
|
-
|
|
295
|
-
<p>
|
|
296
|
-
Hooks up on nitros form builder to help you creating forms from Og objects.
|
|
297
|
-
</p>
|
|
298
|
-
</li>
|
|
299
|
-
<li>OpenID
|
|
300
|
-
|
|
301
|
-
<p>
|
|
302
|
-
Authentication via OpenID made easy.
|
|
303
|
-
</p>
|
|
304
|
-
</li>
|
|
305
|
-
<li>Pager
|
|
306
|
-
|
|
307
|
-
<p>
|
|
308
|
-
Displays a collection of entitities in multiple pages.
|
|
309
|
-
</p>
|
|
310
|
-
</li>
|
|
311
|
-
<li>Partial
|
|
312
|
-
|
|
313
|
-
<p>
|
|
314
|
-
Renders so-called partials.
|
|
315
|
-
</p>
|
|
316
|
-
</li>
|
|
317
|
-
<li>Stack
|
|
318
|
-
|
|
319
|
-
<p>
|
|
320
|
-
Allows you to use a call/answer mechanism for things like redirection to
|
|
321
|
-
the site a user entered login-forms from.
|
|
322
|
-
</p>
|
|
323
|
-
</li>
|
|
324
|
-
</ul>
|
|
325
|
-
</li>
|
|
326
|
-
</ul>
|
|
327
|
-
</li>
|
|
328
|
-
<li>Various
|
|
329
|
-
|
|
330
|
-
<ul>
|
|
331
|
-
<li>Sessions
|
|
332
|
-
|
|
333
|
-
</li>
|
|
334
|
-
<li>Global configuration system
|
|
335
|
-
|
|
336
|
-
</li>
|
|
337
|
-
<li>Simple request/response handling
|
|
338
|
-
|
|
339
|
-
</li>
|
|
340
|
-
<li>Custom sophisticated Error-handling
|
|
341
|
-
|
|
342
|
-
</li>
|
|
343
|
-
</ul>
|
|
344
|
-
</li>
|
|
345
|
-
</ul>
|
|
346
|
-
<h1>Basic Principles</h1>
|
|
347
|
-
<p>
|
|
348
|
-
There are some basic principles that Ramaze tries to follow:
|
|
349
|
-
</p>
|
|
350
|
-
<ul>
|
|
351
|
-
<li>KISS (Keep It Super Simple)
|
|
352
|
-
|
|
353
|
-
<p>
|
|
354
|
-
Ramaze doesn‘t introduce any major change of paradigm for everyone
|
|
355
|
-
familiar with Ruby and the basics of Web-development.
|
|
356
|
-
</p>
|
|
357
|
-
</li>
|
|
358
|
-
<li>POLS (Principle Of Least Surprise)
|
|
359
|
-
|
|
360
|
-
<p>
|
|
361
|
-
Ramaze tries to be intuitive and easy to learn. Most functionality is built
|
|
362
|
-
in a way to help, not to obfuscate or confuse.
|
|
363
|
-
</p>
|
|
364
|
-
</li>
|
|
365
|
-
<li>Modular design
|
|
366
|
-
|
|
367
|
-
<p>
|
|
368
|
-
Use what you want and how you want it.
|
|
369
|
-
</p>
|
|
370
|
-
<p>
|
|
371
|
-
Through Ruby Ramaze provides one of the most powerful programming-languages
|
|
372
|
-
available, giving you full control over your system.
|
|
373
|
-
</p>
|
|
374
|
-
<p>
|
|
375
|
-
Even the most essential parts of Ramaze can easily be replaced and/or
|
|
376
|
-
modified without losing the advantage of the whole framework.
|
|
377
|
-
</p>
|
|
378
|
-
</li>
|
|
379
|
-
<li>Minimal dependencies
|
|
380
|
-
|
|
381
|
-
<p>
|
|
382
|
-
Nothing besides Ruby is required for the basic features.
|
|
383
|
-
</p>
|
|
384
|
-
<p>
|
|
385
|
-
Of course you can take advantage of several wonderful libraries, but Ramaze
|
|
386
|
-
is built in a way to be run on any basic setup.
|
|
387
|
-
</p>
|
|
388
|
-
</li>
|
|
389
|
-
<li>Documentation
|
|
390
|
-
|
|
391
|
-
<p>
|
|
392
|
-
Document everything, classes, modules, methods, configuration…
|
|
393
|
-
</p>
|
|
394
|
-
<p>
|
|
395
|
-
Through 100% documentation Ramaze gives the developer easy and solid
|
|
396
|
-
understanding of the underlying concepts and functionality.
|
|
397
|
-
</p>
|
|
398
|
-
</li>
|
|
399
|
-
<li>Open development
|
|
400
|
-
|
|
401
|
-
<p>
|
|
402
|
-
Everyone is welcome to contribute to Ramaze in the easiest way possible.
|
|
403
|
-
The repository is open for patches passing the Test-suite.
|
|
404
|
-
</p>
|
|
405
|
-
</li>
|
|
406
|
-
<li>Examples
|
|
407
|
-
|
|
408
|
-
<p>
|
|
409
|
-
Everyone learns different, some only read the source, others browse
|
|
410
|
-
documentation, but everyone loves examples for a quick and painless start.
|
|
411
|
-
</p>
|
|
412
|
-
<p>
|
|
413
|
-
Ramaze addresses this need and offers a wide variety of examples of usage,
|
|
414
|
-
basic functionality, project-layout and more advanced applications.
|
|
415
|
-
</p>
|
|
416
|
-
</li>
|
|
417
|
-
<li>Fully BDD (Behaviour Driven Design)
|
|
418
|
-
|
|
419
|
-
<p>
|
|
420
|
-
Ramaze has a very complete set of so-called specifications built by RSpec.
|
|
421
|
-
These specs define the way Ramaze has to behave.
|
|
422
|
-
</p>
|
|
423
|
-
<p>
|
|
424
|
-
The specs are checked every time a new patch is pushed into the repository,
|
|
425
|
-
deciding whether the changes the patch applies are valid and don‘t
|
|
426
|
-
break the framework.
|
|
427
|
-
</p>
|
|
428
|
-
</li>
|
|
429
|
-
</ul>
|
|
430
|
-
<h1>Installation</h1>
|
|
431
|
-
<ul>
|
|
432
|
-
<li>via RubyGems
|
|
433
|
-
|
|
434
|
-
<p>
|
|
435
|
-
The simplest way of installing Ramaze is via
|
|
436
|
-
</p>
|
|
437
|
-
<pre>
|
|
438
|
-
$ gem install ramaze
|
|
439
|
-
</pre>
|
|
440
|
-
<p>
|
|
441
|
-
in case you have RubyGems installed.
|
|
442
|
-
</p>
|
|
443
|
-
</li>
|
|
444
|
-
<li>via darcs
|
|
445
|
-
|
|
446
|
-
<p>
|
|
447
|
-
To get the latest and sweetest, you can just pull from the repository and
|
|
448
|
-
run Ramaze that way.
|
|
449
|
-
</p>
|
|
450
|
-
<pre>
|
|
451
|
-
$ darcs get --partial http://manveru.mine.nu/ramaze
|
|
452
|
-
</pre>
|
|
453
|
-
<p>
|
|
454
|
-
Please read the man page or `darcs help` for more information about
|
|
455
|
-
updating and creating your own patches. This is at the moment the premier
|
|
456
|
-
way to use Ramaze, since it is the way I use it.
|
|
457
|
-
</p>
|
|
458
|
-
<p>
|
|
459
|
-
Some hints for the usage of Darcs.
|
|
460
|
-
</p>
|
|
461
|
-
<ul>
|
|
462
|
-
<li>use require ‘ramaze’ from everywhere
|
|
463
|
-
|
|
464
|
-
<p>
|
|
465
|
-
add a file to your site_ruby named ‘ramaze.rb’ the content
|
|
466
|
-
should be: "require
|
|
467
|
-
’/path/to/darcs/repo/ramaze/lib/ramaze’"
|
|
468
|
-
</p>
|
|
469
|
-
</li>
|
|
470
|
-
<li>get the latest version (from inside the ramaze-directory)
|
|
471
|
-
|
|
472
|
-
<p>
|
|
473
|
-
$ darcs pull
|
|
474
|
-
</p>
|
|
475
|
-
</li>
|
|
476
|
-
<li>record a patch
|
|
477
|
-
|
|
478
|
-
<p>
|
|
479
|
-
$ darcs record
|
|
480
|
-
</p>
|
|
481
|
-
</li>
|
|
482
|
-
<li>output your patches into a bundle ready to be mailed (compress it before
|
|
483
|
-
sending to make sure it arrives in the way you sent it)
|
|
484
|
-
|
|
485
|
-
<p>
|
|
486
|
-
$ darcs send -o ramaze_bundle $ gzip -c ramaze_bundle > ramaze_bundle.gz
|
|
487
|
-
</p>
|
|
488
|
-
</li>
|
|
489
|
-
</ul>
|
|
490
|
-
</li>
|
|
491
|
-
<li>via install.rb
|
|
492
|
-
|
|
493
|
-
<p>
|
|
494
|
-
Support for install.rb has been canceled and the file removed.
|
|
495
|
-
</p>
|
|
496
|
-
</li>
|
|
497
|
-
</ul>
|
|
498
|
-
<h1>Getting Started</h1>
|
|
499
|
-
<p>
|
|
500
|
-
Now that you have a vague idea of what you‘re about to get into you
|
|
501
|
-
might just want to get a way to get up and running ASAP. Please read below
|
|
502
|
-
for more information about installation.
|
|
503
|
-
</p>
|
|
504
|
-
<p>
|
|
505
|
-
Depending on what you are planning to do you can either just go and start
|
|
506
|
-
reading the source or directly get some hands-on experience by trying some
|
|
507
|
-
of the examples. Most things will require dependencies though. The basic
|
|
508
|
-
functionality is provided by the WEBrick adapter and the Template::Ramaze,
|
|
509
|
-
which just run out of the box. For more features you will have to install
|
|
510
|
-
some templating-engines and mongrel (<em>very</em> recommended). Ramaze
|
|
511
|
-
will inform you when it needs further dependencies, so just go and try some
|
|
512
|
-
things.
|
|
513
|
-
</p>
|
|
514
|
-
<p>
|
|
515
|
-
Some places to get started are:
|
|
516
|
-
</p>
|
|
517
|
-
<ul>
|
|
518
|
-
<li>Read the documentation.
|
|
519
|
-
|
|
520
|
-
</li>
|
|
521
|
-
<li>Run and read the test cases.
|
|
522
|
-
|
|
523
|
-
</li>
|
|
524
|
-
<li>Look at the examples and run/modify them.
|
|
525
|
-
|
|
526
|
-
</li>
|
|
527
|
-
</ul>
|
|
528
|
-
<h1>A couple of Examples</h1>
|
|
529
|
-
<p>
|
|
530
|
-
There are some examples for your instant pleasure inside the
|
|
531
|
-
examples-directory in the Ramaze-distribution. To start up an example, you
|
|
532
|
-
can use the Ramaze binary located in bin/ramaze for example:
|
|
533
|
-
</p>
|
|
534
|
-
<pre>
|
|
535
|
-
$ ramaze examples/hello.rb
|
|
536
|
-
</pre>
|
|
537
|
-
<p>
|
|
538
|
-
Or:
|
|
539
|
-
</p>
|
|
540
|
-
<pre>
|
|
541
|
-
$ cd examples/blog
|
|
542
|
-
$ ramaze
|
|
543
|
-
</pre>
|
|
544
|
-
<p>
|
|
545
|
-
Since ramaze uses the start.rb by default if you don‘t pass anything
|
|
546
|
-
else.
|
|
547
|
-
</p>
|
|
548
|
-
<p>
|
|
549
|
-
For more information about the usage of ramaze try:
|
|
550
|
-
</p>
|
|
551
|
-
<pre>
|
|
552
|
-
$ ramaze --help
|
|
553
|
-
</pre>
|
|
554
|
-
<p>
|
|
555
|
-
Examples include:
|
|
556
|
-
</p>
|
|
557
|
-
<ul>
|
|
558
|
-
<li>examples/hello.rb Hello, World!
|
|
559
|
-
|
|
560
|
-
</li>
|
|
561
|
-
<li>examples/simple.rb A bit more advanced than the hello-example, but still
|
|
562
|
-
very basic.
|
|
563
|
-
|
|
564
|
-
</li>
|
|
565
|
-
<li>examples/blog Not yet fully functional, but coming along.
|
|
566
|
-
|
|
567
|
-
</li>
|
|
568
|
-
<li>examples/whywiki A basic examples of a minimalistic application, based on
|
|
569
|
-
the Wiki of _why in his camping-framework.
|
|
570
|
-
|
|
571
|
-
</li>
|
|
572
|
-
<li>examples/templates examples of real usage of the templating-engines. Tries
|
|
573
|
-
to implement the same functionality in each template_*.rb file using a
|
|
574
|
-
different engine.
|
|
575
|
-
|
|
576
|
-
</li>
|
|
577
|
-
</ul>
|
|
578
|
-
<h1>How to find Help</h1>
|
|
579
|
-
<p>
|
|
580
|
-
For help you can:
|
|
581
|
-
</p>
|
|
582
|
-
<ul>
|
|
583
|
-
<li>Visit us in the channel ramaze on irc.freenode.net
|
|
584
|
-
|
|
585
|
-
</li>
|
|
586
|
-
<li>Join the Mailinglist at <a
|
|
587
|
-
href="http://ramaze.rubyforge.org">ramaze.rubyforge.org</a>
|
|
588
|
-
|
|
589
|
-
</li>
|
|
590
|
-
</ul>
|
|
591
|
-
<h1>Appendix</h1>
|
|
592
|
-
<ul>
|
|
593
|
-
<li>Nicer Error-pages
|
|
594
|
-
|
|
595
|
-
<ul>
|
|
596
|
-
<li>Install coderay (it‘s a gem)
|
|
597
|
-
|
|
598
|
-
</li>
|
|
599
|
-
</ul>
|
|
600
|
-
</li>
|
|
601
|
-
<li>Performance
|
|
602
|
-
|
|
603
|
-
<ul>
|
|
604
|
-
<li>Serving
|
|
605
|
-
|
|
606
|
-
<p>
|
|
607
|
-
For best performance you should consider using Mongrel to host your
|
|
608
|
-
application.
|
|
609
|
-
</p>
|
|
610
|
-
</li>
|
|
611
|
-
<li>Caching
|
|
612
|
-
|
|
613
|
-
<p>
|
|
614
|
-
You can easily cache your pages using the CacheHelper. Also, using MemCache
|
|
615
|
-
gives you high-end performance and security.
|
|
616
|
-
</p>
|
|
617
|
-
</li>
|
|
618
|
-
</ul>
|
|
619
|
-
</li>
|
|
620
|
-
</ul>
|
|
621
|
-
<h1>And thanks to…</h1>
|
|
622
|
-
<p>
|
|
623
|
-
There is a large number of people who made Ramaze possibe by their ongoing
|
|
624
|
-
efforts in the world of open source and by encouraging and helping me.
|
|
625
|
-
</p>
|
|
626
|
-
<p>
|
|
627
|
-
This list is by no means a full listing of all these people, but I try to
|
|
628
|
-
get a good coverage despite that.
|
|
629
|
-
</p>
|
|
630
|
-
<p>
|
|
631
|
-
I would like to thank:
|
|
632
|
-
</p>
|
|
633
|
-
<ul>
|
|
634
|
-
<li>Yukihiro Matsumoto a.k.a matz
|
|
635
|
-
|
|
636
|
-
<pre>
|
|
637
|
-
For giving the world Ruby and bringing fun back into programming.
|
|
638
|
-
</pre>
|
|
639
|
-
</li>
|
|
640
|
-
<li>Zed Shawn a.k.a. zedas
|
|
641
|
-
|
|
642
|
-
<pre>
|
|
643
|
-
For developing Mongrel, Ramaze started out as a simple Hello World based
|
|
644
|
-
on that awesome server.
|
|
645
|
-
</pre>
|
|
646
|
-
</li>
|
|
647
|
-
<li>Christian Neukirchen a.k.a chris2
|
|
648
|
-
|
|
649
|
-
<pre>
|
|
650
|
-
For building rack, which is just what the numerous web-developers had
|
|
651
|
-
anticipated and which will, with no doubt, change the world.
|
|
652
|
-
</pre>
|
|
653
|
-
</li>
|
|
654
|
-
<li>Pistos
|
|
655
|
-
|
|
656
|
-
<pre>
|
|
657
|
-
For continious encouragment and building the first real webpage on Ramaze.
|
|
658
|
-
His bugreports were invaluable.
|
|
659
|
-
</pre>
|
|
660
|
-
</li>
|
|
661
|
-
<li>Jim Weirich
|
|
662
|
-
|
|
663
|
-
<pre>
|
|
664
|
-
For Rake, which lifts off a lot of tasks from the shoulders of every
|
|
665
|
-
developer who uses it.
|
|
666
|
-
</pre>
|
|
667
|
-
</li>
|
|
668
|
-
<li>Thomas Sawyer a.k.a Trans
|
|
669
|
-
|
|
670
|
-
<pre>
|
|
671
|
-
Dragging me deep into the rabbit-hole and showing me how awesome Ruby
|
|
672
|
-
truely is through his work on facets, ratchets and tons of other projects.
|
|
673
|
-
</pre>
|
|
674
|
-
</li>
|
|
675
|
-
<li>George Moschovitis a.k.a gmosx
|
|
676
|
-
|
|
677
|
-
<pre>
|
|
678
|
-
For his tremendous efforts in the Nitro/Og framework, which is a source of
|
|
679
|
-
steady inspiration for Ramaze and brought me to Ruby in the first place.
|
|
680
|
-
</pre>
|
|
681
|
-
</li>
|
|
682
|
-
<li>Rob Levin a.k.a. lilo
|
|
683
|
-
|
|
684
|
-
<pre>
|
|
685
|
-
He founded the most excellent Freenode IRC-network, where the most important
|
|
686
|
-
channels for rubyists are located (as is #ramaze).
|
|
687
|
-
May he rest in peace.
|
|
688
|
-
</pre>
|
|
689
|
-
</li>
|
|
690
|
-
<li>The guys (and gals) in the various channels on Freenode
|
|
691
|
-
|
|
692
|
-
<pre>
|
|
693
|
-
As the people are way too many to be listed, here the channels that i call
|
|
694
|
-
my online home.
|
|
695
|
-
All the people in there deserve special thanks for getting me hooked to Ruby
|
|
696
|
-
and providing their help in a friendly and patient manner.
|
|
697
|
-
|
|
698
|
-
* #nitro
|
|
699
|
-
* #ruby-de
|
|
700
|
-
* #ruby-lang
|
|
701
|
-
* #rubyforce
|
|
702
|
-
</pre>
|
|
703
|
-
</li>
|
|
704
|
-
</ul>
|
|
705
|
-
|
|
706
|
-
</div>
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
</div>
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
</div>
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
<!-- if includes -->
|
|
716
|
-
|
|
717
|
-
<div id="section">
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
<!-- if method_list -->
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
</div>
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
<div id="validator-badges">
|
|
733
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
734
|
-
</div>
|
|
735
|
-
|
|
736
|
-
</body>
|
|
737
|
-
</html>
|