nitro 0.24.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. data/CHANGELOG +279 -0
  2. data/ProjectInfo +7 -7
  3. data/doc/AUTHORS +4 -2
  4. data/doc/RELEASES +96 -1
  5. data/lib/nitro.rb +5 -2
  6. data/lib/nitro/adapter/cgi.rb +1 -1
  7. data/lib/nitro/adapter/webrick.rb +7 -5
  8. data/lib/nitro/caching/output.rb +3 -2
  9. data/lib/nitro/cgi/utils.rb +8 -4
  10. data/lib/nitro/compiler.rb +9 -5
  11. data/lib/nitro/compiler/include.rb +42 -0
  12. data/lib/nitro/compiler/markup.rb +1 -1
  13. data/lib/nitro/compiler/morphing.rb +120 -50
  14. data/lib/nitro/compiler/squeeze.rb +2 -2
  15. data/lib/nitro/context.rb +9 -0
  16. data/lib/nitro/controller.rb +8 -4
  17. data/lib/nitro/dispatcher.rb +5 -5
  18. data/lib/nitro/dispatcher/nice.rb +16 -5
  19. data/lib/nitro/element.rb +30 -8
  20. data/lib/nitro/helper.rb +56 -0
  21. data/lib/nitro/{mixin → helper}/benchmark.rb +1 -1
  22. data/lib/nitro/{mixin → helper}/buffer.rb +1 -2
  23. data/lib/nitro/{mixin → helper}/debug.rb +1 -1
  24. data/lib/nitro/{mixin/helper.rb → helper/default.rb} +4 -4
  25. data/lib/nitro/{mixin → helper}/form.rb +3 -3
  26. data/lib/nitro/{mixin → helper}/javascript.rb +17 -1
  27. data/lib/nitro/{mixin → helper}/pager.rb +1 -1
  28. data/lib/nitro/{mixin → helper}/rss.rb +3 -3
  29. data/lib/nitro/{mixin → helper}/table.rb +1 -1
  30. data/lib/nitro/{mixin → helper}/xhtml.rb +2 -2
  31. data/lib/nitro/{mixin → helper}/xml.rb +1 -1
  32. data/lib/nitro/render.rb +16 -8
  33. data/lib/nitro/scaffold.rb +6 -6
  34. data/lib/nitro/server/runner.rb +12 -0
  35. data/lib/nitro/session/drbserver.rb +16 -1
  36. data/proto/public/js/builder.js +97 -0
  37. data/proto/public/js/controls.js +18 -5
  38. data/proto/public/js/dragdrop.js +8 -5
  39. data/proto/public/js/effects.js +185 -4
  40. data/proto/public/js/prototype.js +432 -178
  41. data/proto/public/js/scriptaculous.js +6 -2
  42. data/proto/public/js/slider.js +226 -0
  43. data/proto/public/js/unittest.js +363 -0
  44. data/proto/public/media/nitro.png +0 -0
  45. data/{script → proto/script}/scgi_ctl +0 -0
  46. data/{script → proto/script}/scgi_service +16 -8
  47. data/proto/src/skin.rb +24 -0
  48. data/{lib → src}/part/admin.rb +0 -0
  49. data/src/part/admin/controller.rb +47 -0
  50. data/{lib → src}/part/admin/skin.rb +0 -0
  51. data/src/part/admin/template/denied.xhtml +1 -0
  52. data/{lib → src}/part/admin/template/index.xhtml +0 -0
  53. data/test/nitro/{mixin → helper}/tc_pager.rb +2 -2
  54. data/test/nitro/{mixin → helper}/tc_rss.rb +3 -3
  55. data/test/nitro/{mixin → helper}/tc_table.rb +3 -3
  56. data/test/nitro/{mixin → helper}/tc_xhtml.rb +3 -3
  57. data/test/nitro/tc_caching.rb +4 -1
  58. data/test/nitro/tc_controller.rb +2 -2
  59. data/test/nitro/tc_element.rb +30 -0
  60. data/test/nitro/tc_helper.rb +36 -0
  61. data/test/nitro/tc_render.rb +1 -1
  62. metadata +70 -38
  63. data/lib/nitro/mixin/markup.rb +0 -122
  64. data/lib/part/admin/controller.rb +0 -28
  65. data/proto/README +0 -11
  66. data/proto/doc/README +0 -1
  67. data/proto/scgi.rb +0 -333
