ramaze 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +52 -19
- data/bin/ramaze +19 -6
- data/doc/CHANGELOG +33 -0
- data/doc/COPYING +1 -1
- data/doc/FAQ +92 -0
- data/doc/GPL +340 -0
- data/doc/INSTALL +34 -0
- data/doc/ProjectInfo +53 -0
- data/doc/README +187 -110
- data/doc/readme_chunks/appendix.txt +13 -0
- data/doc/readme_chunks/examples.txt +38 -0
- data/doc/readme_chunks/features.txt +82 -0
- data/doc/readme_chunks/getting_help.txt +5 -0
- data/doc/readme_chunks/getting_started.txt +18 -0
- data/doc/readme_chunks/installing.txt +41 -0
- data/doc/readme_chunks/introduction.txt +18 -0
- data/doc/readme_chunks/principles.txt +41 -0
- data/doc/readme_chunks/thanks.txt +59 -0
- data/doc/tutorial/todolist.txt +546 -0
- data/examples/blog/main.rb +1 -1
- data/examples/blog/src/controller.rb +13 -11
- data/examples/blog/src/element.rb +11 -6
- data/examples/blog/src/model.rb +8 -23
- data/examples/blog/template/edit.xhtml +3 -1
- data/examples/blog/template/index.xhtml +4 -4
- data/examples/caching.rb +4 -4
- data/examples/element.rb +10 -7
- data/examples/hello.rb +3 -4
- data/examples/simple.rb +5 -3
- data/examples/templates/template/external.amrita +19 -0
- data/examples/templates/template/{external.rmze → external.zmr} +2 -2
- data/examples/templates/template_amrita2.rb +48 -0
- data/examples/templates/template_erubis.rb +5 -2
- data/examples/templates/{template_ramaze.rb → template_ezamar.rb} +13 -7
- data/examples/templates/template_haml.rb +4 -1
- data/examples/templates/template_liquid.rb +2 -1
- data/examples/templates/template_markaby.rb +2 -1
- data/examples/todolist/conf/benchmark.yaml +35 -0
- data/examples/todolist/conf/debug.yaml +34 -0
- data/examples/todolist/conf/live.yaml +33 -0
- data/examples/todolist/conf/silent.yaml +31 -0
- data/examples/todolist/conf/stage.yaml +33 -0
- data/examples/todolist/main.rb +18 -0
- data/examples/todolist/public/404.jpg +0 -0
- data/examples/todolist/public/css/coderay.css +105 -0
- data/examples/todolist/public/css/ramaze_error.css +42 -0
- data/{lib/proto → examples/todolist}/public/error.xhtml +0 -0
- data/examples/todolist/public/favicon.ico +0 -0
- data/examples/todolist/public/js/jquery.js +1923 -0
- data/examples/todolist/public/ramaze.png +0 -0
- data/examples/todolist/src/controller/main.rb +56 -0
- data/examples/todolist/src/element/page.rb +26 -0
- data/examples/todolist/src/model.rb +14 -0
- data/examples/todolist/template/index.xhtml +17 -0
- data/examples/todolist/template/new.xhtml +7 -0
- data/examples/todolist/todolist.db +9 -0
- data/examples/whywiki/main.rb +3 -8
- data/examples/whywiki/template/show.xhtml +4 -0
- data/lib/proto/public/error.zmr +77 -0
- data/lib/proto/src/controller/main.rb +2 -1
- data/lib/proto/src/element/page.rb +2 -1
- data/lib/proto/src/model.rb +3 -2
- data/lib/ramaze.rb +7 -9
- data/lib/ramaze/adapter.rb +51 -0
- data/lib/ramaze/adapter/cgi.rb +23 -0
- data/lib/ramaze/adapter/fcgi.rb +22 -0
- data/lib/ramaze/adapter/mongrel.rb +7 -86
- data/lib/ramaze/adapter/webrick.rb +14 -133
- data/lib/ramaze/cache/memcached.rb +6 -0
- data/lib/ramaze/cache/yaml_store.rb +3 -1
- data/lib/ramaze/controller.rb +292 -2
- data/lib/ramaze/dispatcher.rb +85 -213
- data/lib/ramaze/error.rb +10 -0
- data/lib/ramaze/global.rb +8 -0
- data/lib/ramaze/helper/aspect.rb +30 -7
- data/lib/ramaze/helper/auth.rb +16 -9
- data/lib/ramaze/helper/cache.rb +40 -35
- data/lib/ramaze/helper/feed.rb +1 -1
- data/lib/ramaze/helper/flash.rb +34 -0
- data/lib/ramaze/helper/link.rb +8 -2
- data/lib/ramaze/helper/openid.rb +63 -0
- data/lib/ramaze/helper/redirect.rb +12 -11
- data/lib/ramaze/helper/stack.rb +5 -7
- data/lib/ramaze/inform.rb +12 -1
- data/lib/ramaze/snippets/kernel/aquire.rb +1 -1
- data/lib/ramaze/snippets/kernel/{self_method.rb → method.rb} +3 -18
- data/lib/ramaze/snippets/kernel/{rescue_require.rb → pretty_inspect.rb} +7 -6
- data/lib/ramaze/snippets/method/name.rb +22 -0
- data/lib/ramaze/snippets/{kernel → ramaze}/autoreload.rb +0 -0
- data/lib/ramaze/snippets/ramaze/caller_info.rb +14 -0
- data/lib/ramaze/snippets/{kernel → ramaze}/caller_lines.rb +3 -10
- data/lib/ramaze/snippets/rdoc/usage_no_exit.rb +49 -23
- data/lib/ramaze/snippets/string/DIVIDE.rb +0 -1
- data/lib/ramaze/store/default.rb +58 -2
- data/lib/ramaze/store/yaml.rb +161 -0
- data/lib/ramaze/template.rb +27 -86
- data/lib/ramaze/template/amrita2.rb +14 -19
- data/lib/ramaze/template/erubis.rb +15 -38
- data/lib/ramaze/template/ezamar.rb +100 -0
- data/lib/ramaze/template/ezamar/element.rb +166 -0
- data/lib/ramaze/template/ezamar/engine.rb +124 -0
- data/lib/ramaze/template/ezamar/morpher.rb +155 -0
- data/lib/ramaze/template/haml.rb +16 -43
- data/lib/ramaze/template/liquid.rb +11 -51
- data/lib/ramaze/template/markaby.rb +44 -42
- data/lib/ramaze/tool/mime.rb +18 -0
- data/lib/ramaze/tool/mime_types.yaml +615 -0
- data/lib/ramaze/trinity/request.rb +20 -196
- data/lib/ramaze/trinity/response.rb +4 -33
- data/lib/ramaze/trinity/session.rb +150 -72
- data/lib/ramaze/version.rb +1 -1
- data/spec/adapter_spec.rb +20 -0
- data/spec/public/favicon.ico +0 -0
- data/spec/public/ramaze.png +0 -0
- data/spec/public/test_download.css +141 -0
- data/spec/{tc_request.rb → request_tc_helper.rb} +45 -21
- data/spec/spec_all.rb +77 -34
- data/spec/spec_helper.rb +8 -157
- data/spec/spec_helper_context.rb +72 -0
- data/spec/spec_helper_requester.rb +52 -0
- data/spec/spec_helper_simple_http.rb +433 -0
- data/spec/tc_adapter_mongrel.rb +3 -15
- data/spec/tc_adapter_webrick.rb +4 -14
- data/spec/tc_cache.rb +3 -5
- data/spec/tc_controller.rb +22 -12
- data/spec/tc_dependencies.rb +13 -0
- data/spec/tc_element.rb +8 -7
- data/spec/tc_error.rb +13 -7
- data/spec/tc_global.rb +16 -18
- data/spec/tc_helper_aspect.rb +2 -4
- data/spec/tc_helper_auth.rb +15 -14
- data/spec/tc_helper_cache.rb +5 -7
- data/spec/tc_helper_feed.rb +0 -2
- data/spec/tc_helper_flash.rb +103 -0
- data/spec/tc_helper_form.rb +4 -6
- data/spec/tc_helper_link.rb +1 -3
- data/spec/tc_helper_redirect.rb +23 -8
- data/spec/tc_helper_stack.rb +31 -15
- data/spec/tc_morpher.rb +1 -3
- data/spec/tc_params.rb +48 -7
- data/spec/tc_request_mongrel.rb +9 -0
- data/spec/tc_request_webrick.rb +5 -0
- data/spec/tc_session.rb +41 -25
- data/spec/tc_store.rb +55 -6
- data/spec/tc_store_yaml.rb +71 -0
- data/spec/tc_template_amrita2.rb +3 -3
- data/spec/tc_template_erubis.rb +2 -3
- data/spec/{tc_template_ramaze.rb → tc_template_ezamar.rb} +15 -5
- data/spec/tc_template_haml.rb +4 -3
- data/spec/tc_template_liquid.rb +3 -4
- data/spec/tc_template_markaby.rb +4 -6
- data/spec/tc_tidy.rb +1 -3
- data/spec/template/amrita2/{data.html → data.amrita} +0 -0
- data/spec/template/amrita2/{index.html → index.amrita} +0 -0
- data/spec/template/amrita2/{sum.html → sum.amrita} +0 -0
- data/spec/template/ezamar/another/long/action.zmr +1 -0
- data/spec/template/ezamar/combined.zmr +1 -0
- data/spec/template/{ramaze/file_only.rmze → ezamar/file_only.zmr} +0 -0
- data/spec/template/{ramaze/index.rmze → ezamar/index.zmr} +0 -0
- data/spec/template/{ramaze/nested.rmze → ezamar/nested.zmr} +0 -0
- data/spec/template/ezamar/some__long__action.zmr +1 -0
- data/spec/template/{ramaze/sum.rmze → ezamar/sum.zmr} +0 -0
- metadata +181 -123
- data/doc/allison/LICENSE +0 -184
- data/doc/allison/README +0 -37
- data/doc/allison/allison.css +0 -300
- data/doc/allison/allison.gif +0 -0
- data/doc/allison/allison.js +0 -307
- data/doc/allison/allison.rb +0 -287
- data/doc/allison/cache/BODY +0 -588
- data/doc/allison/cache/CLASS_INDEX +0 -4
- data/doc/allison/cache/CLASS_PAGE +0 -1
- data/doc/allison/cache/FILE_INDEX +0 -4
- data/doc/allison/cache/FILE_PAGE +0 -1
- data/doc/allison/cache/FONTS +0 -1
- data/doc/allison/cache/FR_INDEX_BODY +0 -1
- data/doc/allison/cache/IMGPATH +0 -1
- data/doc/allison/cache/INDEX +0 -1
- data/doc/allison/cache/JAVASCRIPT +0 -307
- data/doc/allison/cache/METHOD_INDEX +0 -4
- data/doc/allison/cache/METHOD_LIST +0 -1
- data/doc/allison/cache/SRC_PAGE +0 -1
- data/doc/allison/cache/STYLE +0 -322
- data/doc/allison/cache/URL +0 -1
- data/doc/changes.txt +0 -2021
- data/doc/changes.xml +0 -2024
- data/lib/ramaze/snippets/kernel/silently.rb +0 -13
- data/lib/ramaze/snippets/thread/deadQUESTIONMARK.rb +0 -11
- data/lib/ramaze/template/haml/actionview_stub.rb +0 -20
- data/lib/ramaze/template/ramaze.rb +0 -177
- data/lib/ramaze/template/ramaze/element.rb +0 -166
- data/lib/ramaze/template/ramaze/morpher.rb +0 -156
- data/spec/tc_test.rb +0 -17
data/doc/INSTALL
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
= Installating Ramaze
|
2
|
+
|
3
|
+
* via RubyGems
|
4
|
+
|
5
|
+
The simplest way of installing Ramaze is via
|
6
|
+
|
7
|
+
$ gem install ramaze
|
8
|
+
|
9
|
+
in case you have RubyGems installed.
|
10
|
+
(this will work as soon as I have registered on RubyForge ;)
|
11
|
+
|
12
|
+
* via install.rb
|
13
|
+
|
14
|
+
Ramaze provides a basic install.rb that should take care of the installation
|
15
|
+
you can use it like
|
16
|
+
|
17
|
+
$ ruby install.rb
|
18
|
+
|
19
|
+
you may need root-privileges to do
|
20
|
+
that, depending on what options you provide.
|
21
|
+
(please note that I haven't tested the install.rb extensively yet, so if you
|
22
|
+
find some quirks, please send me patches or a simple note)
|
23
|
+
|
24
|
+
* via darcs
|
25
|
+
|
26
|
+
To get the latest and sweetest, you can just pull from the repository and run
|
27
|
+
Ramaze that way.
|
28
|
+
|
29
|
+
$ darcs get http://manveru.mine.nu/ramaze
|
30
|
+
|
31
|
+
Please read the man page or `darcs help` for more information about updating
|
32
|
+
and creating your own patches.
|
33
|
+
This is at the moment the premier way to use Ramaze, since it is the way I use
|
34
|
+
it.
|
data/doc/ProjectInfo
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
project : ramaze
|
3
|
+
version : '0.0.7'
|
4
|
+
status : alpha
|
5
|
+
|
6
|
+
title : Ramaze
|
7
|
+
subtitle : A light and modular Web-Framework
|
8
|
+
description : >
|
9
|
+
Ramaze is a very simple and straight-forward web-framework.
|
10
|
+
The philosophy of it could be expressed in a mix of KISS and POLS, trying to
|
11
|
+
make simple things simple and complex things possible.
|
12
|
+
|
13
|
+
author : Michael Fellinger <m.fellinger@gmail.com>
|
14
|
+
created : "2006-10-14"
|
15
|
+
homepage : "http://ramaze.rubyforge.org"
|
16
|
+
download : "https://rubyforge.org/frs/?group_id=3034"
|
17
|
+
repository : "http://manveru.mine.nu/darcs/ramaze"
|
18
|
+
slogan : Ramaze, light and modular
|
19
|
+
#signiture : "../_privkey.pem"
|
20
|
+
|
21
|
+
pack : [gem, tgz, bz2]
|
22
|
+
distribute : [ -scrap ]
|
23
|
+
dependency :
|
24
|
+
- [ autorake, >= 0.5.1 ]
|
25
|
+
executable : [ bin/ramaze ]
|
26
|
+
|
27
|
+
#digest : sha256
|
28
|
+
#manifest : MANIFEST.txt
|
29
|
+
archive : ~/ruby/ARCHIVE
|
30
|
+
scm : darcs
|
31
|
+
scm_ignore : [ doc/allison ]
|
32
|
+
changelog : doc/CHANGELOG
|
33
|
+
stamp : doc/VERSION
|
34
|
+
|
35
|
+
rdoc:
|
36
|
+
template : allison
|
37
|
+
|
38
|
+
mail:
|
39
|
+
server : smtp.gmail.com
|
40
|
+
account : m.fellinger@gmail.com
|
41
|
+
mail_to : m.fellinger@gmail.com
|
42
|
+
|
43
|
+
rubyforge:
|
44
|
+
project : ramaze
|
45
|
+
username : manveru
|
46
|
+
groupid : 3034
|
47
|
+
package : ramaze
|
48
|
+
|
49
|
+
#host:
|
50
|
+
# domain : rubyforge.org
|
51
|
+
# user : transami
|
52
|
+
# root : '/var/www/gforge-projects/ratchets'
|
53
|
+
|
data/doc/README
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
|
2
|
+
All files in this distribution are subject to the terms of the Ruby license.
|
3
3
|
|
4
|
-
=
|
4
|
+
= About Ramaze
|
5
5
|
|
6
6
|
Ramaze is a very simple and straight-forward web-framework.
|
7
7
|
The philosophy of it could be expressed in a mix of KISS and POLS, trying to
|
@@ -12,89 +12,44 @@ forgotten in a chase for new functionality and features. Ramaze only tries to
|
|
12
12
|
give you the ultimate tools, but you have to use them yourself to achieve
|
13
13
|
perfect custom-tailored results.
|
14
14
|
|
15
|
-
Another
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
custom web framework always has to reimplement the most basic and common
|
20
|
-
functionality.
|
15
|
+
Another one of the goals during development of Ramaze was to make every part as
|
16
|
+
modular and therefor reuasable as possible, not only to provide a basic
|
17
|
+
understanding after the first glance, but also to make it as simple as possible
|
18
|
+
to reuse parts of the code.
|
21
19
|
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
The original purpose of Ramaze was to act as a kind of framework to build
|
21
|
+
web-frameworks, this was made obsolete by the introduction of rack, which
|
22
|
+
provides this feature at a better level without trying to enforce any structural
|
23
|
+
layout of the resulting framework.
|
25
24
|
|
26
|
-
The same goes for the implementation of sessions or the request/response
|
27
|
-
objects which are collected under the module Trinity. Or all the examples
|
28
|
-
of real world-usage of the most popular templating-engines. Within a framework,
|
29
|
-
not to mention the basic need for a Dispatcher.
|
30
25
|
|
31
|
-
|
32
|
-
implementations, and this is the reason why it is not encouraged to directly
|
33
|
-
require files from Ramaze, they are one working entity together, but with a few
|
34
|
-
modifications it's your very own implementation and fits into your own project.
|
35
|
-
Not to mention that introducing another web framework for your own would be
|
36
|
-
quite odd ;)
|
26
|
+
= Features Overview
|
37
27
|
|
28
|
+
Ramaze offers following features at the moment:
|
38
29
|
|
39
|
-
|
40
|
-
|
41
|
-
There are some basic principles that Ramaze tries to follow:
|
42
|
-
|
43
|
-
* Test everything
|
44
|
-
|
45
|
-
What use is a wonderful application if it doesn't work?
|
46
|
-
|
47
|
-
|
48
|
-
* Document everything
|
49
|
-
|
50
|
-
Documentation is the glue between the code and the programmers brain
|
51
|
-
|
52
|
-
|
53
|
-
* Keep It Super Simple (KISS)
|
54
|
-
|
55
|
-
Most things should be understandable after reading them once
|
56
|
-
|
57
|
-
|
58
|
-
* Principle Of Least Surprise (POLS)
|
59
|
-
|
60
|
-
Going the way of ruby
|
61
|
-
|
62
|
-
|
63
|
-
* Modular design
|
64
|
-
|
65
|
-
Making it as simple as possible to extract parts
|
66
|
-
|
67
|
-
|
68
|
-
* Minimal dependencies
|
69
|
-
|
70
|
-
In case a dependency is not met use a simple fall-back instead
|
30
|
+
* Adapters
|
71
31
|
|
32
|
+
Ramaze takes advantage of the rack library to provide a common way of
|
33
|
+
handling different ways to serve its content.
|
72
34
|
|
73
|
-
|
35
|
+
Rack supports at the moment:
|
74
36
|
|
75
|
-
|
37
|
+
* Mongrel
|
76
38
|
|
39
|
+
http://mongrel.rubyforge.org/
|
40
|
+
Mongrel is a fast HTTP library and server for Ruby that is intended for
|
41
|
+
hosting Ruby web applications of any kind using plain HTTP rather than
|
42
|
+
FastCGI or SCGI.
|
77
43
|
|
78
|
-
*
|
44
|
+
* WEBrick
|
79
45
|
|
80
|
-
|
81
|
-
|
46
|
+
http://www.webrick.org/
|
47
|
+
WEBrick is a Ruby library program to build HTTP servers.
|
82
48
|
|
49
|
+
* CGI
|
83
50
|
|
84
|
-
|
85
|
-
|
86
|
-
Ramaze offers following features at the moment:
|
87
|
-
|
88
|
-
* Adapters
|
89
|
-
* Mongrel
|
90
|
-
http://mongrel.rubyforge.org/
|
91
|
-
Mongrel is a fast HTTP library and server for Ruby that is intended for
|
92
|
-
hosting Ruby web applications of any kind using plain HTTP rather than
|
93
|
-
FastCGI or SCGI.
|
94
|
-
|
95
|
-
* WEBrick
|
96
|
-
http://www.webrick.org/
|
97
|
-
WEBrick is a Ruby library program to build HTTP servers.
|
51
|
+
CGI is the Common Gateway Interface and is one of the most basic ways
|
52
|
+
to integrate into Webservers like Apache, Lighttpd or Nginx.
|
98
53
|
|
99
54
|
|
100
55
|
* Templates
|
@@ -125,7 +80,7 @@ Ramaze offers following features at the moment:
|
|
125
80
|
http://code.whytheluckystiff.net/markaby/
|
126
81
|
Markaby means Markup as Ruby.
|
127
82
|
|
128
|
-
*
|
83
|
+
* Ezamar
|
129
84
|
|
130
85
|
A simple homage to Nitros templating. Please check out http://nitroproject.org
|
131
86
|
for more information.
|
@@ -140,8 +95,10 @@ Ramaze offers following features at the moment:
|
|
140
95
|
* Auth
|
141
96
|
* Cache
|
142
97
|
* Feed
|
98
|
+
* Flash
|
143
99
|
* Form
|
144
100
|
* Link
|
101
|
+
* OpenID
|
145
102
|
* Redirect
|
146
103
|
* Stack
|
147
104
|
|
@@ -152,28 +109,52 @@ Ramaze offers following features at the moment:
|
|
152
109
|
* Custom Error-handling
|
153
110
|
|
154
111
|
|
155
|
-
|
112
|
+
= Basic Principles
|
156
113
|
|
157
|
-
|
158
|
-
want to get a way to get up and running ASAP.
|
159
|
-
Please read below for more information about installation.
|
114
|
+
There are some basic principles that Ramaze tries to follow:
|
160
115
|
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
116
|
+
* Test everything
|
117
|
+
|
118
|
+
What use is a wonderful application if it doesn't work?
|
119
|
+
|
120
|
+
|
121
|
+
* Document everything
|
122
|
+
|
123
|
+
Documentation is the glue between the code and the programmers brain
|
169
124
|
|
170
|
-
Some places to get started are:
|
171
|
-
- Read the documentation.
|
172
|
-
- Run and read the test cases.
|
173
|
-
- Look at the examples and run/modify them.
|
174
125
|
|
126
|
+
* Keep It Super Simple (KISS)
|
127
|
+
|
128
|
+
Most things should be understandable after reading them once
|
175
129
|
|
176
|
-
|
130
|
+
|
131
|
+
* Principle Of Least Surprise (POLS)
|
132
|
+
|
133
|
+
Going the way of ruby
|
134
|
+
|
135
|
+
|
136
|
+
* Modular design
|
137
|
+
|
138
|
+
Making it as simple as possible to extract parts
|
139
|
+
|
140
|
+
|
141
|
+
* Minimal dependencies
|
142
|
+
|
143
|
+
In case a dependency is not met use a simple fall-back instead
|
144
|
+
|
145
|
+
|
146
|
+
* Provide as many examples as possible
|
147
|
+
|
148
|
+
Examples are a superior way of getting a quick start into everything
|
149
|
+
|
150
|
+
|
151
|
+
* Open development
|
152
|
+
|
153
|
+
I happily accept all patches or feature-requests that you may have,
|
154
|
+
as long as they comply with these principles
|
155
|
+
|
156
|
+
|
157
|
+
= Installation
|
177
158
|
|
178
159
|
* via RubyGems
|
179
160
|
|
@@ -184,32 +165,63 @@ Some places to get started are:
|
|
184
165
|
in case you have RubyGems installed.
|
185
166
|
(this will work as soon as I have registered on RubyForge ;)
|
186
167
|
|
187
|
-
* via install.rb
|
188
|
-
|
189
|
-
Ramaze provides a basic install.rb that should take care of the installation
|
190
|
-
you can use it like
|
191
|
-
|
192
|
-
$ ruby install.rb
|
193
|
-
|
194
|
-
you may need root-privileges to do
|
195
|
-
that, depending on what options you provide.
|
196
|
-
(please note that I haven't tested the install.rb extensively yet, so if you
|
197
|
-
find some quirks, please send me patches or a simple note)
|
198
|
-
|
199
168
|
* via darcs
|
200
169
|
|
201
170
|
To get the latest and sweetest, you can just pull from the repository and run
|
202
171
|
Ramaze that way.
|
203
172
|
|
204
|
-
$ darcs get http://manveru.mine.nu/
|
173
|
+
$ darcs get http://manveru.mine.nu/ramaze
|
205
174
|
|
206
175
|
Please read the man page or `darcs help` for more information about updating
|
207
176
|
and creating your own patches.
|
208
177
|
This is at the moment the premier way to use Ramaze, since it is the way I use
|
209
178
|
it.
|
210
179
|
|
180
|
+
Some hints for the usage of Darcs.
|
181
|
+
|
182
|
+
* use require 'ramaze' from everywhere
|
183
|
+
|
184
|
+
add a file to your site_ruby named 'ramaze.rb'
|
185
|
+
the content should be: "require '/path/to/darcs/repo/ramaze/lib/ramaze'"
|
186
|
+
|
187
|
+
* get the latest version (from inside the ramaze-directory)
|
188
|
+
|
189
|
+
$ darcs pull
|
190
|
+
|
191
|
+
* record a patch
|
192
|
+
|
193
|
+
$ darcs record
|
194
|
+
|
195
|
+
* output your patches into a bundle ready to be mailed (compress it before
|
196
|
+
sending to make sure it arrives in the way you sent it)
|
197
|
+
|
198
|
+
$ darcs send -o ramaze_bundle
|
199
|
+
$ gzip -c ramaze_bundle > ramaze_bundle.gz
|
200
|
+
|
201
|
+
|
202
|
+
= Getting Started
|
203
|
+
|
204
|
+
Now that you have a vague idea of what you're about to get into you might just
|
205
|
+
want to get a way to get up and running ASAP.
|
206
|
+
Please read below for more information about installation.
|
207
|
+
|
208
|
+
Depending on what you are planning to do you can either just go and start
|
209
|
+
reading the source or directly get some hands-on experience by trying some of
|
210
|
+
the examples.
|
211
|
+
Most things will require dependencies though. The basic functionality is
|
212
|
+
provided by the WEBrick adapter and the Template::Ramaze, which just run out
|
213
|
+
of the box. For more features you will have to install some templating-engines
|
214
|
+
and mongrel (_very_ recommended). Ramaze will inform you when it needs further
|
215
|
+
dependencies, so just go and try some things.
|
216
|
+
|
217
|
+
Some places to get started are:
|
218
|
+
- Read the documentation.
|
219
|
+
- Run and read the test cases.
|
220
|
+
- Look at the examples and run/modify them.
|
221
|
+
|
222
|
+
|
211
223
|
|
212
|
-
|
224
|
+
= A couple of Examples
|
213
225
|
|
214
226
|
There are some examples for your instant pleasure inside the examples-directory
|
215
227
|
in the Ramaze-distribution.
|
@@ -250,7 +262,17 @@ Examples include:
|
|
250
262
|
functionality in each template_*.rb file using a different engine.
|
251
263
|
|
252
264
|
|
253
|
-
|
265
|
+
|
266
|
+
= How to find Help
|
267
|
+
|
268
|
+
For help you can:
|
269
|
+
|
270
|
+
- Visit us in the channel #ramaze on irc.freenode.net
|
271
|
+
|
272
|
+
- Join the Mailinglist at http://ramaze.rubyforge.org
|
273
|
+
|
274
|
+
|
275
|
+
= Appendix
|
254
276
|
|
255
277
|
* Nicer Error-pages
|
256
278
|
* Install coderay (it's a gem)
|
@@ -267,9 +289,64 @@ Examples include:
|
|
267
289
|
Also, using MemCache gives you high-end performance and security.
|
268
290
|
|
269
291
|
|
270
|
-
|
292
|
+
= And thanks to...
|
293
|
+
|
294
|
+
There is a large number of people who made Ramaze possibe by their ongoing
|
295
|
+
efforts in the world of open source and by encouraging and helping me.
|
296
|
+
|
297
|
+
This list is by no means a full listing of all these people, but I try to
|
298
|
+
get a good coverage despite that.
|
299
|
+
|
300
|
+
I would like to thank:
|
301
|
+
|
302
|
+
* Yukihiro Matsumoto a.k.a matz
|
303
|
+
|
304
|
+
For giving the world Ruby and bringing fun back into programming.
|
305
|
+
|
306
|
+
* Zed Shawn a.k.a. zedas
|
307
|
+
|
308
|
+
For developing Mongrel, Ramaze started out as a simple Hello World based
|
309
|
+
on that awesome server.
|
310
|
+
|
311
|
+
* Christian Neukirchen a.k.a chris2
|
312
|
+
|
313
|
+
For building rack, which is just what the numerous web-developers had
|
314
|
+
anticipated and which will, with no doubt, change the world.
|
315
|
+
|
316
|
+
* Pistos
|
317
|
+
|
318
|
+
For continious encouragment and building the first real webpage on Ramaze.
|
319
|
+
His bugreports were invaluable.
|
320
|
+
|
321
|
+
* Jim Weirich
|
322
|
+
|
323
|
+
For Rake, which lifts off a lot of tasks from the shoulders of every
|
324
|
+
developer who uses it.
|
325
|
+
|
326
|
+
* Thomas Sawyer a.k.a Trans
|
327
|
+
|
328
|
+
Dragging me deep into the rabbit-hole and showing me how awesome Ruby
|
329
|
+
truely is through his work on facets, ratchets and tons of other projects.
|
330
|
+
|
331
|
+
* George Moschovitis a.k.a gmosx
|
332
|
+
|
333
|
+
For his tremendous efforts in the Nitro/Og framework, which is a source of
|
334
|
+
steady inspiration for Ramaze and brought me to Ruby in the first place.
|
335
|
+
|
336
|
+
* Rob Levin a.k.a. lilo
|
337
|
+
|
338
|
+
He founded the most excellent Freenode IRC-network, where the most important
|
339
|
+
channels for rubyists are located (as is #ramaze).
|
340
|
+
May he rest in peace.
|
341
|
+
|
342
|
+
* The guys (and gals) in the various channels on Freenode
|
271
343
|
|
272
|
-
|
344
|
+
As the people are way too many to be listed, here the channels that i call
|
345
|
+
my online home.
|
346
|
+
All the people in there deserve special thanks for getting me hooked to Ruby
|
347
|
+
and providing their help in a friendly and patient manner.
|
273
348
|
|
274
|
-
|
275
|
-
|
349
|
+
* #nitro
|
350
|
+
* #ruby-de
|
351
|
+
* #ruby-lang
|
352
|
+
* #rubyforce
|