nitro 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +94 -1
- data/INSTALL +3 -0
- data/README +9 -1
- data/Rakefile +2 -1
- data/doc/RELEASES +183 -2
- data/examples/blog/run.rb +4 -9
- data/examples/blog/src/controller.rb +1 -5
- data/examples/blog/src/models/blog.rb +1 -5
- data/examples/blog/src/models/content.rb +0 -5
- data/examples/blog/src/views/comments.xhtml +6 -11
- data/examples/blog/src/views/index.xhtml +2 -3
- data/examples/blog/src/views/recent_posts.xhtml +1 -1
- data/examples/no_xsl_blog/lib/blog/controller.rb +1 -5
- data/examples/no_xsl_blog/lib/blog/model.rb +2 -6
- data/examples/no_xsl_blog/lib/blog.rb +0 -4
- data/examples/no_xsl_blog/lib/content.rb +7 -11
- data/examples/no_xsl_blog/public/comments.xhtml +6 -11
- data/examples/no_xsl_blog/public/index.xhtml +2 -2
- data/examples/no_xsl_blog/public/recent_posts.xhtml +1 -1
- data/examples/no_xsl_blog/run.rb +2 -9
- data/lib/nitro/adapters/cgi.rb +7 -8
- data/lib/nitro/adapters/fastcgi.rb +17 -19
- data/lib/nitro/adapters/webrick.rb +3 -3
- data/lib/nitro/buffering.rb +0 -4
- data/lib/nitro/builders/form.rb +3 -3
- data/lib/nitro/builders/rss.rb +33 -4
- data/lib/nitro/builders/xhtml.rb +1 -1
- data/lib/nitro/builders/xml.rb +1 -1
- data/lib/nitro/context.rb +0 -4
- data/lib/nitro/controller.rb +0 -4
- data/lib/nitro/dispatcher.rb +5 -5
- data/lib/nitro/element.rb +151 -0
- data/lib/nitro/part.rb +0 -4
- data/lib/nitro/render.rb +79 -40
- data/lib/nitro/request.rb +15 -4
- data/lib/nitro/scaffold.rb +2 -6
- data/lib/nitro/shaders.rb +4 -3
- data/lib/nitro/template.rb +3 -1
- data/lib/nitro.rb +7 -6
- data/proto/public/error.xhtml +1 -1
- data/proto/public/js/prototype.js +764 -0
- data/test/nitro/adapters/tc_cgi.rb +1 -0
- data/test/nitro/tc_element.rb +46 -0
- metadata +27 -6
- data/examples/blog/cache/entriesadmintrue +0 -3
data/lib/nitro.rb
CHANGED
@@ -11,20 +11,21 @@
|
|
11
11
|
# Nitro integrates the powerful Og Object-Relational mapping
|
12
12
|
# library.
|
13
13
|
#
|
14
|
-
#
|
15
|
-
# (c) 2004-2005 Navel
|
16
|
-
#
|
14
|
+
# Copyright (c) 2004-2005, George Moschovitis (http://www.gmosx.com)
|
15
|
+
# Copyright (c) 2004-2005, Navel Ltd (http://www.navel.gr)
|
16
|
+
#
|
17
|
+
# Nitro is copyrighted free software created and maintained by
|
18
|
+
# George Moschovitis (mailto:gm@navel.gr) and released under the
|
19
|
+
# standard BSD Licence. For details consult the file doc/LICENCE.
|
17
20
|
|
18
21
|
require 'glue'
|
19
22
|
require 'glue/logger'
|
20
23
|
|
21
|
-
# Define Nitro namespace.
|
22
|
-
|
23
24
|
module Nitro
|
24
25
|
|
25
26
|
# The version.
|
26
27
|
|
27
|
-
Version = '0.
|
28
|
+
Version = '0.17.0'
|
28
29
|
|
29
30
|
# Library path.
|
30
31
|
|
data/proto/public/error.xhtml
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
<?r for error, path in @context.rendering_errors ?>
|
30
30
|
<div class="path"><strong>Path:</strong> #{path}</div>
|
31
|
-
<div class="error"><strong>#{error.class.name}:</strong> #{
|
31
|
+
<div class="error"><strong>#{error.class.name}:</strong> #{Nitro::Markup.expand(error.to_s)}</div>
|
32
32
|
<div class="load">Click here to <strong><a href="#{request.uri}">reload</a></strong>.</div>
|
33
33
|
<div class="load">Click here to go to the <strong><a href="#{request.referer}">referer</a></strong>.</div>
|
34
34
|
<h2><a href="#" onclick="document.getElementById('trace').style.display = 'block'; return false">Stack Trace</a></h2>
|