nitro 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +284 -0
- data/{LICENCE → LICENSE} +1 -1
- data/README +13 -17
- data/RELEASES +13 -1
- data/Rakefile +1 -9
- data/bin/cluster.rb +5 -5
- data/examples/blog/README +45 -0
- data/examples/blog/apache.conf +0 -0
- data/examples/blog/app.rb +21 -0
- data/examples/blog/config.rb +88 -0
- data/examples/blog/lib/blog.rb +104 -0
- data/examples/blog/log/app.log +117 -0
- data/examples/blog/root/comments.xhtml +38 -0
- data/examples/blog/root/entry_form.xhtml +18 -0
- data/examples/blog/root/index.xhtml +43 -0
- data/examples/blog/root/login.xhtml +24 -0
- data/examples/blog/root/m/bubbles.gif +0 -0
- data/examples/blog/root/m/comments_curve.gif +0 -0
- data/examples/blog/root/m/down.gif +0 -0
- data/examples/blog/root/m/footer_bg.gif +0 -0
- data/examples/blog/root/m/garrow.gif +0 -0
- data/examples/blog/root/m/gbull.gif +0 -0
- data/examples/blog/root/m/grbull.gif +0 -0
- data/examples/blog/root/m/h1_bg.gif +0 -0
- data/examples/blog/root/m/header_bg.gif +0 -0
- data/examples/blog/root/m/obull.gif +0 -0
- data/examples/blog/root/m/page_bg.gif +0 -0
- data/examples/blog/root/m/side_title_bg.gif +0 -0
- data/examples/blog/root/m/sidebar_bg.gif +0 -0
- data/examples/blog/root/recent_posts.xhtml +14 -0
- data/examples/blog/root/style.css +201 -0
- data/examples/blog/root/style.xsl +118 -0
- data/examples/blog/root/view_entry.xhtml +29 -0
- data/examples/og/run.rb +27 -29
- data/examples/tiny/README +3 -4
- data/examples/tiny/app.rb +6 -16
- data/examples/tiny/config.rb +30 -0
- data/examples/tiny/log/app.log +23 -0
- data/examples/tiny/root/{index.sx → index.xhtml} +3 -6
- data/lib/{n/std.rb → nitro.rb} +9 -4
- data/lib/{n → nitro}/application.rb +13 -7
- data/lib/{n → nitro}/config.rb +38 -8
- data/lib/{n → nitro}/events.rb +1 -1
- data/lib/{n → nitro}/l10n.rb +1 -1
- data/lib/{n → nitro}/logger.rb +8 -8
- data/lib/{n → nitro}/macros.rb +3 -3
- data/lib/{n → nitro}/mixins.rb +1 -1
- data/lib/nitro/properties.rb +301 -0
- data/lib/{n → nitro}/server.rb +2 -2
- data/lib/{n → nitro}/server/appserver.rb +14 -5
- data/lib/{n → nitro}/server/cluster.rb +5 -5
- data/lib/{n → nitro}/server/cookie.rb +1 -1
- data/lib/nitro/server/dispatcher.rb +66 -0
- data/lib/{n → nitro}/server/filters.rb +7 -7
- data/lib/{n → nitro}/server/filters/autologin.rb +3 -3
- data/lib/{n → nitro}/server/fragment.rb +3 -3
- data/lib/{n → nitro}/server/handlers.rb +3 -3
- data/lib/nitro/server/render.rb +200 -0
- data/lib/{n → nitro}/server/request.rb +6 -6
- data/lib/{n → nitro}/server/requestpart.rb +5 -5
- data/lib/{n → nitro}/server/script.rb +3 -3
- data/lib/{n → nitro}/server/server.rb +4 -4
- data/lib/{n → nitro}/server/session.rb +3 -3
- data/lib/nitro/server/shaders.rb +165 -0
- data/lib/{n → nitro}/server/user.rb +1 -1
- data/lib/nitro/server/webrick.rb +175 -0
- data/lib/nitro/service.rb +25 -0
- data/lib/{n → nitro}/sitemap.rb +2 -2
- data/lib/{n → nitro}/ui/date-select.rb +0 -0
- data/lib/{n → nitro}/ui/pager.rb +1 -1
- data/lib/{n → nitro}/ui/popup.rb +1 -1
- data/lib/{n → nitro}/ui/select.rb +1 -1
- data/lib/{n → nitro}/ui/tabs.rb +1 -1
- data/lib/{n → nitro}/utils/array.rb +1 -1
- data/lib/{n → nitro}/utils/cache.rb +1 -1
- data/lib/{n → nitro}/utils/gfx.rb +1 -1
- data/lib/{n → nitro}/utils/hash.rb +1 -1
- data/lib/{n → nitro}/utils/html.rb +1 -1
- data/lib/{n → nitro}/utils/http.rb +1 -1
- data/lib/{n → nitro}/utils/mail.rb +1 -1
- data/lib/{n → nitro}/utils/number.rb +1 -1
- data/lib/{n → nitro}/utils/pool.rb +1 -1
- data/lib/{n → nitro}/utils/string.rb +19 -95
- data/lib/{n → nitro}/utils/template.rb +0 -0
- data/lib/{n → nitro}/utils/time.rb +1 -1
- data/lib/{n → nitro}/utils/uri.rb +3 -3
- data/lib/nitro/version.rb +11 -0
- data/lib/{n/og.rb → og.rb} +61 -31
- data/lib/{n/og → og}/backend.rb +13 -7
- data/lib/{n/og → og}/backends/mysql.rb +43 -39
- data/lib/{n/og → og}/backends/psql.rb +42 -38
- data/lib/{n/og → og}/connection.rb +21 -9
- data/lib/{n/og → og}/meta.rb +18 -12
- data/lib/xsl/base.xsl +11 -88
- data/test/n/server/tc_cookie.rb +1 -1
- data/test/n/server/tc_filters.rb +1 -1
- data/test/n/server/tc_request.rb +3 -3
- data/test/n/server/tc_requestpart.rb +2 -2
- data/test/n/server/tc_session.rb +1 -1
- data/test/n/tc_events.rb +1 -1
- data/test/n/tc_og.rb +16 -18
- data/test/n/tc_properties.rb +22 -18
- data/test/n/tc_sitemap.rb +2 -2
- data/test/n/ui/tc_pager.rb +4 -4
- data/test/n/utils/tc_cache.rb +1 -1
- data/test/n/utils/tc_hash.rb +1 -1
- data/test/n/utils/tc_html.rb +1 -1
- data/test/n/utils/tc_http.rb +1 -1
- data/test/n/utils/tc_number.rb +1 -1
- data/test/n/utils/tc_strings.rb +1 -46
- data/test/n/utils/tc_uri.rb +1 -1
- metadata +101 -108
- data/examples/simple/README +0 -42
- data/examples/simple/app.rb +0 -31
- data/examples/simple/conf/apache.conf +0 -100
- data/examples/simple/conf/config.rb +0 -72
- data/examples/simple/conf/debug-config.rb +0 -26
- data/examples/simple/conf/live-config.rb +0 -26
- data/examples/simple/conf/requires.rb +0 -43
- data/examples/simple/ctl +0 -32
- data/examples/simple/env.rb +0 -32
- data/examples/simple/install.rb +0 -12
- data/examples/simple/lib/articles/entities.rb +0 -37
- data/examples/simple/lib/articles/lc-en.rb +0 -36
- data/examples/simple/lib/articles/methods.rb +0 -55
- data/examples/simple/lib/articles/part.rb +0 -57
- data/examples/simple/root/add-article.sx +0 -15
- data/examples/simple/root/article-form.ss +0 -20
- data/examples/simple/root/comments-form.ss +0 -16
- data/examples/simple/root/comments.si +0 -30
- data/examples/simple/root/index.sx +0 -44
- data/examples/simple/root/shader/shader.xsl +0 -100
- data/examples/simple/root/shader/style.css +0 -9
- data/examples/simple/root/view-article.sx +0 -29
- data/examples/tiny/conf/config.rb +0 -62
- data/examples/tiny/conf/requires.rb +0 -33
- data/examples/tiny/ctl +0 -16
- data/lib/n/parts.rb +0 -157
- data/lib/n/properties.rb +0 -199
- data/lib/n/server/dispatcher.rb +0 -55
- data/lib/n/server/handlers/code-handler.rb +0 -182
- data/lib/n/server/handlers/page-handler.rb +0 -612
- data/lib/n/server/webrick.rb +0 -283
- data/lib/n/shaders.rb +0 -166
- data/lib/n/sync/clc.rb +0 -110
- data/lib/n/sync/handler.rb +0 -229
- data/lib/n/sync/server.rb +0 -176
- data/lib/p/README +0 -1
data/ChangeLog
CHANGED
@@ -1,3 +1,287 @@
|
|
1
|
+
15-10-2004 George Moschovitis <gm@navel.gr>
|
2
|
+
|
3
|
+
* README: updated.
|
4
|
+
|
5
|
+
* examples/blog: better documentation.
|
6
|
+
|
7
|
+
14-10-2004 George Moschovitis <gm@navel.gr>
|
8
|
+
|
9
|
+
* improved RDoc in many files.
|
10
|
+
|
11
|
+
* lib/nitro/logger.rb: show full severity string.
|
12
|
+
|
13
|
+
13-10-2004 George Moschovitis <gm@navel.gr>
|
14
|
+
|
15
|
+
* lib/nitro/parts.rb: deprecated.
|
16
|
+
|
17
|
+
* lib/og.rb: Og renamed to Database.
|
18
|
+
|
19
|
+
* MAJOR: moved n dir to nitro dir.
|
20
|
+
|
21
|
+
* MAJOR: moved og to a separate dir.
|
22
|
+
|
23
|
+
* lib/p: removed.
|
24
|
+
|
25
|
+
* lib/n/server/webrick.rb: moved from w, moved alod version
|
26
|
+
to .scrap.
|
27
|
+
|
28
|
+
* lib/n/application.rb (#parse_arguments): improved help text.
|
29
|
+
|
30
|
+
* lib/n/config.rb: :index by default mounts N:Service.
|
31
|
+
|
32
|
+
* examples/tiny/*: recoded from scratch to work with the latest
|
33
|
+
code.
|
34
|
+
|
35
|
+
* fixed problematic code from tc_properties.
|
36
|
+
|
37
|
+
* lib/n/og.rb: introduced N::Unmanageable marker module.
|
38
|
+
|
39
|
+
* examples/blog/config.rb: more comments,
|
40
|
+
$srv_address to make more visible.
|
41
|
+
|
42
|
+
12-10-2004 George Moschovitis <gm@navel.gr>
|
43
|
+
|
44
|
+
* examples/blog/config.rb: moved from webapp.rb.
|
45
|
+
|
46
|
+
* examples/blog/conf/*: removed.
|
47
|
+
|
48
|
+
11-10-2004 George Moschovitis <gm@navel.gr>
|
49
|
+
|
50
|
+
* Rakefile: use version.
|
51
|
+
|
52
|
+
* lib/n/version.rb: introduced.
|
53
|
+
|
54
|
+
* examples/blog/README: introduced.
|
55
|
+
|
56
|
+
* examples/simple/*: removed.
|
57
|
+
|
58
|
+
* lib/n/sync/*: moved to gen.
|
59
|
+
|
60
|
+
* examples/blog/*: implemented many little things.
|
61
|
+
|
62
|
+
* lib/n/server/shaders.rb (RubyShader#process): MEGA xform <ruby> as
|
63
|
+
ruby code marker, usefull in xslts :)
|
64
|
+
|
65
|
+
* examples/blog/root/style.xsl: improved.
|
66
|
+
|
67
|
+
* lib/n/server/handlers/*: removed.
|
68
|
+
|
69
|
+
* session works.
|
70
|
+
|
71
|
+
* lib/n/server/dispatcher.rb (#process): create session,
|
72
|
+
only set content type if not exist,
|
73
|
+
(#process): added error reporting code.
|
74
|
+
|
75
|
+
* lib/n/server/render.rb (#render_referer): implemented,
|
76
|
+
(#render): splits the query string,
|
77
|
+
(#render): handle the query.
|
78
|
+
(#compile_method): by default redirect_referer.
|
79
|
+
(#populate): implemented.
|
80
|
+
(RenderUtils#create_session): introduced,
|
81
|
+
(#redirect): prepend $srv_url if needed.
|
82
|
+
|
83
|
+
* lib/n/server/w.rb (HTTPRequest#set_query): introduced,
|
84
|
+
(HTTPRequest#fill): moved populate here,
|
85
|
+
(#do_GET): rationalize cookies,
|
86
|
+
(#create_cookie): moved here, optimized and fixed!
|
87
|
+
|
88
|
+
* examples/blog/lib/blog.rb (#del_comment): implemented,
|
89
|
+
(#login): implemented,
|
90
|
+
removed Blog,
|
91
|
+
(Common): added author.
|
92
|
+
|
93
|
+
* lib/n/shaders.rb: (RubyShader#process): transform include commands,
|
94
|
+
(RubyShader#process): remove <root> elements.
|
95
|
+
|
96
|
+
* lib/xsl/base.xsl: removed x:vblank, x:hblank, use xsl.
|
97
|
+
|
98
|
+
* fuckin mega, i can include from xsl.
|
99
|
+
|
100
|
+
* examples/blog/root/*: created sub pages.
|
101
|
+
|
102
|
+
* examples/blog/root/index.xhtml: yeah i got an included fragment.
|
103
|
+
|
104
|
+
* examples/blog/root/entry-form.xhtml: yeah i got an included fragment.
|
105
|
+
|
106
|
+
10-10-2004 George Moschovitis <gm@navel.gr>
|
107
|
+
|
108
|
+
* examples/blog/root/view_entry.xhtml: introduced,
|
109
|
+
comments.
|
110
|
+
|
111
|
+
* n/lib/og/meta.rb (#has_many): generate xxx_count method.
|
112
|
+
|
113
|
+
* lib/n/og/backends/mysql.rb (#get_int): introduced.
|
114
|
+
|
115
|
+
* lib/n/og/backends/psql.rb (#get_int): introduced.
|
116
|
+
|
117
|
+
* lib/n/og/connection.rb (#count): introduced,
|
118
|
+
optimized some methods by using directly the backend.
|
119
|
+
|
120
|
+
* lib/n/server/w.rb (WEBrick::HTTPRequest#referer): added,
|
121
|
+
after some fixes, redirect works.
|
122
|
+
|
123
|
+
* lib/n/server/dispatcher.rb (#process): use begin-ensure.
|
124
|
+
|
125
|
+
* examples/blog/lib/blog.rb (#del_entry): implemented,
|
126
|
+
added relations to the classes,
|
127
|
+
(#view_entry): introduced.
|
128
|
+
|
129
|
+
* lib/n/server/render.rb (#compile_method): dont check if method
|
130
|
+
exists, there are other caching tests.
|
131
|
+
(#render): honour $reload_scripts,
|
132
|
+
(#initialize): @params helper,
|
133
|
+
(#redirect): implemented,
|
134
|
+
(#redirect_referer): implemented
|
135
|
+
|
136
|
+
* examples/blog/root/index.xhtml: kinda working :)
|
137
|
+
|
138
|
+
* examples/blog/root/style.xsl: implemented the xsl,
|
139
|
+
css float layout,
|
140
|
+
sidebar.
|
141
|
+
|
142
|
+
* examples/blog/root/style.css: implemented the css.
|
143
|
+
|
144
|
+
09-10-2004 George Moschovitis <gm@navel.gr>
|
145
|
+
|
146
|
+
* examples/blog/root/index.xhtml: introduced.
|
147
|
+
|
148
|
+
* lib/n/config.rb: 8080 for appserver in debug mode.
|
149
|
+
|
150
|
+
* yeah, the dispatch system works.
|
151
|
+
|
152
|
+
* lib/n/server/render.rb (#render): introduced,
|
153
|
+
(#split_path): introduced,
|
154
|
+
(#render_file): dont recompile,
|
155
|
+
(RenderUtils#compile_method): implemented.
|
156
|
+
(#render): can be used in method!
|
157
|
+
|
158
|
+
* lib/n/server/dispatcher.rb (#process): use $services,
|
159
|
+
include Render,
|
160
|
+
(#process): just delegate to render.
|
161
|
+
|
162
|
+
* examples/blog/lib/blog.rb: improved service,
|
163
|
+
(BlogMethods#new_entry): works.
|
164
|
+
|
165
|
+
* lib/n/service.rb: introduced.
|
166
|
+
|
167
|
+
* lib/n/og/backends/psql.rb (#read_prop/#write_prop): rewritten to make
|
168
|
+
more general [b.candler]
|
169
|
+
|
170
|
+
* lib/n/og/backends/mysql.rb (#read_prop/#write_prop): rewritten to make
|
171
|
+
more general [b.candler]
|
172
|
+
|
173
|
+
08-10-2004 George Moschovitis <gm@navel.gr>
|
174
|
+
|
175
|
+
* lib/n/server/dispatcher.rb (#process): store request, response,
|
176
|
+
(#process): more intelligent control/method decomposition.
|
177
|
+
|
178
|
+
* lib/n/server/render.rb (#transform): use the shader pipeline,
|
179
|
+
yeah xslt is working again.
|
180
|
+
|
181
|
+
* lib/n/server/filters.rb: cleaned up.
|
182
|
+
|
183
|
+
* lib/n/server/shaders.rb: moved here,
|
184
|
+
(RubyShader): introduced,
|
185
|
+
(CompressShader): introduced,
|
186
|
+
(#<<): fixed,
|
187
|
+
(CompressShader#process): improved compression.
|
188
|
+
|
189
|
+
* lib/n/shaders.rb: brand new shader system,
|
190
|
+
(XSLTShader): introduced.
|
191
|
+
|
192
|
+
* examples/blog/root/style.xsl: introduced.
|
193
|
+
|
194
|
+
* examples/blog/root/style.css: introduced.
|
195
|
+
|
196
|
+
07-10-2004 George Moschovitis <gm@navel.gr>
|
197
|
+
|
198
|
+
* lib/n/server/render.rb (#transform): first version,
|
199
|
+
yeah, i got an xhtml with multiple code segments rendered,
|
200
|
+
(#transform): intelligent compression/obfuscation of inline
|
201
|
+
xhtml.
|
202
|
+
|
203
|
+
* changed many files to use File.xxx methods instead of the
|
204
|
+
removed StringUtils methods.
|
205
|
+
|
206
|
+
* lib/n/utils/string.rb (#filename_from_path): removed,
|
207
|
+
(#directory_from_path): removed,
|
208
|
+
(#extension_from_path): removed,
|
209
|
+
(#unicode_to_iso88597): removed.
|
210
|
+
|
211
|
+
* test/n/utils/tc_string.rb: removed tests from obsolete methods.
|
212
|
+
|
213
|
+
06-10-2004 George Moschovitis <gm@navel.gr>
|
214
|
+
|
215
|
+
* examples/blog/lib/blog.rb: introduced.
|
216
|
+
|
217
|
+
* lib/n/server/render.rb: introduced,
|
218
|
+
(#render_file): kinda works.
|
219
|
+
|
220
|
+
* lib/n/server/dispatcher.rb (#process): moved code from w.
|
221
|
+
|
222
|
+
05-10-2004 George Moschovitis <gm@navel.gr>
|
223
|
+
|
224
|
+
* lib/n/server/w.rb (do_GET): simple action synthesizer,
|
225
|
+
yeah parameter passing works,
|
226
|
+
action synthesis gets cached,
|
227
|
+
action with template only works.
|
228
|
+
|
229
|
+
* use .xhtml as an extension.
|
230
|
+
|
231
|
+
04-10-2004 George Moschovitis <gm@navel.gr>
|
232
|
+
|
233
|
+
* lib/n/server/w.rb (do_GET): implemented.
|
234
|
+
|
235
|
+
* lib/n/og.rb: check respond_to?(:__props) more fault tolerant.
|
236
|
+
|
237
|
+
* lib/n/parts.rb: no prop_accessor.
|
238
|
+
|
239
|
+
* lib/n/server/appserver.rb (AppServerMixin): add default methods
|
240
|
+
for initialize.
|
241
|
+
|
242
|
+
* examples/blog: experiments with layout.
|
243
|
+
|
244
|
+
03-10-2004 George Moschovitis <gm@navel.gr>
|
245
|
+
|
246
|
+
* lib/n/server/w.rb: introduced experimental webrick server.
|
247
|
+
(WebrickDispatcher): introduced.
|
248
|
+
|
249
|
+
* examples/blog: introduced, will rethink layout.
|
250
|
+
|
251
|
+
* benchmark: introduced.
|
252
|
+
|
253
|
+
* lib/n/og.rb: MEGA, auto class manager works.
|
254
|
+
|
255
|
+
* lib/n/og/backends/psql.rb (#write_prop): fixed YAML write when nil.
|
256
|
+
|
257
|
+
* lib/n/og/backends/mysql.rb (#write_prop): fixed YAML write when nil.
|
258
|
+
|
259
|
+
* all examples run again.
|
260
|
+
|
261
|
+
* lib/n/og/meta.rb: changed order of params.
|
262
|
+
|
263
|
+
* lib/n/properties.rb: changed order of params,
|
264
|
+
(#prop): works EXACTLY like attr now.
|
265
|
+
(#prop): class == object by default.
|
266
|
+
|
267
|
+
02-10-2004 George Moschovitis <gm@navel.gr>
|
268
|
+
|
269
|
+
* yeah tests pass again.
|
270
|
+
|
271
|
+
* lib/n/og/backends/psql.rb: updated to use new properties.
|
272
|
+
|
273
|
+
* lib/n/og/backends/mysql.rb: updated to use new properties.
|
274
|
+
|
275
|
+
* lib/n/properties.rb (Module): dont include __props by default,
|
276
|
+
(Module#prop): implemented new version,
|
277
|
+
(Module#__add_prop): renamed, gets reader/writer options.
|
278
|
+
(Module#add_meta): removed.
|
279
|
+
introduced prop_reader, prop_writer, prop_accessor,
|
280
|
+
more strict tests when defining property,
|
281
|
+
(Module): excellent, DONT override the standard include.
|
282
|
+
|
283
|
+
* lib/n/og.rb: $og_auto_manage_classes introduced.
|
284
|
+
|
1
285
|
01-10-2004 George Moschovitis <gm@navel.gr>
|
2
286
|
|
3
287
|
* --- VERSION 0.3.0 ---
|
data/{LICENCE → LICENSE}
RENAMED
data/README
CHANGED
@@ -1,33 +1,32 @@
|
|
1
|
-
= Nitro 0.
|
1
|
+
= Nitro 0.4.1
|
2
2
|
|
3
3
|
Nitro is an efficient, yet simple engine for developing professional Web
|
4
4
|
Applications using the Ruby language. Nitro aims to provide a robust
|
5
5
|
infrastructure for scalable web applications that can be distributed
|
6
6
|
over a server cluster. However, Nitro can also power simple web
|
7
7
|
applications for deployment on intranets or even personal computers.
|
8
|
-
|
9
|
-
Nitro integrated the powerful Og Object-Relational mapping library.
|
8
|
+
Nitro integrates the powerful Og Object-Relational mapping library.
|
10
9
|
|
11
10
|
|
12
11
|
== Features
|
13
12
|
|
14
13
|
A short summary of the major features:
|
15
14
|
|
16
|
-
* XML server pages (.
|
15
|
+
* XML server pages (.xhtml)
|
17
16
|
|
18
|
-
Nitro
|
19
|
-
power of embededed Ruby (like erb, eruby)
|
20
|
-
of Amrita. Even though it is a 'Callback'
|
21
|
-
it is flexible enough to run as 'Pipeline'
|
22
|
-
developer prefers this mode of operation.
|
17
|
+
Nitro uses standard, dully xml compliant xhtml pages with logic
|
18
|
+
code, thus combining the power of embededed Ruby (like erb, eruby)
|
19
|
+
with the xml compliance of Amrita. Even though it is a 'Callback'
|
20
|
+
style templating system it is flexible enough to run as 'Pipeline'
|
21
|
+
style system if the developer prefers this mode of operation.
|
23
22
|
|
24
23
|
<?xml version="1.0"?>
|
25
24
|
|
26
25
|
<!-- example page -->
|
27
26
|
<html>
|
28
27
|
<?r
|
29
|
-
title =
|
30
|
-
version =
|
28
|
+
title = 'Example'
|
29
|
+
version = params['version']
|
31
30
|
?>
|
32
31
|
|
33
32
|
<h1>#{title}</h1>
|
@@ -48,6 +47,8 @@ A short summary of the major features:
|
|
48
47
|
|
49
48
|
A shader integrates many XSLT templates and or CSS stylesheets
|
50
49
|
to encapsulate all styling/skinning requirements of a Web Application.
|
50
|
+
|
51
|
+
Nitro features a fully programmable shader pipeline.
|
51
52
|
|
52
53
|
* Multi phase evaluation
|
53
54
|
|
@@ -62,7 +63,7 @@ A short summary of the major features:
|
|
62
63
|
<?include xl:href="myfile.si" />
|
63
64
|
|
64
65
|
<!-- run time include (dynamic include) -->
|
65
|
-
<
|
66
|
+
<include href="myfile.si" />
|
66
67
|
|
67
68
|
* Minimum configuration
|
68
69
|
|
@@ -93,11 +94,6 @@ A short summary of the major features:
|
|
93
94
|
distributed sessions when running your application over a server
|
94
95
|
cluster. Distributed sessions are fully transparent to the developer.
|
95
96
|
|
96
|
-
* Synchronous Server
|
97
|
-
|
98
|
-
An experimental synchronous server for implementing services like
|
99
|
-
Chat Rooms, Multiplayer Games, etc. Compatible with Macromedia Flash.
|
100
|
-
|
101
97
|
* Request Filters
|
102
98
|
|
103
99
|
The develpoper has full access to the request handling pipeline.
|
data/RELEASES
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
== Version 0.4.1 was released on 15/11/2004.
|
2
|
+
|
3
|
+
A MAJOR revision! The rendering engine was recoded from
|
4
|
+
scratch and now features Rails-style actions. Some older features
|
5
|
+
are not yet converted to the new engine though. Other new stuff
|
6
|
+
includes a fully working / cool looking Blog example, a programmable
|
7
|
+
shader pipeline, automatic object manager in Og, improved directory
|
8
|
+
structure, bug fixes, many changes to make it easier to switch from
|
9
|
+
Rails, and many many more cool improvements for you to find out in
|
10
|
+
the detailed ChangeLog.
|
11
|
+
|
12
|
+
|
1
13
|
== Version 0.3.0 was released on 01/11/2004.
|
2
14
|
|
3
15
|
An important revision! Nitro now includes the first version
|
@@ -20,6 +32,6 @@ of the box.
|
|
20
32
|
== Version 0.1.2 was released on 21/10/2004.
|
21
33
|
|
22
34
|
The first public version. Features 2 examples and limited
|
23
|
-
documentation. The aim of this release is to make the
|
35
|
+
documentation. The aim of this release is to make the project known
|
24
36
|
to the Ruby Community. We hope that the Ruby hackers will respond
|
25
37
|
with valueable suggestions and ideas.
|
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ require "rake/gempackagetask"
|
|
12
12
|
require "rake/testtask"
|
13
13
|
require "rubygems"
|
14
14
|
|
15
|
-
require "lib/
|
15
|
+
require "lib/nitro/version"
|
16
16
|
|
17
17
|
# ----------------------------------------------------------------------
|
18
18
|
|
@@ -37,14 +37,6 @@ Rake::TestTask.new(:test_all) do |t|
|
|
37
37
|
t.verbose = true
|
38
38
|
end
|
39
39
|
|
40
|
-
# Run experimental tests
|
41
|
-
|
42
|
-
Rake::TestTask.new(:test_exp) do |t|
|
43
|
-
t.libs << "test"
|
44
|
-
t.test_files = FileList["test/**/tc*.rb"]
|
45
|
-
t.verbose = true
|
46
|
-
end
|
47
|
-
|
48
40
|
# ----------------------------------------------------------------------
|
49
41
|
|
50
42
|
Rake::RDocTask.new do |rd|
|
data/bin/cluster.rb
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
# * George Moschovitis <gm@navel.gr>
|
3
3
|
#
|
4
4
|
# (c) 2004 Navel, all rights reserved.
|
5
|
-
# $Id: cluster.rb
|
5
|
+
# $Id: cluster.rb 155 2004-11-13 20:32:12Z gmosx $
|
6
6
|
|
7
7
|
$:.unshift "lib"
|
8
8
|
|
9
9
|
require "drb"
|
10
10
|
require "monitor"
|
11
11
|
|
12
|
-
require "
|
13
|
-
require "
|
14
|
-
require "
|
15
|
-
require "
|
12
|
+
require "nitro/application"
|
13
|
+
require "nitro/server"
|
14
|
+
require "nitro/utils/cache"
|
15
|
+
require "nitro/server/session"
|
16
16
|
|
17
17
|
module N
|
18
18
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
= Blog
|
2
|
+
|
3
|
+
A simple blog.
|
4
|
+
|
5
|
+
== Configuration
|
6
|
+
|
7
|
+
Edit the file conf/webapp.rb as needed. Dont forget to set your name
|
8
|
+
and the password:
|
9
|
+
|
10
|
+
$blog_username = 'your name'
|
11
|
+
$blog_password = 'your password'
|
12
|
+
|
13
|
+
By default this example uses the MySQL backend. If you want to
|
14
|
+
use a different backend dont forget to change it for the DEBUG
|
15
|
+
and LIVE configurations.
|
16
|
+
|
17
|
+
== Run
|
18
|
+
|
19
|
+
Exec the following command:
|
20
|
+
|
21
|
+
ruby app.rb --start
|
22
|
+
|
23
|
+
then point your browser to:
|
24
|
+
|
25
|
+
http://127.0.0.1:8080
|
26
|
+
|
27
|
+
(if you want to change the server address/port, edit the config.rb
|
28
|
+
file)
|
29
|
+
|
30
|
+
Click at 'Login as owner'
|
31
|
+
|
32
|
+
enter the password.
|
33
|
+
|
34
|
+
And start adding blog entries :)
|
35
|
+
|
36
|
+
== Discussion
|
37
|
+
|
38
|
+
The bulk of the code is in the file lib/blog.rb.
|
39
|
+
If you want to modify the example it is a nice idea to switch
|
40
|
+
to debug mode. Edit the following line in the file app.rb:
|
41
|
+
|
42
|
+
$DBG = true
|
43
|
+
|
44
|
+
In debug mode the view files (xhtml/xsl/etc) are automatically
|
45
|
+
reloaded.
|