data/CHANGELOG CHANGED
@@ -1,3 +1,282 @@
1
+ Wed Nov 16 18:15:00 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
2
+ * Small changes
3
+
4
+ Wed Nov 16 11:57:49 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
5
+ * Fixes and small improvements in output caching.
6
+
7
+ Wed Nov 16 10:09:15 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
8
+ * Added redirect_home helper.
9
+
10
+ Wed Nov 16 09:59:35 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
11
+ * Added --daemon option in drbserver, autostart drb session server from runner when using distributed sessions.
12
+
13
+ Wed Nov 16 09:59:19 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
14
+ * Added daemons dependency.
15
+
16
+ Tue Nov 15 18:27:26 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
17
+ * Taggable delete hook to cleanup relations.
18
+
19
+ Tue Nov 15 18:27:05 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
20
+ * Minor stuff...
21
+
22
+ Mon Nov 14 16:57:50 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
23
+ * Don't override to_href if exists when scaffolding.
24
+
25
+ Mon Nov 14 16:37:44 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
26
+ * Integrated latest version of kirbybase.
27
+
28
+ Mon Nov 14 15:27:07 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
29
+ * Added ultra-useful StaticInclude compiler module.
30
+
31
+ Mon Nov 14 13:44:02 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
32
+ * Add new scriptaculous files.
33
+
34
+ Mon Nov 14 13:43:11 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
35
+ * Added toggleable javascript helper.
36
+
37
+ Mon Nov 14 13:42:18 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
38
+ * Flare: better login system, fixes in javascript, post comments.
39
+
40
+ Mon Nov 14 13:29:03 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
41
+ * Updated to latest versions of prototype/scriptaculous.
42
+
43
+ Mon Nov 14 09:59:01 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
44
+ * Small fix in flare.
45
+
46
+ Sun Nov 13 13:02:57 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
47
+ * Little things.
48
+
49
+ Sun Nov 13 13:01:52 GTB Standard Time 2005 Bryan Soto <bryan.a.soto@gmail.com>
50
+ * Fixed webrick rewrite problem. [tlarson]
51
+
52
+ Sun Nov 13 11:17:47 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
53
+ * Fixed static inclusion, <?include ..?>.
54
+
55
+ Sun Nov 13 10:14:01 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
56
+ * Fixed set_order.
57
+
58
+ Sun Nov 13 09:44:06 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
59
+ * Updated ProjectInfo's, added missing dependencies.
60
+
61
+ Fri Nov 11 17:56:37 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
62
+ * Page titles in spark.
63
+
64
+ Fri Nov 11 17:31:38 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
65
+ * Updated spark to use the new tag system.
66
+
67
+ Fri Nov 11 16:55:35 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
68
+ * Multiple small fixes to make the tests run again, helper tests.
69
+
70
+ Fri Nov 11 15:02:39 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
71
+ * Added TimestampedOnCreate.
72
+
73
+ Fri Nov 11 12:45:10 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
74
+ * Fix in helper system, removed duplicate file.
75
+
76
+ Thu Nov 10 17:45:19 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
77
+ * Improved taggable (keep count/freq).
78
+
79
+ Wed Nov 9 16:51:33 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
80
+ * Cleanup of taggable.
81
+
82
+ Wed Nov 9 16:47:11 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
83
+ * Brand new taggable mixin, supports polymophism, eval-free implementation.
84
+
85
+ Wed Nov 9 14:54:20 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
86
+ * Sqlite as default store, start alias for Og.setup.
87
+
88
+ Wed Nov 9 14:51:48 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
89
+ * Added support for Og scoped queries and collection subqueries (ex: user.articles.find :condition => 'hits > 1000')
90
+
91
+ Wed Nov 9 10:54:11 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
92
+ * Minor typo fix.
93
+
94
+ Tue Nov 8 17:38:43 GTB Standard Time 2005 chrisfarms@gmail.com
95
+ * Better matching of "for" attribute in Morphing code to allow real html for attributes too
96
+
97
+ Tue Nov 8 13:36:14 GTB Standard Time 2005 chrisfarms@gmail.com
98
+ * FIX user_agent issues in cgi/utils
99
+
100
+ Fri Nov 4 13:15:38 GTB Standard Time 2005 chrisfarms@gmail.com
101
+ * fixed scaffold not saving relations on new records
102
+
103
+ Tue Nov 8 17:49:47 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
104
+ * Ehm, to fix the wrong credit for the previous commit I added a new feature: find_or_create_by_xxx. (there is a saying about fame, the feature rocks though).
105
+
106
+ Tue Nov 8 17:40:15 GTB Standard Time 2005 Bryan Soto <bryan.a.soto@gmail.com>
107
+ * Added support for dynamically generated finders (ex: find_by_name_and_age).
108
+
109
+ Mon Nov 7 18:42:51 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
110
+ * Readded gen.rb
111
+
112
+ Mon Nov 7 18:38:14 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
113
+ * Removed app gen.
114
+
115
+ Mon Nov 7 15:27:06 GTB Standard Time 2005 Bryan Soto <bryan.a.soto@gmail.com>
116
+ * Small fix in the form generator.
117
+
118
+ Mon Nov 7 15:25:42 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
119
+ * Added skin template in proto.
120
+
121
+ Mon Nov 7 15:24:47 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
122
+ * Access the controller from context.
123
+
124
+ Mon Nov 7 18:32:34 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
125
+ * Removed app gen.
126
+
127
+ Mon Nov 7 13:26:33 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
128
+ * More fixes in morphing.
129
+
130
+ Mon Nov 7 13:16:06 GTB Standard Time 2005 Guillaume Pierronnet <guillaume.pierronnet@gmail.com>
131
+ * Fixed morphing compiler for nested elements.
132
+
133
+ Sat Nov 5 12:15:18 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
134
+ * A helper to sync with nitro-repository@rubyforge.org
135
+
136
+ Sat Nov 5 12:00:48 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
137
+ * Added some simple security support in the AdminController.
138
+
139
+ Sat Nov 5 11:58:22 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
140
+ * Updated Flare docs.
141
+
142
+ Sat Nov 5 10:26:57 GTB Standard Time 2005 Bryan Soto
143
+ * Fixed validate_unique.
144
+
145
+ Fri Nov 4 16:01:49 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
146
+ * Default name for sqlite stores.
147
+
148
+ Fri Nov 4 15:57:10 GTB Standard Time 2005 Guillaume Pierronnet <guillaume.pierronnet@gmail.com>
149
+ * Small fixes in the SCGI adapter.
150
+
151
+ Fri Nov 4 14:51:36 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
152
+ * Minor change.
153
+
154
+ Fri Nov 4 14:06:04 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
155
+ * Commented out the list_tables stuff in manager.
156
+
157
+ Fri Nov 4 14:05:17 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
158
+ * Added comment tha points to og/validation.
159
+
160
+ Fri Nov 4 13:28:24 GTB Standard Time 2005 rob@motionpath.com
161
+ * STI Fixes
162
+
163
+ options[:type] is not always set for example when doing Class.first so I have patched the SQL adapter to do another check so that ogtype is always checked when it's supposed to (another example being Class[oid]).
164
+
165
+ SuperClass[oid] will now return a result of type child class if the oid is actually an STI child of SuperClass.
166
+
167
+ Thu Nov 3 19:16:58 GTB Standard Time 2005 rob@motionpath.com
168
+ * Join table fixes
169
+
170
+ This patch causes the PostgreSQL adapter to create proper database driven foreign key constraints on join table fields causing changes to the oid number or deletes to be fully replicated to all appropriate placess. The implementation is a little slow on startup but I could not think of a cleaner way to do it without violating the paradigm that og stores should be essentially independent.
171
+
172
+ It also does a final sweep within the sql adapter for other databases to kick out any joins still left lying around (happened to me with self join cases).
173
+
174
+ Please feel free to improve this if you can. The PGConn adapter now provides you with all the information you need.
175
+
176
+ Thu Nov 3 15:43:00 GTB Standard Time 2005 rob@motionpath.com
177
+ * Aggregate function fixed to take STI into account
178
+
179
+ Thu Nov 3 13:15:40 GTB Standard Time 2005 rob@motionpath.com
180
+ * Table destruction for PostgreSQL
181
+
182
+ Added the following flag to Og.setup:
183
+ => :destroy_tables - If set to true will drop all the tables in a database on startup.
184
+
185
+ This is preferred to dropping the whole database with a system command for many reasons, including using only PostgreSQL commands, working over remote connections and not requiring interactive input. The main :destroy function was not modified incase some people may prefer the old mechanics and also because the function is not wholly identical (but should be in practice); there is no equivilent :create by nature.
186
+
187
+
188
+ Thu Nov 3 12:24:43 GTB Standard Time 2005 rob@motionpath.com
189
+ * Schema Evolution for PostgreSQL patch
190
+
191
+ Added Og database setup options:
192
+
193
+ => :evolve_schema - When set to true, automatically adds new fields to db tables.
194
+ => :evolve_schema_cautions - When set to false causes fields that are no longer in use to be droped from db tables.
195
+ => :evolve_schema_purge_tables - When set to true causes tables not managed by og (probably obsolete) to be dropped from the database.
196
+
197
+ All evolve schema options also require evolve_schema to be set.
198
+
199
+ Will inform you with info level log output if these activities would be performed but are not enabled allowing you to make the required changes manually.
200
+
201
+ Also modified PostgreSQL adapter and changed PostgreSQL store to properly check if tables exist first rather than trying to create them and catching table-exists errors.
202
+
203
+ Thu Nov 3 02:03:20 GTB Standard Time 2005 chrisfarms@gmail.com
204
+ * :join_tables array annotation was getting reset everytime a join table was added to the list.
205
+
206
+ Wed Nov 2 16:07:07 GTB Standard Time 2005 chrisfarms@gmail.com
207
+ * Improvements to __force_ functions, including hashed date support (like the Hashed Time support)... removed the now obsolete __force_hash_ function.
208
+
209
+ Wed Nov 2 01:51:12 GTB Standard Time 2005 chrisfarms@gmail.com
210
+ * Dont unessacellarly save entities when adding them to a joins_many collection. (previously quite a large performance hit)
211
+
212
+ Wed Nov 2 01:47:51 GTB Standard Time 2005 chrisfarms@gmail.com
213
+ * None of the Og::Taggable time fields should be displayed in scaffold.
214
+
215
+ Wed Nov 2 01:47:09 GTB Standard Time 2005 chrisfarms@gmail.com
216
+ * FIX: dateselect was displaying incorrect values
217
+
218
+ Wed Nov 2 01:44:31 GTB Standard Time 2005 chrisfarms@gmail.com
219
+ * FIXED: user_agent is different on WEBrick / Apache ... patch takes this into account using request.user_agent method.
220
+
221
+ Wed Nov 2 01:09:25 GTB Standard Time 2005 chrisfarms@gmail.com
222
+ * Marked a useless line of code for removal
223
+
224
+ Thu Nov 3 16:56:13 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
225
+ * Brought back proto directory (was bad idea).
226
+
227
+ Thu Nov 3 16:47:14 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
228
+ * Added support for named elements, fixed nasty element hierarchy bug.
229
+
230
+ Thu Nov 3 16:47:05 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
231
+ * Small fix in Gen.
232
+
233
+ Wed Nov 2 18:03:12 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
234
+ * Convert to ann.self (from ann.this).
235
+
236
+ Tue Nov 1 19:24:31 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
237
+ * More fixes to get some examples to run.
238
+
239
+ Tue Nov 1 19:18:15 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
240
+ * More conversions to the updated helper system.
241
+
242
+ Tue Nov 1 19:10:16 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
243
+ * Added og/markers and glue/markup.
244
+
245
+ Tue Nov 1 19:09:59 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
246
+ * Added Expirable.
247
+
248
+ Tue Nov 1 19:07:35 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
249
+ * Huge refactoring, converted nitro mixins to helpers, use the new helper keyword, use is XXX to include modules, moved Og mixins to the Glue namespace for better looking source code, markup moved to glue and more.
250
+
251
+ Tue Nov 1 15:07:35 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
252
+ * Removed some obsolete files.
253
+
254
+ Tue Nov 1 12:50:10 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
255
+ * Added missing og vendor dir to the repo.
256
+
257
+ Tue Nov 1 12:33:41 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
258
+ * Small source updates.
259
+
260
+ Tue Nov 1 12:24:23 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
261
+ * Reverted to the old taggable.
262
+
263
+ Tue Nov 1 11:40:49 GTB Standard Time 2005 Thomas Sawyer <transfire@gmail.com>
264
+ * Refacotred Entity, Relation and mixins.
265
+
266
+ Sat Oct 29 13:04:21 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
267
+ * Moved more proto files in the base nitro dir.
268
+
269
+ Sat Oct 29 13:03:32 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
270
+ * Removed proto, moved its subdirs in the base nitro dir.
271
+
272
+ Sat Oct 29 12:53:48 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
273
+ * Small fix in Cgi adapter. [fbach]
274
+
275
+ 0.24.0:
276
+
277
+ Sat Oct 29 12:53:10 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
278
+ * Small fixes before release.
279
+
1
280
  Thu Oct 27 22:41:45 GTB Standard Time 2005 George Moschovitis <gm@navel.gr>
