nitro 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/CHANGELOG +94 -1
  2. data/INSTALL +3 -0
  3. data/README +9 -1
  4. data/Rakefile +2 -1
  5. data/doc/RELEASES +183 -2
  6. data/examples/blog/run.rb +4 -9
  7. data/examples/blog/src/controller.rb +1 -5
  8. data/examples/blog/src/models/blog.rb +1 -5
  9. data/examples/blog/src/models/content.rb +0 -5
  10. data/examples/blog/src/views/comments.xhtml +6 -11
  11. data/examples/blog/src/views/index.xhtml +2 -3
  12. data/examples/blog/src/views/recent_posts.xhtml +1 -1
  13. data/examples/no_xsl_blog/lib/blog/controller.rb +1 -5
  14. data/examples/no_xsl_blog/lib/blog/model.rb +2 -6
  15. data/examples/no_xsl_blog/lib/blog.rb +0 -4
  16. data/examples/no_xsl_blog/lib/content.rb +7 -11
  17. data/examples/no_xsl_blog/public/comments.xhtml +6 -11
  18. data/examples/no_xsl_blog/public/index.xhtml +2 -2
  19. data/examples/no_xsl_blog/public/recent_posts.xhtml +1 -1
  20. data/examples/no_xsl_blog/run.rb +2 -9
  21. data/lib/nitro/adapters/cgi.rb +7 -8
  22. data/lib/nitro/adapters/fastcgi.rb +17 -19
  23. data/lib/nitro/adapters/webrick.rb +3 -3
  24. data/lib/nitro/buffering.rb +0 -4
  25. data/lib/nitro/builders/form.rb +3 -3
  26. data/lib/nitro/builders/rss.rb +33 -4
  27. data/lib/nitro/builders/xhtml.rb +1 -1
  28. data/lib/nitro/builders/xml.rb +1 -1
  29. data/lib/nitro/context.rb +0 -4
  30. data/lib/nitro/controller.rb +0 -4
  31. data/lib/nitro/dispatcher.rb +5 -5
  32. data/lib/nitro/element.rb +151 -0
  33. data/lib/nitro/part.rb +0 -4
  34. data/lib/nitro/render.rb +79 -40
  35. data/lib/nitro/request.rb +15 -4
  36. data/lib/nitro/scaffold.rb +2 -6
  37. data/lib/nitro/shaders.rb +4 -3
  38. data/lib/nitro/template.rb +3 -1
  39. data/lib/nitro.rb +7 -6
  40. data/proto/public/error.xhtml +1 -1
  41. data/proto/public/js/prototype.js +764 -0
  42. data/test/nitro/adapters/tc_cgi.rb +1 -0
  43. data/test/nitro/tc_element.rb +46 -0
  44. metadata +27 -6
  45. 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
- # * George Moschovitis <gm@navel.gr>
15
- # (c) 2004-2005 Navel, all rights reserved.
16
- # $Id: nitro.rb 20 2005-04-15 15:18:36Z gmosx $
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.16.0'
28
+ Version = '0.17.0'
28
29
 
29
30
  # Library path.
30
31
 
@@ -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> #{N::Markup.expand(error.to_s)}</div>
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>