nitro 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/ChangeLog +4 -2201
  2. data/ChangeLog.1 +2344 -0
  3. data/README +4 -4
  4. data/RELEASES +22 -0
  5. data/bin/new_app.rb +17 -3
  6. data/bin/proto/README +34 -0
  7. data/bin/proto/apache.conf +1 -0
  8. data/bin/proto/app.rb +20 -0
  9. data/bin/proto/config.rb +77 -0
  10. data/bin/proto/root/index.xhtml +43 -0
  11. data/bin/proto/root/style.css +218 -0
  12. data/bin/proto/root/style.xsl +130 -0
  13. data/examples/blog/app.rb +1 -2
  14. data/examples/blog/config.rb +20 -18
  15. data/examples/blog/env.rb +22 -0
  16. data/examples/blog/lib/blog.rb +43 -15
  17. data/examples/blog/root/entry_form.xhtml +1 -1
  18. data/examples/blog/root/index.xhtml +5 -0
  19. data/examples/blog/root/login.xhtml +2 -0
  20. data/examples/blog/root/m/nitro.gif +0 -0
  21. data/examples/blog/root/style.css +83 -0
  22. data/examples/blog/root/style.xsl +7 -3
  23. data/examples/og/run.rb +41 -2
  24. data/examples/tiny/app.rb +1 -2
  25. data/examples/tiny/root/index.xhtml +8 -2
  26. data/examples/tiny/root/nitro-small.png +0 -0
  27. data/lib/glue.rb +1 -1
  28. data/lib/glue/property.rb +9 -3
  29. data/lib/nitro/application.rb +18 -1
  30. data/lib/nitro/builders/form.rb +84 -0
  31. data/lib/nitro/builders/rss.rb +4 -5
  32. data/lib/nitro/builders/table.rb +23 -0
  33. data/lib/nitro/filters.rb +157 -0
  34. data/lib/nitro/l10n.rb +11 -3
  35. data/lib/nitro/scaffold.rb +1 -1
  36. data/lib/nitro/server/render.rb +101 -4
  37. data/lib/nitro/server/shaders.rb +17 -5
  38. data/lib/nitro/service.rb +5 -5
  39. data/lib/nitro/ui/pager.rb +35 -11
  40. data/lib/nitro/version.rb +2 -2
  41. data/lib/og.rb +25 -17
  42. data/lib/og/backend.rb +15 -3
  43. data/lib/og/backends/mysql.rb +30 -3
  44. data/lib/og/backends/psql.rb +44 -3
  45. data/lib/og/meta.rb +117 -10
  46. data/lib/og/version.rb +1 -1
  47. data/lib/xsl/base.xsl +75 -6
  48. data/lib/xsl/ui.xsl +51 -0
  49. data/test/nitro/ui/tc_pager.rb +6 -0
  50. metadata +23 -2
@@ -8,6 +8,12 @@ require "og"
8
8
  require "nitro/ui/pager"
9
9
 
10
10
  class RequestMock < Hash
11
+ attr_accessor :query
12
+
13
+ def initialize
14
+ @query = {}
15
+ end
16
+
11
17
  def get(k, default)
12
18
  return self[k] || default
13
19
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.1
3
3
  specification_version: 1
4
4
  name: nitro
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.0
7
- date: 2004-11-23
6
+ version: 0.6.0
7
+ date: 2004-12-10
8
8
  summary: Web Engine
9
9
  require_paths:
10
10
  - lib
@@ -26,14 +26,27 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
26
26
  version:
27
27
  platform: ruby
28
28
  files:
29
+ - ChangeLog.1
29
30
  - AUTHORS
30
31
  - RELEASES
31
32
  - LICENSE
32
33
  - README
33
34
  - ChangeLog
34
35
  - Rakefile
36
+ - bin/proto
35
37
  - bin/cluster.rb
36
38
  - bin/new_app.rb
39
+ - bin/proto/log
40
+ - bin/proto/app.rb
41
+ - bin/proto/apache.conf
42
+ - bin/proto/root
43
+ - bin/proto/README
44
+ - bin/proto/config.rb
45
+ - bin/proto/lib
46
+ - bin/proto/root/style.xsl
47
+ - bin/proto/root/m
48
+ - bin/proto/root/style.css
49
+ - bin/proto/root/index.xhtml
37
50
  - examples/tiny
38
51
  - examples/blog
39
52
  - examples/og
@@ -42,9 +55,11 @@ files:
42
55
  - examples/tiny/root
43
56
  - examples/tiny/README
44
57
  - examples/tiny/config.rb
58
+ - examples/tiny/root/nitro-small.png
45
59
  - examples/tiny/root/index.xhtml
46
60
  - examples/blog/log
47
61
  - examples/blog/app.rb
62
+ - examples/blog/env.rb
48
63
  - examples/blog/apache.conf
49
64
  - examples/blog/root
50
65
  - examples/blog/README
@@ -67,6 +82,7 @@ files:
67
82
  - examples/blog/root/m/header_bg.gif
68
83
  - examples/blog/root/m/sidebar_bg.gif
69
84
  - examples/blog/root/m/garrow.gif
85
+ - examples/blog/root/m/nitro.gif
70
86
  - examples/blog/root/m/gbull.gif
71
87
  - examples/blog/root/m/rss.gif
72
88
  - examples/blog/root/m/down.gif
@@ -92,6 +108,7 @@ files:
92
108
  - lib/nitro/builders
93
109
  - lib/nitro/scaffold.rb
94
110
  - lib/nitro/uri.rb
111
+ - lib/nitro/filters.rb
95
112
  - lib/nitro/server.rb
96
113
  - lib/nitro/server
97
114
  - lib/nitro/events.rb
@@ -102,7 +119,9 @@ files:
102
119
  - lib/nitro/config.rb
103
120
  - lib/nitro/http.rb
104
121
  - lib/nitro/version.rb
122
+ - lib/nitro/builders/table.rb
105
123
  - lib/nitro/builders/rss.rb
124
+ - lib/nitro/builders/form.rb
106
125
  - lib/nitro/server/filters
107
126
  - lib/nitro/server/session.rb
108
127
  - lib/nitro/server/request.rb
@@ -126,6 +145,7 @@ files:
126
145
  - lib/nitro/ui/date-select.rb
127
146
  - lib/nitro/ui/tabs.rb
128
147
  - lib/nitro/ui/pager.rb
148
+ - lib/xsl/ui.xsl
129
149
  - lib/xsl/xforms.xsl
130
150
  - lib/xsl/base.xsl
131
151
  - lib/og/backends
@@ -175,6 +195,7 @@ rdoc_options:
175
195
  - "--title"
176
196
  - Nitro Documentation
177
197
  extra_rdoc_files:
198
+ - ChangeLog.1
178
199
  - AUTHORS
179
200
  - RELEASES
180
201
  - LICENSE