2
281
  * Updated build script.
3
282
 
data/ProjectInfo CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  TITLE : &title Nitro
4
4
  NAME : &pkg nitro
5
- VERSION : '0.24.0'
5
+ VERSION : '0.25.0'
6
6
  STATUS : beta
7
7
 
8
8
  AUTHOR : George Moschovitis
@@ -22,9 +22,12 @@ DESCRIPTION: >
22
22
  staying standards compliant.
23
23
 
24
24
  DEPENDENCIES:
25
- - [ og, '= 0.24.0' ]
26
- - [ gen, '= 0.24.0' ]
27
- - [ glue, '= 0.24.0' ]
25
+ - [ og, '= 0.25.0' ]
26
+ - [ gen, '= 0.25.0' ]
27
+ - [ glue, '= 0.25.0' ]
28
+ - [ RedCloth, '= 3.0.3' ]
29
+ - [ ruby-breakpoint, '= 0.5' ]
30
+ - [ daemons, '= 0.4.2' ]
28
31
 
29
32
  DISTRIBUTE: [ gem, tgz, zip ]
30
33
 
@@ -47,9 +50,6 @@ ANNOUNCE:
47
50
  sectype: tls # ~, tls, ssl (tls is broke)
48
51
  file: ANN
49
52
  slogan: Nitro Web Engine
50
-
51
-
52
-
53
53
  links:
54
54
  - http://www.nitrohq.com
55
55
 
data/doc/AUTHORS CHANGED
@@ -32,7 +32,10 @@ IDEAS, ADDITIONAL CODING, SUPPORT:
32
32
  Design, bug reports.
33
33
 
34
34
  * TRANS <transfire@gmail.com>
35
- Small bug fixes.
35
+ Small bug fixes, patches.
36
+
37
+ * Bryan Soto <bryan.a.soto@gmail.com>
38
+ Small bug fixes, patches.
36
39
 
37
40
  * Kostas Nasis <kostas@nasis.com>
38
41
  Ideas and bug reports.
@@ -64,4 +67,3 @@ from:
64
67
 
65
68
  * Ruby On Rails,
66
69
  David Hanson, http://www.rubyonrails.com
67
-
data/doc/RELEASES CHANGED
@@ -1,3 +1,99 @@
1
+ == Version 0.25.0
2
+
3
+ This is the first in a series of releases focused on stability
4
+ and refinement. Many bugs where fixed, the high level api was
5
+ improved where needed, and we still got some small but incredibly
6
+ useful new features. Enjoy!
7
+
8
+ Most notable changes:
9
+
10
+ * Support for constrained / scoped queries in Og, here are
11
+ some examples:
12
+
13
+ User.with_scope(:condition => 'age > 2') {
14
+ users = User.all
15
+ }
16
+
17
+ Users.articles.find "title LIKE %t%" # => constrain i users articles.
18
+
19
+ * Dynamic auto generators, you can now query the database in
20
+ English:
21
+
22
+ User.find_by_name_and_age('gmosx', 'age')
23
+ User.find_or_create_by_name_and_age(...)
24
+
25
+ * Added experimental version of a new schema evolution system. Assuming
26
+ evolve_schema = true and evolve_schema_cautious = false
27
+
28
+ * With this patch, on application startup, fields are added and deleted.
29
+ * During run-time, if the file containing Og.setup is touched, fields are added.
30
+ * Fields are _not_ deleted during run-time, only at application startup.
31
+
32
+ a the moment this works only in the PostgreSQL store, support for more
33
+ stores is coming in the next versions. Thanks to Rob Pitt and Bryan Sotto
34
+ for this feature.
35
+
36
+ * Template morphing now handles nested elements, an example:
37
+
38
+ <div if="@user.admin?">
39
+ <ul>
40
+ <li each="role in @user.roles" />
41
+ </ul>
42
+ </div>
43
+
44
+ * Added some useful helpers to make the code you write cleaner,
45
+ here are some examples:
46
+
47
+ class Article
48
+ is Taggable
49
+
50
+ instead of
51
+
52
+ class Article
53
+ include Og::Taggable
54
+
55
+ or
56
+
57
+ class MainController
58
+ helper :pager, :javascript, :sitemap
59
+
60
+ instead of
61
+
62
+ class MainController
63
+ include Nitro::PagerHelper
64
+ include Nitro::JavascriptHelper
65
+ ...
66
+
67
+ and stuff like that...
68
+
69
+ * New, improved, clean taggable implementation. This new implementation
70
+ supports polymorphism.
71
+
72
+ class Article
73
+ is Taggable
74
+ end
75
+
76
+ class Photo
77
+ is Taggable
78
+ end
79
+
80
+ ...
81
+
82
+ t = Tag.find_by_name('new')
83
+ t.articles
84
+ t.photos
85
+
86
+ * Added useful StaticInclude as a separate compiler module to act
87
+ as the first stage in the compilation pipeline.
88
+
89
+ * Integrated latest versions of Prototype, Scriptaculous, KirbyBase
90
+ and facets.
91
+
92
+ * General code cleanup and refactoring.
93
+
94
+ * Many, many bug fixes, including security fixes.
95
+
96
+
1
97
  == Version 0.24.0
2
98
 
3
99
  A snapshot of the latest developments. This version features
@@ -8,7 +104,6 @@ patches and code.
8
104
 
9
105
  Most notable additions:
10
106
 
11
-
12
107
  * Totaly recoded annotation / property system. The property
13
108
  system is now based on Facet annotations and inheritors.
14
109
  You can now annotate every object, attribute or method
data/lib/nitro.rb CHANGED
@@ -16,7 +16,7 @@ module Nitro
16
16
 
17
17
  # The version.
18
18
 
19
- Version = '0.24.0'
19
+ Version = '0.25.0'
20
20
 
21
21
  # Library path.
22
22
 
@@ -24,8 +24,11 @@ module Nitro
24
24
 
25
25
  # The path to the prototype application.
26
26
 
27
- setting :proto_path, :default => "#{LibPath}/../proto", :doc => 'The path to the prototype application'
27
+ setting :proto_path, :default => File.join(LibPath, '..', 'proto'), :doc => 'The path to the prototype application'
28
28
 
29
+ # Add the src dir in the path.
30
+
31
+ $LOAD_PATH.unshift File.join(LibPath, '..', 'src')
29
32
  end
30
33
 
31
34
  #--