zena 1.0.0.beta3 → 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (418) hide show
  1. data/History.txt +29 -0
  2. data/Rakefile +2 -0
  3. data/TODO_ZENA_1_0 +13 -23
  4. data/app/controllers/columns_controller.rb +1 -1
  5. data/app/controllers/comments_controller.rb +4 -3
  6. data/app/controllers/documents_controller.rb +8 -11
  7. data/app/controllers/nodes_controller.rb +39 -21
  8. data/app/controllers/users_controller.rb +8 -3
  9. data/app/controllers/versions_controller.rb +2 -2
  10. data/app/controllers/virtual_classes_controller.rb +17 -11
  11. data/app/helpers/documents_helper.rb +0 -3
  12. data/app/helpers/users_helper.rb +17 -0
  13. data/app/models/cache.rb +36 -31
  14. data/app/models/column.rb +48 -5
  15. data/app/models/comment.rb +14 -5
  16. data/app/models/data_entry.rb +2 -2
  17. data/app/models/document.rb +23 -33
  18. data/app/models/idx_nodes_datetime.rb +4 -0
  19. data/app/models/idx_nodes_float.rb +4 -0
  20. data/app/models/idx_project.rb +3 -0
  21. data/app/models/node.rb +372 -308
  22. data/app/models/page.rb +1 -31
  23. data/app/models/relation.rb +4 -4
  24. data/app/models/relation_proxy.rb +128 -17
  25. data/app/models/role.rb +27 -2
  26. data/app/models/site.rb +64 -56
  27. data/app/models/template.rb +11 -12
  28. data/app/models/text_document.rb +6 -7
  29. data/app/models/user.rb +95 -46
  30. data/app/models/version.rb +2 -2
  31. data/app/models/virtual_class.rb +418 -73
  32. data/app/views/columns/_form.html.erb +1 -1
  33. data/app/views/columns/_li.html.erb +1 -1
  34. data/app/views/comments/_form.rhtml +1 -1
  35. data/app/views/comments/_li.rhtml +1 -1
  36. data/app/views/comments/_li_simple.rhtml +1 -1
  37. data/app/views/groups/_form.rhtml +1 -1
  38. data/app/views/links/_li.rhtml +1 -1
  39. data/app/views/nodes/_groups.rhtml +1 -1
  40. data/app/views/nodes/_import_results.rhtml +1 -1
  41. data/app/views/nodes/_parent.rhtml +1 -1
  42. data/app/views/nodes/_results.rhtml +1 -1
  43. data/app/views/nodes/create.rjs +4 -2
  44. data/app/views/relations/_li.erb +2 -2
  45. data/app/views/templates/document_create_tabs/_file.rhtml +1 -1
  46. data/app/views/templates/document_create_tabs/_template.rhtml +2 -2
  47. data/app/views/templates/document_create_tabs/_text_document.rhtml +2 -2
  48. data/app/views/templates/edit_tabs/_help.rhtml +1 -1
  49. data/app/views/templates/edit_tabs/_title.rhtml +0 -3
  50. data/app/views/users/_form.rhtml +2 -6
  51. data/app/views/users/_li.rhtml +1 -3
  52. data/app/views/users/create.rjs +4 -4
  53. data/app/views/users/preferences.html.erb +1 -4
  54. data/app/views/versions/custom_tab.rhtml +5 -0
  55. data/app/views/virtual_classes/_form.erb +20 -10
  56. data/app/views/virtual_classes/_li.erb +21 -8
  57. data/app/views/zafu/default/Node-+search.zafu +1 -1
  58. data/app/views/zafu/default/Node.zafu +3 -3
  59. data/bricks/captcha/lib/bricks/captcha.rb +1 -1
  60. data/bricks/mongrel/zena/deploy.rb +14 -0
  61. data/bricks/{data2pdf → pdf}/.document +0 -0
  62. data/bricks/pdf/README +33 -0
  63. data/bricks/{data2pdf → pdf}/Rakefile +0 -0
  64. data/bricks/pdf/VERSION +1 -0
  65. data/bricks/pdf/lib/bricks/pdf.rb +110 -0
  66. data/bricks/pdf/lib/bricks/pdf/engine/prince.rb +38 -0
  67. data/bricks/pdf/lib/bricks/pdf/engine/xhtml2pdf.rb +9 -0
  68. data/bricks/pdf/lib/bricks/pdf/install.rb +121 -0
  69. data/bricks/pdf/test/engines/test_prince.rb +15 -0
  70. data/bricks/pdf/test/engines/test_xhtml2pdf.rb +15 -0
  71. data/bricks/{data2pdf → pdf}/test/fixtures/application.css +0 -0
  72. data/bricks/{data2pdf → pdf}/test/fixtures/contact.html +0 -0
  73. data/bricks/{data2pdf → pdf}/test/fixtures/pisa-default.css +0 -0
  74. data/bricks/{data2pdf → pdf}/test/fixtures/sheet1.css +0 -0
  75. data/bricks/{data2pdf → pdf}/test/fixtures/sheet2.css +0 -0
  76. data/bricks/{data2pdf → pdf}/test/fixtures/simple-html.html +0 -0
  77. data/bricks/{data2pdf → pdf}/test/fixtures/simple-text.txt +0 -0
  78. data/bricks/{data2pdf → pdf}/test/helper.rb +4 -5
  79. data/bricks/pdf/test/shoulda_macros/shoulda_pdf.rb +72 -0
  80. data/bricks/pdf/zena/init.rb +5 -0
  81. data/bricks/pdf/zena/tasks.rb +17 -0
  82. data/bricks/sphinx/lib/{use_sphinx.rb → bricks/sphinx.rb} +1 -1
  83. data/bricks/tags/zena/init.rb +2 -2
  84. data/bricks/tags/zena/test/zafu/tags.yml +4 -4
  85. data/bricks/zena/zena/migrate/01_base.rb +482 -0
  86. data/config/bricks.yml +22 -6
  87. data/config/gems.yml +8 -6
  88. data/db/20100628074512_zena0x_to1x.rb +6 -1
  89. data/db/fix/024_correct_vclass_kpath.rb +11 -0
  90. data/db/fix/025_move_tag_into_vclass.rb +13 -0
  91. data/db/{migrate → fix}/026_rename_templates.rb +0 -0
  92. data/db/{migrate → fix}/045_avoid_star_in_templates.rb +0 -0
  93. data/db/{migrate → fix}/046_fix_zazen_image_tag.rb +0 -0
  94. data/db/{migrate → fix}/047_change_default_link_id_to_zero.rb +1 -3
  95. data/db/{migrate → fix}/049_fix_publish_from_is_null.rb +0 -0
  96. data/db/{migrate → fix}/20090924141459_zafu_fix_sept09.rb +0 -0
  97. data/db/{migrate → fix}/20091013100351_rename_publish_group_to_drive_group.rb +1 -3
  98. data/db/{migrate → fix}/20091124161608_rebuild_fullpath.rb +0 -1
  99. data/db/{migrate → fix}/20100115134729_rebuild_fullpath_after_fix.rb +0 -0
  100. data/db/{migrate → fix}/20100526090140_renamed_contact_model_to_base_contact.rb +2 -4
  101. data/db/{migrate → fix/old_migrations}/001_create_base.rb +0 -1
  102. data/db/{migrate → fix/old_migrations}/002_add_time_zone_to_users.rb +0 -0
  103. data/db/{migrate → fix/old_migrations}/003_add_custom_base_flag.rb +0 -0
  104. data/db/{migrate → fix/old_migrations}/004_rename_template_skin.rb +0 -0
  105. data/db/{migrate → fix/old_migrations}/005_create_cached_pages.rb +0 -0
  106. data/db/{migrate → fix/old_migrations}/006_create_sites.rb +0 -0
  107. data/db/{migrate → fix/old_migrations}/007_replace_id_by_zip.rb +0 -0
  108. data/db/{migrate → fix/old_migrations}/008_user_status.rb +0 -0
  109. data/db/{migrate → fix/old_migrations}/009_fulltext.rb +0 -0
  110. data/db/fix/old_migrations/010_create_template_content.rb +17 -0
  111. data/db/{migrate → fix/old_migrations}/011_project_to_section.rb +0 -0
  112. data/db/{migrate → fix/old_migrations}/012_add_project_id.rb +0 -0
  113. data/db/{migrate → fix/old_migrations}/013_remove_defaults.rb +0 -0
  114. data/db/{migrate → fix/old_migrations}/014_add_sort_field.rb +0 -0
  115. data/db/{migrate → fix/old_migrations}/015_add_dyn_attributes.rb +0 -0
  116. data/db/{migrate → fix/old_migrations}/016_remove_translations.rb +0 -0
  117. data/db/{migrate → fix/old_migrations}/017_rename_authorize.rb +0 -0
  118. data/db/{migrate → fix/old_migrations}/018_add_auth_option.rb +0 -0
  119. data/db/{migrate → fix/old_migrations}/019_remove_user_status.rb +0 -0
  120. data/db/{migrate → fix/old_migrations}/020_create_participation.rb +0 -0
  121. data/db/{migrate → fix/old_migrations}/021_create_relations.rb +0 -0
  122. data/db/{migrate → fix/old_migrations}/022_create_virtual_classes.rb +0 -0
  123. data/db/{migrate → fix/old_migrations}/023_ip_on_anonymous_comment.rb +0 -0
  124. data/db/{migrate → fix/old_migrations}/027_add_country_to_contacts.rb +0 -0
  125. data/db/{migrate → fix/old_migrations}/028_change_size_of_conten_type_field.rb +0 -0
  126. data/db/{migrate → fix/old_migrations}/029_create_data_entries.rb +0 -0
  127. data/db/{migrate → fix/old_migrations}/030_redit_auto_publish_site_settings.rb +0 -0
  128. data/db/{migrate → fix/old_migrations}/031_create_iformats.rb +0 -0
  129. data/db/{migrate → fix/old_migrations}/032_caches_context_as_hash.rb +0 -0
  130. data/db/{migrate → fix/old_migrations}/033_documents_kpath_change.rb +0 -0
  131. data/db/{migrate → fix/old_migrations}/034_change_file_storage.rb +0 -0
  132. data/db/{migrate → fix/old_migrations}/035_add_status_to_link.rb +0 -0
  133. data/db/{migrate → fix/old_migrations}/036_add_flag_fields_on_nodes.rb +0 -0
  134. data/db/{migrate → fix/old_migrations}/037_add_auto_create_discussion_to_v_class.rb +0 -0
  135. data/db/{migrate → fix/old_migrations}/038_create_site_attributes.rb +0 -0
  136. data/db/{migrate → fix/old_migrations}/039_default_position.rb +0 -0
  137. data/db/{migrate → fix/old_migrations}/040_second_value_for_data_entry.rb +0 -0
  138. data/db/{migrate → fix/old_migrations}/041_add_attributes_to_v_class.rb +0 -0
  139. data/db/{migrate → fix/old_migrations}/042_fix_position_should_be_float.rb +0 -0
  140. data/db/{migrate → fix/old_migrations}/043_move_user_lang_into_participation.rb +0 -0
  141. data/db/{migrate → fix/old_migrations}/044_remove_monolingual_site_option.rb +0 -0
  142. data/db/{migrate → fix/old_migrations}/048_link_source_target_can_be_null.rb +0 -0
  143. data/db/{migrate → fix/old_migrations}/050_date_in_links.rb +0 -0
  144. data/db/{migrate → fix/old_migrations}/051_add_exif_tags_to_images.rb +0 -0
  145. data/db/{migrate → fix/old_migrations}/20090825201159_insert_zero_link.rb +0 -0
  146. data/db/{migrate → fix/old_migrations}/20090825201200_merge_bricks_migrations_with_std_migrations.rb +0 -0
  147. data/db/{migrate → fix/old_migrations}/20090927125912_allow_null_in_text_fields.rb +0 -0
  148. data/db/{migrate → fix/old_migrations}/20090928133440_no_more_private_nodes.rb +0 -0
  149. data/db/{migrate → fix/old_migrations}/20090928143754_version_status_change.rb +0 -0
  150. data/db/{migrate → fix/old_migrations}/20091001084025_change_status_values_for_comments.rb +0 -0
  151. data/db/{migrate → fix/old_migrations}/20091009084057_add_vhash_in_node.rb +0 -0
  152. data/db/{migrate → fix/old_migrations}/20091014130833_fix_template_title.rb +0 -0
  153. data/db/{migrate → fix/old_migrations}/20091014183726_merge_participation_into_users.rb +0 -0
  154. data/db/{migrate → fix/old_migrations}/20091018200734_add_popup_info_to_image_format.rb +0 -0
  155. data/db/{migrate → fix/old_migrations}/20091026161708_add_persistence_token.rb +0 -0
  156. data/db/{migrate → fix/old_migrations}/20091101184952_add_session_table.rb +0 -0
  157. data/db/{migrate → fix/old_migrations}/20091123175137_add_single_access_token.rb +0 -0
  158. data/db/{migrate → fix/old_migrations}/20100125062254_add_dynamo_to_version.rb +0 -0
  159. data/db/{migrate → fix/old_migrations}/20100201133242_remove_default_status_on_version.rb +0 -0
  160. data/db/{migrate → fix/old_migrations}/20100208194210_create_attachments.rb +0 -0
  161. data/db/{migrate → fix/old_migrations}/20100210112319_change_dynamo_to_property.rb +0 -0
  162. data/db/{migrate → fix/old_migrations}/20100320145726_transform_template_contents_into_index.rb +0 -0
  163. data/db/{migrate → fix/old_migrations}/20100328125634_change_skin_name_to_id.rb +0 -0
  164. data/db/{migrate → fix/old_migrations}/20100417061257_add_properties_to_sites.rb +0 -0
  165. data/db/{migrate → fix/old_migrations}/20100419163149_rename_name_to_node_name.rb +0 -0
  166. data/db/{migrate → fix/old_migrations}/20100422091606_change_v_class_table_into_roles.rb +0 -0
  167. data/db/{migrate → fix/old_migrations}/20100422094048_node_habtm_roles.rb +0 -0
  168. data/db/{migrate → fix/old_migrations}/20100422115935_create_columns.rb +0 -0
  169. data/db/{migrate → fix/old_migrations}/20100513181529_add_site_id_to_columns.rb +0 -0
  170. data/db/{migrate → fix/old_migrations}/20100519091711_add_index_definition_to_columns.rb +0 -0
  171. data/db/{migrate → fix/old_migrations}/20100519091940_create_idx_nodes_string.rb +0 -0
  172. data/db/{migrate → fix/old_migrations}/20100519232432_create_idx_nodes_ml_string.rb +0 -0
  173. data/db/{migrate → fix/old_migrations}/20100525113858_add_porperties_to_users.rb +0 -0
  174. data/db/{migrate → fix/old_migrations}/20100527130937_change_column_index_to_string.rb +0 -0
  175. data/db/{migrate → fix/old_migrations}/20100531135128_add_fulltext_builder_fields.rb +0 -0
  176. data/db/{migrate → fix/old_migrations}/20100915062903_add_api_group_id_to_site.rb +0 -0
  177. data/db/fix/old_migrations/20100923154807_remove_base_contact.rb +84 -0
  178. data/db/fix/old_migrations/20100926192223_remove_su_user.rb +8 -0
  179. data/db/fix/old_migrations/20100927141658_add_eval_attributes_to_v_class.rb +12 -0
  180. data/db/fix/old_migrations/20100928185257_add_obvious_idx.rb +52 -0
  181. data/db/fix/old_migrations/20100929143111_remove_node_name.rb +11 -0
  182. data/db/fix/old_migrations/20101006090454_store_properties_in_long_text.rb +9 -0
  183. data/db/fix/old_migrations/20101014185753_remove_user_prototype_id.rb +9 -0
  184. data/db/fix/old_migrations/20101101084318_create_scope_index.rb +35 -0
  185. data/db/fix/old_migrations/20101109074232_create_idx_nodes_tables.rb +65 -0
  186. data/db/fix/old_migrations/20101110184235_add_role_update_to_site.rb +9 -0
  187. data/db/fix/old_migrations/20101116103920_change_scope_index.rb +31 -0
  188. data/db/fix/old_migrations/20101123125822_add_integer_idx.rb +17 -0
  189. data/db/fix/old_migrations/20101130134522_add_index_field.rb +13 -0
  190. data/db/fix/old_migrations/20101213133816_add_group_to_relation.rb +9 -0
  191. data/db/init/base/help.fr.zml +1 -1
  192. data/db/init/base/skins/default.zml +0 -1
  193. data/db/init/base/skins/default/Node-+search.zafu +1 -1
  194. data/db/init/base/skins/default/Node-tree.zafu +3 -3
  195. data/db/init/base/skins/default/Node.zafu +3 -3
  196. data/lib/bricks/loader.rb +4 -1
  197. data/lib/bricks/requirements_validation.rb +11 -6
  198. data/lib/log_recorder/lib/log_recorder.rb +2 -2
  199. data/lib/tasks/zena.rake +25 -15
  200. data/lib/zena.rb +42 -9
  201. data/lib/zena/acts/enrollable.rb +81 -99
  202. data/lib/zena/acts/secure.rb +27 -23
  203. data/lib/zena/acts/secure_node.rb +10 -55
  204. data/lib/zena/acts/serializable.rb +9 -10
  205. data/lib/zena/app.rb +0 -2
  206. data/lib/zena/code_syntax.rb +1 -1
  207. data/lib/zena/controller/test_case.rb +0 -5
  208. data/lib/zena/core_ext/string.rb +48 -20
  209. data/lib/zena/db.rb +10 -442
  210. data/lib/zena/db_helper/abstract_db.rb +184 -0
  211. data/lib/zena/db_helper/mysql.rb +150 -0
  212. data/lib/zena/db_helper/postgresql.rb +79 -0
  213. data/lib/zena/db_helper/sqlite3.rb +135 -0
  214. data/lib/zena/deploy.rb +4 -1
  215. data/lib/zena/deploy/httpd.rhtml +3 -3
  216. data/lib/zena/deploy/vhost.rhtml +1 -1
  217. data/lib/zena/foxy_parser.rb +37 -18
  218. data/lib/zena/info.rb +3 -13
  219. data/lib/zena/migrator.rb +0 -1
  220. data/lib/zena/parser/zafu_rules.rb +9 -4
  221. data/lib/zena/parser/zazen_rules.rb +5 -5
  222. data/lib/zena/parser/zena_rules.rb +1 -1
  223. data/lib/zena/remote/interface.rb +1 -1
  224. data/lib/zena/site_worker.rb +3 -3
  225. data/lib/zena/test_controller.rb +10 -10
  226. data/lib/zena/use/action.rb +66 -6
  227. data/lib/zena/use/ajax.rb +39 -13
  228. data/lib/zena/use/ancestry.rb +210 -0
  229. data/lib/zena/use/authlogic.rb +30 -1
  230. data/lib/zena/use/calendar.rb +158 -0
  231. data/lib/zena/use/conditional.rb +3 -2
  232. data/lib/zena/use/context.rb +42 -12
  233. data/lib/zena/use/dates.rb +15 -14
  234. data/lib/zena/use/display.rb +54 -7
  235. data/lib/zena/use/error_rendering.rb +1 -0
  236. data/lib/zena/use/field_index.rb +20 -0
  237. data/lib/zena/use/fixtures.rb +12 -9
  238. data/lib/zena/use/forms.rb +230 -106
  239. data/lib/zena/use/fulltext.rb +28 -14
  240. data/lib/zena/use/html_tags.rb +1 -24
  241. data/lib/zena/use/i18n.rb +69 -14
  242. data/lib/zena/use/kpath.rb +60 -0
  243. data/lib/zena/use/ml_index.rb +6 -4
  244. data/lib/zena/use/node_context.rb +63 -0
  245. data/lib/zena/use/prop_eval.rb +90 -0
  246. data/lib/zena/use/query_builder.rb +159 -29
  247. data/lib/zena/use/query_comment.rb +1 -1
  248. data/lib/zena/use/query_node.rb +147 -56
  249. data/lib/zena/use/recursion.rb +2 -2
  250. data/lib/zena/use/relations.rb +31 -19
  251. data/lib/zena/use/rendering.rb +111 -121
  252. data/lib/zena/use/scope_index.rb +230 -0
  253. data/lib/zena/use/search.rb +7 -7
  254. data/lib/zena/use/urls.rb +87 -25
  255. data/lib/zena/use/version_hash.rb +113 -113
  256. data/lib/zena/use/workflow.rb +5 -1
  257. data/lib/zena/use/zafu_attributes.rb +11 -14
  258. data/lib/zena/use/zafu_eval.rb +1 -1
  259. data/lib/zena/use/zafu_safe_definitions.rb +91 -9
  260. data/lib/zena/use/zafu_templates.rb +146 -102
  261. data/lib/zena/use/zazen.rb +5 -4
  262. data/lib/zena/zafu_compiler.rb +1 -0
  263. data/locale/en/LC_MESSAGES/zena.mo +0 -0
  264. data/locale/en/zena.po +0 -1
  265. data/locale/fr/LC_MESSAGES/zena.mo +0 -0
  266. data/locale/fr/zena.mo +0 -0
  267. data/locale/fr/zena.po +4 -4
  268. data/misc/zena +35 -0
  269. data/misc/zena_init +41 -0
  270. data/public/images/ext/{basecontact.png → contact.png} +0 -0
  271. data/public/javascripts/zena.js +35 -7
  272. data/public/stylesheets/admin.css +5 -2
  273. data/public/stylesheets/default.css +2 -1
  274. data/public/stylesheets/popup.css +1 -1
  275. data/public/stylesheets/zena.css +2 -2
  276. data/test/custom_queries/complex.host.yml +12 -5
  277. data/test/fixtures/files/Node-test.zafu +3 -3
  278. data/test/fixtures/files/translations_fr.yml +4 -2
  279. data/test/functional/documents_controller_test.rb +31 -0
  280. data/test/functional/nodes_controller_commit_test.rb +1 -5
  281. data/test/functional/nodes_controller_test.rb +92 -12
  282. data/test/functional/user_sessions_controller_test.rb +2 -2
  283. data/test/functional/users_controller_test.rb +31 -29
  284. data/test/functional/versions_controller_test.rb +2 -2
  285. data/test/functional/virtual_classes_controller_test.rb +2 -2
  286. data/test/integration/multiple_hosts_test.rb +19 -8
  287. data/test/integration/navigation_test.rb +91 -12
  288. data/test/integration/query_node/basic.yml +40 -37
  289. data/test/integration/query_node/complex.yml +23 -18
  290. data/test/integration/query_node/dates.yml +3 -3
  291. data/test/integration/query_node/errors.yml +7 -1
  292. data/test/integration/query_node/filters.yml +41 -35
  293. data/test/integration/query_node/idx_fields.yml +11 -0
  294. data/test/integration/query_node/idx_key_value.yml +77 -0
  295. data/test/integration/query_node/idx_scope.yml +33 -0
  296. data/test/integration/query_node/relations.yml +13 -13
  297. data/test/integration/query_node_test.rb +6 -10
  298. data/test/integration/zafu_compiler/action.yml +19 -6
  299. data/test/integration/zafu_compiler/ajax.yml +111 -51
  300. data/test/integration/zafu_compiler/apphelper.yml +1 -1
  301. data/test/integration/zafu_compiler/asset.yml +1 -1
  302. data/test/integration/zafu_compiler/basic.yml +42 -52
  303. data/test/integration/zafu_compiler/calendar.yml +3 -3
  304. data/test/integration/zafu_compiler/complex.yml +16 -16
  305. data/test/integration/zafu_compiler/complex_ok.yml +2 -2
  306. data/test/integration/zafu_compiler/conditional.yml +42 -33
  307. data/test/integration/zafu_compiler/data.yml +3 -3
  308. data/test/integration/zafu_compiler/dates.yml +25 -10
  309. data/test/integration/zafu_compiler/display.yml +49 -12
  310. data/test/integration/zafu_compiler/errors.yml +26 -6
  311. data/test/integration/zafu_compiler/eval.yml +4 -4
  312. data/test/integration/zafu_compiler/forms.yml +89 -15
  313. data/test/integration/zafu_compiler/i18n.yml +23 -18
  314. data/test/integration/zafu_compiler/idx_scope.yml +7 -0
  315. data/test/integration/zafu_compiler/later.yml +10 -16
  316. data/test/integration/zafu_compiler/off/off.yml +2 -2
  317. data/test/integration/zafu_compiler/query.yml +207 -0
  318. data/test/integration/zafu_compiler/recursion.yml +2 -2
  319. data/test/integration/zafu_compiler/relations.yml +144 -168
  320. data/test/integration/zafu_compiler/roles.yml +86 -10
  321. data/test/integration/zafu_compiler/rubyless.yml +49 -6
  322. data/test/integration/zafu_compiler/safe_definitions.yml +35 -6
  323. data/test/integration/zafu_compiler/search.yml +1 -1
  324. data/test/integration/zafu_compiler/security.yml +37 -0
  325. data/test/integration/zafu_compiler/urls.yml +50 -40
  326. data/test/integration/zafu_compiler/user.yml +21 -6
  327. data/test/integration/zafu_compiler/version.yml +6 -6
  328. data/test/integration/zafu_compiler/zafu_attributes.yml +43 -34
  329. data/test/integration/zafu_compiler/zazen.yml +10 -10
  330. data/test/integration/zafu_compiler_test.rb +19 -13
  331. data/test/sites/complex/nodes.yml +0 -2
  332. data/test/sites/complex/roles.yml +9 -1
  333. data/test/sites/complex/sites.yml +0 -1
  334. data/test/sites/complex/users.yml +2 -5
  335. data/test/sites/ocean/nodes.yml +2 -5
  336. data/test/sites/ocean/roles.yml +8 -0
  337. data/test/sites/ocean/sites.yml +0 -1
  338. data/test/sites/ocean/users.yml +0 -13
  339. data/test/sites/zena/columns.yml +27 -5
  340. data/test/sites/zena/idx_projects.yml +5 -0
  341. data/test/sites/zena/nodes.yml +8 -32
  342. data/test/sites/zena/relations.yml +5 -0
  343. data/test/sites/zena/roles.yml +25 -3
  344. data/test/sites/zena/sites.yml +2 -2
  345. data/test/sites/zena/users.yml +1 -21
  346. data/test/sites/zena/versions.yml +35 -12
  347. data/test/test_helper.rb +7 -0
  348. data/test/unit/after_commit_test.rb +7 -7
  349. data/test/unit/cache_test.rb +32 -0
  350. data/test/unit/cached_page_test.rb +1 -1
  351. data/test/unit/column_test.rb +31 -7
  352. data/test/unit/comment_test.rb +2 -2
  353. data/test/unit/core_ext_test.rb +38 -7
  354. data/test/unit/document_test.rb +14 -42
  355. data/test/unit/node_test.rb +311 -324
  356. data/test/unit/note_test.rb +23 -31
  357. data/test/unit/page_test.rb +16 -58
  358. data/test/unit/project_test.rb +2 -2
  359. data/test/unit/relation_proxy_test.rb +148 -21
  360. data/test/unit/relation_test.rb +23 -3
  361. data/test/unit/remote_test.rb +15 -9
  362. data/test/unit/role_test.rb +9 -0
  363. data/test/unit/site_test.rb +49 -47
  364. data/test/unit/skin_test.rb +16 -0
  365. data/test/unit/template_test.rb +60 -69
  366. data/test/unit/text_document_test.rb +15 -14
  367. data/test/unit/user_test.rb +101 -41
  368. data/test/unit/version_test.rb +4 -4
  369. data/test/unit/virtual_class_test.rb +577 -36
  370. data/test/unit/workflow_test.rb +58 -21
  371. data/test/unit/zena/acts/enrollable_test.rb +36 -127
  372. data/test/unit/zena/acts/secure_test.rb +6 -22
  373. data/test/unit/zena/acts/serializable_test.rb +18 -0
  374. data/test/unit/zena/db_test.rb +14 -14
  375. data/test/unit/zena/parser/zafu.yml +5 -3
  376. data/test/unit/zena/use/ancestry_test.rb +198 -0
  377. data/test/unit/zena/use/calendar_test.rb +8 -8
  378. data/test/unit/zena/use/dates_test.rb +2 -0
  379. data/test/unit/zena/use/fulltext_test.rb +9 -1
  380. data/test/unit/zena/use/html_tags_test.rb +2 -16
  381. data/test/unit/zena/use/i18n_test.rb +2 -2
  382. data/test/unit/zena/use/kpath_test.rb +13 -0
  383. data/test/unit/zena/use/ml_index_test.rb +60 -12
  384. data/test/unit/zena/use/prop_eval_test.rb +170 -0
  385. data/test/unit/zena/use/query_node_test.rb +9 -2
  386. data/test/unit/zena/use/rendering_test.rb +98 -1
  387. data/test/unit/zena/use/scope_index_test.rb +464 -0
  388. data/test/unit/zena/use/urls_test.rb +23 -13
  389. data/test/unit/zena/use/version_hash_test.rb +2 -2
  390. data/test/unit/zena/use/zafu_template_test.rb +21 -8
  391. data/test/unit/zena/use/zazen_test.rb +47 -47
  392. data/zena.gemspec +177 -143
  393. metadata +222 -141
  394. data/app/models/base_contact.rb +0 -79
  395. data/app/models/book.rb +0 -242
  396. data/app/models/contact_content.rb +0 -70
  397. data/app/models/contact_version.rb +0 -40
  398. data/app/models/reference.rb +0 -18
  399. data/app/views/templates/edit_tabs/_basecontact.rhtml +0 -8
  400. data/bricks/data2pdf/README +0 -19
  401. data/bricks/data2pdf/VERSION +0 -1
  402. data/bricks/data2pdf/lib/data2pdf.rb +0 -60
  403. data/bricks/data2pdf/lib/engines/prince.rb +0 -39
  404. data/bricks/data2pdf/lib/engines/xhtml2pdf.rb +0 -41
  405. data/bricks/data2pdf/lib/install.rb +0 -111
  406. data/bricks/data2pdf/test/engines/test_prince.rb +0 -14
  407. data/bricks/data2pdf/test/engines/test_xhtml2pdf.rb +0 -14
  408. data/bricks/data2pdf/test/shoulda_macros/shoulda_data2pdf.rb +0 -91
  409. data/bricks/data2pdf/test/unit/test_rendering.rb +0 -37
  410. data/config/routes.rb +0 -3
  411. data/db/migrate/010_create_template_content.rb +0 -17
  412. data/db/migrate/024_correct_vclass_kpath.rb +0 -13
  413. data/db/migrate/025_move_tag_into_vclass.rb +0 -15
  414. data/lib/version_off.rb +0 -323
  415. data/lib/zena/use/node_name.rb +0 -94
  416. data/test/integration/query_node/properties.yml +0 -41
  417. data/test/unit/base_contact_test.rb +0 -242
  418. data/test/unit/node_name_test.rb +0 -137
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zena
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 977940574
4
5
  prerelease: true
5
6
  segments:
6
7
  - 1
7
8
  - 0
8
9
  - 0
9
- - beta3
10
- version: 1.0.0.beta3
10
+ - rc1
11
+ version: 1.0.0.rc1
11
12
  platform: ruby
12
13
  authors:
13
14
  - Gaspard Bucher
@@ -15,16 +16,18 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-09-17 00:00:00 +02:00
19
+ date: 2011-02-11 00:00:00 +01:00
19
20
  default_executable: zena
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
22
23
  name: ruby-recaptcha
23
24
  prerelease: false
24
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
25
27
  requirements:
26
28
  - - "="
27
29
  - !ruby/object:Gem::Version
30
+ hash: 23
28
31
  segments:
29
32
  - 1
30
33
  - 0
@@ -36,9 +39,11 @@ dependencies:
36
39
  name: tzinfo
37
40
  prerelease: false
38
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
39
43
  requirements:
40
44
  - - ">="
41
45
  - !ruby/object:Gem::Version
46
+ hash: 11
42
47
  segments:
43
48
  - 0
44
49
  - 3
@@ -50,9 +55,11 @@ dependencies:
50
55
  name: rails
51
56
  prerelease: false
52
57
  requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
53
59
  requirements:
54
60
  - - "="
55
61
  - !ruby/object:Gem::Version
62
+ hash: 19
56
63
  segments:
57
64
  - 2
58
65
  - 3
@@ -64,37 +71,43 @@ dependencies:
64
71
  name: rubyless
65
72
  prerelease: false
66
73
  requirement: &id004 !ruby/object:Gem::Requirement
74
+ none: false
67
75
  requirements:
68
76
  - - ">="
69
77
  - !ruby/object:Gem::Version
78
+ hash: 59
70
79
  segments:
71
80
  - 0
72
- - 7
73
- - 0
74
- version: 0.7.0
81
+ - 8
82
+ - 2
83
+ version: 0.8.2
75
84
  type: :runtime
76
85
  version_requirements: *id004
77
86
  - !ruby/object:Gem::Dependency
78
87
  name: property
79
88
  prerelease: false
80
89
  requirement: &id005 !ruby/object:Gem::Requirement
90
+ none: false
81
91
  requirements:
82
92
  - - ">="
83
93
  - !ruby/object:Gem::Version
94
+ hash: 15
84
95
  segments:
96
+ - 2
85
97
  - 1
86
- - 1
87
- - 0
88
- version: 1.1.0
98
+ - 2
99
+ version: 2.1.2
89
100
  type: :runtime
90
101
  version_requirements: *id005
91
102
  - !ruby/object:Gem::Dependency
92
103
  name: uuidtools
93
104
  prerelease: false
94
105
  requirement: &id006 !ruby/object:Gem::Requirement
106
+ none: false
95
107
  requirements:
96
108
  - - "="
97
109
  - !ruby/object:Gem::Version
110
+ hash: 15
98
111
  segments:
99
112
  - 2
100
113
  - 0
@@ -106,9 +119,11 @@ dependencies:
106
119
  name: authlogic
107
120
  prerelease: false
108
121
  requirement: &id007 !ruby/object:Gem::Requirement
122
+ none: false
109
123
  requirements:
110
124
  - - "="
111
125
  - !ruby/object:Gem::Version
126
+ hash: 13
112
127
  segments:
113
128
  - 2
114
129
  - 1
@@ -120,37 +135,43 @@ dependencies:
120
135
  name: zafu
121
136
  prerelease: false
122
137
  requirement: &id008 !ruby/object:Gem::Requirement
138
+ none: false
123
139
  requirements:
124
140
  - - ">="
125
141
  - !ruby/object:Gem::Version
142
+ hash: 15
126
143
  segments:
127
144
  - 0
128
145
  - 7
129
- - 1
130
- version: 0.7.1
146
+ - 6
147
+ version: 0.7.6
131
148
  type: :runtime
132
149
  version_requirements: *id008
133
150
  - !ruby/object:Gem::Dependency
134
151
  name: shoulda
135
152
  prerelease: false
136
153
  requirement: &id009 !ruby/object:Gem::Requirement
154
+ none: false
137
155
  requirements:
138
- - - ">="
156
+ - - "="
139
157
  - !ruby/object:Gem::Version
158
+ hash: 33
140
159
  segments:
141
160
  - 2
142
161
  - 10
143
- - 2
144
- version: 2.10.2
162
+ - 3
163
+ version: 2.10.3
145
164
  type: :runtime
146
165
  version_requirements: *id009
147
166
  - !ruby/object:Gem::Dependency
148
167
  name: fast_gettext
149
168
  prerelease: false
150
169
  requirement: &id010 !ruby/object:Gem::Requirement
170
+ none: false
151
171
  requirements:
152
172
  - - ~>
153
173
  - !ruby/object:Gem::Version
174
+ hash: 47
154
175
  segments:
155
176
  - 0
156
177
  - 4
@@ -162,9 +183,11 @@ dependencies:
162
183
  name: syntax
163
184
  prerelease: false
164
185
  requirement: &id011 !ruby/object:Gem::Requirement
186
+ none: false
165
187
  requirements:
166
188
  - - "="
167
189
  - !ruby/object:Gem::Version
190
+ hash: 23
168
191
  segments:
169
192
  - 1
170
193
  - 0
@@ -176,9 +199,11 @@ dependencies:
176
199
  name: yamltest
177
200
  prerelease: false
178
201
  requirement: &id012 !ruby/object:Gem::Requirement
202
+ none: false
179
203
  requirements:
180
204
  - - ">="
181
205
  - !ruby/object:Gem::Version
206
+ hash: 3
182
207
  segments:
183
208
  - 0
184
209
  - 7
@@ -190,9 +215,11 @@ dependencies:
190
215
  name: json
191
216
  prerelease: false
192
217
  requirement: &id013 !ruby/object:Gem::Requirement
218
+ none: false
193
219
  requirements:
194
220
  - - ">="
195
221
  - !ruby/object:Gem::Version
222
+ hash: 1
196
223
  segments:
197
224
  - 1
198
225
  - 1
@@ -204,9 +231,11 @@ dependencies:
204
231
  name: will_paginate
205
232
  prerelease: false
206
233
  requirement: &id014 !ruby/object:Gem::Requirement
234
+ none: false
207
235
  requirements:
208
236
  - - ~>
209
237
  - !ruby/object:Gem::Version
238
+ hash: 27
210
239
  segments:
211
240
  - 2
212
241
  - 3
@@ -218,9 +247,11 @@ dependencies:
218
247
  name: gettext
219
248
  prerelease: false
220
249
  requirement: &id015 !ruby/object:Gem::Requirement
250
+ none: false
221
251
  requirements:
222
252
  - - ">="
223
253
  - !ruby/object:Gem::Version
254
+ hash: 355
224
255
  segments:
225
256
  - 1
226
257
  - 93
@@ -232,9 +263,11 @@ dependencies:
232
263
  name: versions
233
264
  prerelease: false
234
265
  requirement: &id016 !ruby/object:Gem::Requirement
266
+ none: false
235
267
  requirements:
236
268
  - - ">="
237
269
  - !ruby/object:Gem::Version
270
+ hash: 17
238
271
  segments:
239
272
  - 0
240
273
  - 3
@@ -246,9 +279,11 @@ dependencies:
246
279
  name: jeweler
247
280
  prerelease: false
248
281
  requirement: &id017 !ruby/object:Gem::Requirement
282
+ none: false
249
283
  requirements:
250
284
  - - ">="
251
285
  - !ruby/object:Gem::Version
286
+ hash: 3
252
287
  segments:
253
288
  - 0
254
289
  version: "0"
@@ -258,9 +293,11 @@ dependencies:
258
293
  name: hpricot
259
294
  prerelease: false
260
295
  requirement: &id018 !ruby/object:Gem::Requirement
296
+ none: false
261
297
  requirements:
262
298
  - - ">="
263
299
  - !ruby/object:Gem::Version
300
+ hash: 3
264
301
  segments:
265
302
  - 0
266
303
  version: "0"
@@ -270,9 +307,11 @@ dependencies:
270
307
  name: differ
271
308
  prerelease: false
272
309
  requirement: &id019 !ruby/object:Gem::Requirement
310
+ none: false
273
311
  requirements:
274
312
  - - ">="
275
313
  - !ruby/object:Gem::Version
314
+ hash: 25
276
315
  segments:
277
316
  - 0
278
317
  - 1
@@ -284,9 +323,11 @@ dependencies:
284
323
  name: RedCloth
285
324
  prerelease: false
286
325
  requirement: &id020 !ruby/object:Gem::Requirement
326
+ none: false
287
327
  requirements:
288
328
  - - "="
289
329
  - !ruby/object:Gem::Version
330
+ hash: 15
290
331
  segments:
291
332
  - 3
292
333
  - 0
@@ -298,14 +339,16 @@ dependencies:
298
339
  name: querybuilder
299
340
  prerelease: false
300
341
  requirement: &id021 !ruby/object:Gem::Requirement
342
+ none: false
301
343
  requirements:
302
344
  - - ">="
303
345
  - !ruby/object:Gem::Version
346
+ hash: 49
304
347
  segments:
305
348
  - 0
306
349
  - 9
307
- - 0
308
- version: 0.9.0
350
+ - 5
351
+ version: 0.9.5
309
352
  type: :runtime
310
353
  version_requirements: *id021
311
354
  description: zena is a Ruby on Rails CMS (content managment system) with a focus on usability, ease of customization and web 2.0 goodness (application like behaviour).
@@ -349,24 +392,24 @@ files:
349
392
  - app/helpers/application_helper.rb
350
393
  - app/helpers/documents_helper.rb
351
394
  - app/helpers/nodes_helper.rb
395
+ - app/helpers/users_helper.rb
352
396
  - app/helpers/versions_helper.rb
353
397
  - app/models/attachment.rb
354
- - app/models/base_contact.rb
355
- - app/models/book.rb
356
398
  - app/models/cache.rb
357
399
  - app/models/cached_page.rb
358
400
  - app/models/column.rb
359
401
  - app/models/comment.rb
360
- - app/models/contact_content.rb
361
- - app/models/contact_version.rb
362
402
  - app/models/data_entry.rb
363
403
  - app/models/discussion.rb
364
404
  - app/models/document.rb
365
405
  - app/models/document_content.rb
366
406
  - app/models/dyn_attribute.rb
367
407
  - app/models/group.rb
408
+ - app/models/idx_nodes_datetime.rb
409
+ - app/models/idx_nodes_float.rb
368
410
  - app/models/idx_nodes_ml_string.rb
369
411
  - app/models/idx_nodes_string.rb
412
+ - app/models/idx_project.rb
370
413
  - app/models/idx_template.rb
371
414
  - app/models/iformat.rb
372
415
  - app/models/image.rb
@@ -376,7 +419,6 @@ files:
376
419
  - app/models/note.rb
377
420
  - app/models/page.rb
378
421
  - app/models/project.rb
379
- - app/models/reference.rb
380
422
  - app/models/relation.rb
381
423
  - app/models/relation_proxy.rb
382
424
  - app/models/role.rb
@@ -516,7 +558,6 @@ files:
516
558
  - app/views/templates/drive_tabs/_drive.rhtml
517
559
  - app/views/templates/drive_tabs/_help.rhtml
518
560
  - app/views/templates/drive_tabs/_links.rhtml
519
- - app/views/templates/edit_tabs/_basecontact.rhtml
520
561
  - app/views/templates/edit_tabs/_custom.rhtml
521
562
  - app/views/templates/edit_tabs/_document.rhtml
522
563
  - app/views/templates/edit_tabs/_help.rhtml
@@ -540,6 +581,7 @@ files:
540
581
  - app/views/versions/_tr.rhtml
541
582
  - app/views/versions/backup.rjs
542
583
  - app/views/versions/css_preview.rjs
584
+ - app/views/versions/custom_tab.rhtml
543
585
  - app/views/versions/destroy.rjs
544
586
  - app/views/versions/diff.rjs
545
587
  - app/views/versions/edit.rhtml
@@ -568,35 +610,36 @@ files:
568
610
  - bricks/captcha/README
569
611
  - bricks/captcha/lib/bricks/captcha.rb
570
612
  - bricks/captcha/zena/init.rb
571
- - bricks/data2pdf/.document
572
- - bricks/data2pdf/README
573
- - bricks/data2pdf/Rakefile
574
- - bricks/data2pdf/VERSION
575
- - bricks/data2pdf/lib/data2pdf.rb
576
- - bricks/data2pdf/lib/engines/prince.rb
577
- - bricks/data2pdf/lib/engines/xhtml2pdf.rb
578
- - bricks/data2pdf/lib/install.rb
579
- - bricks/data2pdf/test/engines/test_prince.rb
580
- - bricks/data2pdf/test/engines/test_xhtml2pdf.rb
581
- - bricks/data2pdf/test/fixtures/application.css
582
- - bricks/data2pdf/test/fixtures/contact.html
583
- - bricks/data2pdf/test/fixtures/pisa-default.css
584
- - bricks/data2pdf/test/fixtures/sheet1.css
585
- - bricks/data2pdf/test/fixtures/sheet2.css
586
- - bricks/data2pdf/test/fixtures/simple-html.html
587
- - bricks/data2pdf/test/fixtures/simple-text.txt
588
- - bricks/data2pdf/test/helper.rb
589
- - bricks/data2pdf/test/shoulda_macros/shoulda_data2pdf.rb
590
- - bricks/data2pdf/test/unit/test_rendering.rb
591
613
  - bricks/math/lib/bricks/math.rb
592
614
  - bricks/math/zena/init.rb
593
615
  - bricks/mongrel/README
594
616
  - bricks/mongrel/zena/deploy.rb
595
617
  - bricks/passenger/README
596
618
  - bricks/passenger/zena/deploy.rb
619
+ - bricks/pdf/.document
620
+ - bricks/pdf/README
621
+ - bricks/pdf/Rakefile
622
+ - bricks/pdf/VERSION
623
+ - bricks/pdf/lib/bricks/pdf.rb
624
+ - bricks/pdf/lib/bricks/pdf/engine/prince.rb
625
+ - bricks/pdf/lib/bricks/pdf/engine/xhtml2pdf.rb
626
+ - bricks/pdf/lib/bricks/pdf/install.rb
627
+ - bricks/pdf/test/engines/test_prince.rb
628
+ - bricks/pdf/test/engines/test_xhtml2pdf.rb
629
+ - bricks/pdf/test/fixtures/application.css
630
+ - bricks/pdf/test/fixtures/contact.html
631
+ - bricks/pdf/test/fixtures/pisa-default.css
632
+ - bricks/pdf/test/fixtures/sheet1.css
633
+ - bricks/pdf/test/fixtures/sheet2.css
634
+ - bricks/pdf/test/fixtures/simple-html.html
635
+ - bricks/pdf/test/fixtures/simple-text.txt
636
+ - bricks/pdf/test/helper.rb
637
+ - bricks/pdf/test/shoulda_macros/shoulda_pdf.rb
638
+ - bricks/pdf/zena/init.rb
639
+ - bricks/pdf/zena/tasks.rb
597
640
  - bricks/sphinx/MIT-LICENSE
598
641
  - bricks/sphinx/README
599
- - bricks/sphinx/lib/use_sphinx.rb
642
+ - bricks/sphinx/lib/bricks/sphinx.rb
600
643
  - bricks/sphinx/zena/deploy.rb
601
644
  - bricks/sphinx/zena/init.rb
602
645
  - bricks/sphinx/zena/migrate/20091102171258_add_delta_for_sphinx.rb
@@ -615,6 +658,7 @@ files:
615
658
  - bricks/worker/zena/migrate/20091104191643_create_delayed_jobs_table.rb
616
659
  - bricks/worker/zena/tasks.rb
617
660
  - bricks/worker/zena/worker
661
+ - bricks/zena/zena/migrate/01_base.rb
618
662
  - config/boot.rb
619
663
  - config/bricks.yml
620
664
  - config/database_example.yml
@@ -627,9 +671,110 @@ files:
627
671
  - config/initializers/mime_types.rb
628
672
  - config/initializers/zena.rb
629
673
  - config/mongrel_upload_progress.conf
630
- - config/routes.rb
631
674
  - config/sphinx.yml
632
675
  - db/20100628074512_zena0x_to1x.rb
676
+ - db/fix/024_correct_vclass_kpath.rb
677
+ - db/fix/025_move_tag_into_vclass.rb
678
+ - db/fix/026_rename_templates.rb
679
+ - db/fix/045_avoid_star_in_templates.rb
680
+ - db/fix/046_fix_zazen_image_tag.rb
681
+ - db/fix/047_change_default_link_id_to_zero.rb
682
+ - db/fix/049_fix_publish_from_is_null.rb
683
+ - db/fix/20090924141459_zafu_fix_sept09.rb
684
+ - db/fix/20091013100351_rename_publish_group_to_drive_group.rb
685
+ - db/fix/20091124161608_rebuild_fullpath.rb
686
+ - db/fix/20100115134729_rebuild_fullpath_after_fix.rb
687
+ - db/fix/20100526090140_renamed_contact_model_to_base_contact.rb
688
+ - db/fix/old_migrations/001_create_base.rb
689
+ - db/fix/old_migrations/002_add_time_zone_to_users.rb
690
+ - db/fix/old_migrations/003_add_custom_base_flag.rb
691
+ - db/fix/old_migrations/004_rename_template_skin.rb
692
+ - db/fix/old_migrations/005_create_cached_pages.rb
693
+ - db/fix/old_migrations/006_create_sites.rb
694
+ - db/fix/old_migrations/007_replace_id_by_zip.rb
695
+ - db/fix/old_migrations/008_user_status.rb
696
+ - db/fix/old_migrations/009_fulltext.rb
697
+ - db/fix/old_migrations/010_create_template_content.rb
698
+ - db/fix/old_migrations/011_project_to_section.rb
699
+ - db/fix/old_migrations/012_add_project_id.rb
700
+ - db/fix/old_migrations/013_remove_defaults.rb
701
+ - db/fix/old_migrations/014_add_sort_field.rb
702
+ - db/fix/old_migrations/015_add_dyn_attributes.rb
703
+ - db/fix/old_migrations/016_remove_translations.rb
704
+ - db/fix/old_migrations/017_rename_authorize.rb
705
+ - db/fix/old_migrations/018_add_auth_option.rb
706
+ - db/fix/old_migrations/019_remove_user_status.rb
707
+ - db/fix/old_migrations/020_create_participation.rb
708
+ - db/fix/old_migrations/021_create_relations.rb
709
+ - db/fix/old_migrations/022_create_virtual_classes.rb
710
+ - db/fix/old_migrations/023_ip_on_anonymous_comment.rb
711
+ - db/fix/old_migrations/027_add_country_to_contacts.rb
712
+ - db/fix/old_migrations/028_change_size_of_conten_type_field.rb
713
+ - db/fix/old_migrations/029_create_data_entries.rb
714
+ - db/fix/old_migrations/030_redit_auto_publish_site_settings.rb
715
+ - db/fix/old_migrations/031_create_iformats.rb
716
+ - db/fix/old_migrations/032_caches_context_as_hash.rb
717
+ - db/fix/old_migrations/033_documents_kpath_change.rb
718
+ - db/fix/old_migrations/034_change_file_storage.rb
719
+ - db/fix/old_migrations/035_add_status_to_link.rb
720
+ - db/fix/old_migrations/036_add_flag_fields_on_nodes.rb
721
+ - db/fix/old_migrations/037_add_auto_create_discussion_to_v_class.rb
722
+ - db/fix/old_migrations/038_create_site_attributes.rb
723
+ - db/fix/old_migrations/039_default_position.rb
724
+ - db/fix/old_migrations/040_second_value_for_data_entry.rb
725
+ - db/fix/old_migrations/041_add_attributes_to_v_class.rb
726
+ - db/fix/old_migrations/042_fix_position_should_be_float.rb
727
+ - db/fix/old_migrations/043_move_user_lang_into_participation.rb
728
+ - db/fix/old_migrations/044_remove_monolingual_site_option.rb
729
+ - db/fix/old_migrations/048_link_source_target_can_be_null.rb
730
+ - db/fix/old_migrations/050_date_in_links.rb
731
+ - db/fix/old_migrations/051_add_exif_tags_to_images.rb
732
+ - db/fix/old_migrations/20090825201159_insert_zero_link.rb
733
+ - db/fix/old_migrations/20090825201200_merge_bricks_migrations_with_std_migrations.rb
734
+ - db/fix/old_migrations/20090927125912_allow_null_in_text_fields.rb
735
+ - db/fix/old_migrations/20090928133440_no_more_private_nodes.rb
736
+ - db/fix/old_migrations/20090928143754_version_status_change.rb
737
+ - db/fix/old_migrations/20091001084025_change_status_values_for_comments.rb
738
+ - db/fix/old_migrations/20091009084057_add_vhash_in_node.rb
739
+ - db/fix/old_migrations/20091014130833_fix_template_title.rb
740
+ - db/fix/old_migrations/20091014183726_merge_participation_into_users.rb
741
+ - db/fix/old_migrations/20091018200734_add_popup_info_to_image_format.rb
742
+ - db/fix/old_migrations/20091026161708_add_persistence_token.rb
743
+ - db/fix/old_migrations/20091101184952_add_session_table.rb
744
+ - db/fix/old_migrations/20091123175137_add_single_access_token.rb
745
+ - db/fix/old_migrations/20100125062254_add_dynamo_to_version.rb
746
+ - db/fix/old_migrations/20100201133242_remove_default_status_on_version.rb
747
+ - db/fix/old_migrations/20100208194210_create_attachments.rb
748
+ - db/fix/old_migrations/20100210112319_change_dynamo_to_property.rb
749
+ - db/fix/old_migrations/20100320145726_transform_template_contents_into_index.rb
750
+ - db/fix/old_migrations/20100328125634_change_skin_name_to_id.rb
751
+ - db/fix/old_migrations/20100417061257_add_properties_to_sites.rb
752
+ - db/fix/old_migrations/20100419163149_rename_name_to_node_name.rb
753
+ - db/fix/old_migrations/20100422091606_change_v_class_table_into_roles.rb
754
+ - db/fix/old_migrations/20100422094048_node_habtm_roles.rb
755
+ - db/fix/old_migrations/20100422115935_create_columns.rb
756
+ - db/fix/old_migrations/20100513181529_add_site_id_to_columns.rb
757
+ - db/fix/old_migrations/20100519091711_add_index_definition_to_columns.rb
758
+ - db/fix/old_migrations/20100519091940_create_idx_nodes_string.rb
759
+ - db/fix/old_migrations/20100519232432_create_idx_nodes_ml_string.rb
760
+ - db/fix/old_migrations/20100525113858_add_porperties_to_users.rb
761
+ - db/fix/old_migrations/20100527130937_change_column_index_to_string.rb
762
+ - db/fix/old_migrations/20100531135128_add_fulltext_builder_fields.rb
763
+ - db/fix/old_migrations/20100915062903_add_api_group_id_to_site.rb
764
+ - db/fix/old_migrations/20100923154807_remove_base_contact.rb
765
+ - db/fix/old_migrations/20100926192223_remove_su_user.rb
766
+ - db/fix/old_migrations/20100927141658_add_eval_attributes_to_v_class.rb
767
+ - db/fix/old_migrations/20100928185257_add_obvious_idx.rb
768
+ - db/fix/old_migrations/20100929143111_remove_node_name.rb
769
+ - db/fix/old_migrations/20101006090454_store_properties_in_long_text.rb
770
+ - db/fix/old_migrations/20101014185753_remove_user_prototype_id.rb
771
+ - db/fix/old_migrations/20101101084318_create_scope_index.rb
772
+ - db/fix/old_migrations/20101109074232_create_idx_nodes_tables.rb
773
+ - db/fix/old_migrations/20101110184235_add_role_update_to_site.rb
774
+ - db/fix/old_migrations/20101116103920_change_scope_index.rb
775
+ - db/fix/old_migrations/20101123125822_add_integer_idx.rb
776
+ - db/fix/old_migrations/20101130134522_add_index_field.rb
777
+ - db/fix/old_migrations/20101213133816_add_group_to_relation.rb
633
778
  - db/init/base/help.en.zml
634
779
  - db/init/base/help.fr.zml
635
780
  - db/init/base/skins.zml
@@ -646,94 +791,6 @@ files:
646
791
  - db/init/base/skins/default/favicon.png
647
792
  - db/init/base/skins/default/notes.zafu
648
793
  - db/init/base/skins/default/style.css
649
- - db/migrate/001_create_base.rb
650
- - db/migrate/002_add_time_zone_to_users.rb
651
- - db/migrate/003_add_custom_base_flag.rb
652
- - db/migrate/004_rename_template_skin.rb
653
- - db/migrate/005_create_cached_pages.rb
654
- - db/migrate/006_create_sites.rb
655
- - db/migrate/007_replace_id_by_zip.rb
656
- - db/migrate/008_user_status.rb
657
- - db/migrate/009_fulltext.rb
658
- - db/migrate/010_create_template_content.rb
659
- - db/migrate/011_project_to_section.rb
660
- - db/migrate/012_add_project_id.rb
661
- - db/migrate/013_remove_defaults.rb
662
- - db/migrate/014_add_sort_field.rb
663
- - db/migrate/015_add_dyn_attributes.rb
664
- - db/migrate/016_remove_translations.rb
665
- - db/migrate/017_rename_authorize.rb
666
- - db/migrate/018_add_auth_option.rb
667
- - db/migrate/019_remove_user_status.rb
668
- - db/migrate/020_create_participation.rb
669
- - db/migrate/021_create_relations.rb
670
- - db/migrate/022_create_virtual_classes.rb
671
- - db/migrate/023_ip_on_anonymous_comment.rb
672
- - db/migrate/024_correct_vclass_kpath.rb
673
- - db/migrate/025_move_tag_into_vclass.rb
674
- - db/migrate/026_rename_templates.rb
675
- - db/migrate/027_add_country_to_contacts.rb
676
- - db/migrate/028_change_size_of_conten_type_field.rb
677
- - db/migrate/029_create_data_entries.rb
678
- - db/migrate/030_redit_auto_publish_site_settings.rb
679
- - db/migrate/031_create_iformats.rb
680
- - db/migrate/032_caches_context_as_hash.rb
681
- - db/migrate/033_documents_kpath_change.rb
682
- - db/migrate/034_change_file_storage.rb
683
- - db/migrate/035_add_status_to_link.rb
684
- - db/migrate/036_add_flag_fields_on_nodes.rb
685
- - db/migrate/037_add_auto_create_discussion_to_v_class.rb
686
- - db/migrate/038_create_site_attributes.rb
687
- - db/migrate/039_default_position.rb
688
- - db/migrate/040_second_value_for_data_entry.rb
689
- - db/migrate/041_add_attributes_to_v_class.rb
690
- - db/migrate/042_fix_position_should_be_float.rb
691
- - db/migrate/043_move_user_lang_into_participation.rb
692
- - db/migrate/044_remove_monolingual_site_option.rb
693
- - db/migrate/045_avoid_star_in_templates.rb
694
- - db/migrate/046_fix_zazen_image_tag.rb
695
- - db/migrate/047_change_default_link_id_to_zero.rb
696
- - db/migrate/048_link_source_target_can_be_null.rb
697
- - db/migrate/049_fix_publish_from_is_null.rb
698
- - db/migrate/050_date_in_links.rb
699
- - db/migrate/051_add_exif_tags_to_images.rb
700
- - db/migrate/20090825201159_insert_zero_link.rb
701
- - db/migrate/20090825201200_merge_bricks_migrations_with_std_migrations.rb
702
- - db/migrate/20090924141459_zafu_fix_sept09.rb
703
- - db/migrate/20090927125912_allow_null_in_text_fields.rb
704
- - db/migrate/20090928133440_no_more_private_nodes.rb
705
- - db/migrate/20090928143754_version_status_change.rb
706
- - db/migrate/20091001084025_change_status_values_for_comments.rb
707
- - db/migrate/20091009084057_add_vhash_in_node.rb
708
- - db/migrate/20091013100351_rename_publish_group_to_drive_group.rb
709
- - db/migrate/20091014130833_fix_template_title.rb
710
- - db/migrate/20091014183726_merge_participation_into_users.rb
711
- - db/migrate/20091018200734_add_popup_info_to_image_format.rb
712
- - db/migrate/20091026161708_add_persistence_token.rb
713
- - db/migrate/20091101184952_add_session_table.rb
714
- - db/migrate/20091123175137_add_single_access_token.rb
715
- - db/migrate/20091124161608_rebuild_fullpath.rb
716
- - db/migrate/20100115134729_rebuild_fullpath_after_fix.rb
717
- - db/migrate/20100125062254_add_dynamo_to_version.rb
718
- - db/migrate/20100201133242_remove_default_status_on_version.rb
719
- - db/migrate/20100208194210_create_attachments.rb
720
- - db/migrate/20100210112319_change_dynamo_to_property.rb
721
- - db/migrate/20100320145726_transform_template_contents_into_index.rb
722
- - db/migrate/20100328125634_change_skin_name_to_id.rb
723
- - db/migrate/20100417061257_add_properties_to_sites.rb
724
- - db/migrate/20100419163149_rename_name_to_node_name.rb
725
- - db/migrate/20100422091606_change_v_class_table_into_roles.rb
726
- - db/migrate/20100422094048_node_habtm_roles.rb
727
- - db/migrate/20100422115935_create_columns.rb
728
- - db/migrate/20100513181529_add_site_id_to_columns.rb
729
- - db/migrate/20100519091711_add_index_definition_to_columns.rb
730
- - db/migrate/20100519091940_create_idx_nodes_string.rb
731
- - db/migrate/20100519232432_create_idx_nodes_ml_string.rb
732
- - db/migrate/20100525113858_add_porperties_to_users.rb
733
- - db/migrate/20100526090140_renamed_contact_model_to_base_contact.rb
734
- - db/migrate/20100527130937_change_column_index_to_string.rb
735
- - db/migrate/20100531135128_add_fulltext_builder_fields.rb
736
- - db/migrate/20100915062903_add_api_group_id_to_site.rb
737
794
  - doc/README_FOR_APP
738
795
  - doc/fixtures.graffle
739
796
  - doc/fixtures.pdf
@@ -770,7 +827,6 @@ files:
770
827
  - lib/tasks/zena.rake
771
828
  - lib/tasks/zena.rb
772
829
  - lib/upload_progress_server.rb
773
- - lib/version_off.rb
774
830
  - lib/zazen_parser.rb
775
831
  - lib/zena.rb
776
832
  - lib/zena/acts/enrollable.rb
@@ -788,6 +844,10 @@ files:
788
844
  - lib/zena/core_ext/string.rb
789
845
  - lib/zena/crypto_provider/initial.rb
790
846
  - lib/zena/db.rb
847
+ - lib/zena/db_helper/abstract_db.rb
848
+ - lib/zena/db_helper/mysql.rb
849
+ - lib/zena/db_helper/postgresql.rb
850
+ - lib/zena/db_helper/sqlite3.rb
791
851
  - lib/zena/deploy.rb
792
852
  - lib/zena/deploy/awstats.conf.rhtml
793
853
  - lib/zena/deploy/database.rhtml
@@ -825,6 +885,7 @@ files:
825
885
  - lib/zena/use.rb
826
886
  - lib/zena/use/action.rb
827
887
  - lib/zena/use/ajax.rb
888
+ - lib/zena/use/ancestry.rb
828
889
  - lib/zena/use/authlogic.rb
829
890
  - lib/zena/use/calendar.rb
830
891
  - lib/zena/use/conditional.rb
@@ -833,6 +894,7 @@ files:
833
894
  - lib/zena/use/display.rb
834
895
  - lib/zena/use/dyn_attributes.rb
835
896
  - lib/zena/use/error_rendering.rb
897
+ - lib/zena/use/field_index.rb
836
898
  - lib/zena/use/fixtures.rb
837
899
  - lib/zena/use/forms.rb
838
900
  - lib/zena/use/fulltext.rb
@@ -840,9 +902,11 @@ files:
840
902
  - lib/zena/use/html_tags.rb
841
903
  - lib/zena/use/i18n.rb
842
904
  - lib/zena/use/image_builder.rb
905
+ - lib/zena/use/kpath.rb
843
906
  - lib/zena/use/ml_index.rb
844
907
  - lib/zena/use/nested_attributes_alias.rb
845
- - lib/zena/use/node_name.rb
908
+ - lib/zena/use/node_context.rb
909
+ - lib/zena/use/prop_eval.rb
846
910
  - lib/zena/use/query_builder.rb
847
911
  - lib/zena/use/query_comment.rb
848
912
  - lib/zena/use/query_node.rb
@@ -850,6 +914,7 @@ files:
850
914
  - lib/zena/use/refactor.rb
851
915
  - lib/zena/use/relations.rb
852
916
  - lib/zena/use/rendering.rb
917
+ - lib/zena/use/scope_index.rb
853
918
  - lib/zena/use/search.rb
854
919
  - lib/zena/use/test_helper.rb
855
920
  - lib/zena/use/upload.rb
@@ -874,6 +939,8 @@ files:
874
939
  - locale/fr/zena.mo
875
940
  - locale/fr/zena.po
876
941
  - locale/zena.pot
942
+ - misc/zena
943
+ - misc/zena_init
877
944
  - old_zafu/action.rb
878
945
  - old_zafu/ajax.rb
879
946
  - old_zafu/attributes.rb
@@ -1313,7 +1380,7 @@ files:
1313
1380
  - public/images/error_delete.png
1314
1381
  - public/images/error_go.png
1315
1382
  - public/images/exclamation.png
1316
- - public/images/ext/basecontact.png
1383
+ - public/images/ext/contact.png
1317
1384
  - public/images/ext/doc.png
1318
1385
  - public/images/ext/doc_tiny.png
1319
1386
  - public/images/ext/jpg.png
@@ -2089,7 +2156,9 @@ files:
2089
2156
  - test/integration/query_node/dates.yml
2090
2157
  - test/integration/query_node/errors.yml
2091
2158
  - test/integration/query_node/filters.yml
2092
- - test/integration/query_node/properties.yml
2159
+ - test/integration/query_node/idx_fields.yml
2160
+ - test/integration/query_node/idx_key_value.yml
2161
+ - test/integration/query_node/idx_scope.yml
2093
2162
  - test/integration/query_node/relations.yml
2094
2163
  - test/integration/query_node_test.rb
2095
2164
  - test/integration/xml_api_test.rb
@@ -2109,8 +2178,10 @@ files:
2109
2178
  - test/integration/zafu_compiler/eval.yml
2110
2179
  - test/integration/zafu_compiler/forms.yml
2111
2180
  - test/integration/zafu_compiler/i18n.yml
2181
+ - test/integration/zafu_compiler/idx_scope.yml
2112
2182
  - test/integration/zafu_compiler/later.yml
2113
2183
  - test/integration/zafu_compiler/off/off.yml
2184
+ - test/integration/zafu_compiler/query.yml
2114
2185
  - test/integration/zafu_compiler/recursion.yml
2115
2186
  - test/integration/zafu_compiler/relations.yml
2116
2187
  - test/integration/zafu_compiler/roles.yml
@@ -2139,6 +2210,7 @@ files:
2139
2210
  - test/sites/ocean/groups.yml
2140
2211
  - test/sites/ocean/iformats.yml
2141
2212
  - test/sites/ocean/nodes.yml
2213
+ - test/sites/ocean/roles.yml
2142
2214
  - test/sites/ocean/sites.yml
2143
2215
  - test/sites/ocean/users.yml
2144
2216
  - test/sites/ocean/versions.yml
@@ -2147,6 +2219,7 @@ files:
2147
2219
  - test/sites/zena/data_entries.yml
2148
2220
  - test/sites/zena/discussions.yml
2149
2221
  - test/sites/zena/groups.yml
2222
+ - test/sites/zena/idx_projects.yml
2150
2223
  - test/sites/zena/iformats.yml
2151
2224
  - test/sites/zena/links.yml
2152
2225
  - test/sites/zena/nodes.yml
@@ -2159,7 +2232,6 @@ files:
2159
2232
  - test/test_zena.rb
2160
2233
  - test/unit/after_commit_test.rb
2161
2234
  - test/unit/attachment_test.rb
2162
- - test/unit/base_contact_test.rb
2163
2235
  - test/unit/cache_test.rb
2164
2236
  - test/unit/cached_page_test.rb
2165
2237
  - test/unit/column_test.rb
@@ -2178,7 +2250,6 @@ files:
2178
2250
  - test/unit/link_test.rb
2179
2251
  - test/unit/multi_version_test.rb
2180
2252
  - test/unit/multiversion_test.rb
2181
- - test/unit/node_name_test.rb
2182
2253
  - test/unit/node_test.rb
2183
2254
  - test/unit/note_test.rb
2184
2255
  - test/unit/page_test.rb
@@ -2212,6 +2283,7 @@ files:
2212
2283
  - test/unit/zena/parser_test.rb
2213
2284
  - test/unit/zena/unit/test_case_test.rb
2214
2285
  - test/unit/zena/use/action_test.rb
2286
+ - test/unit/zena/use/ancestry_test.rb
2215
2287
  - test/unit/zena/use/calendar_test.rb
2216
2288
  - test/unit/zena/use/dates_model_methods_test.rb
2217
2289
  - test/unit/zena/use/dates_string_methods_test.rb
@@ -2220,12 +2292,15 @@ files:
2220
2292
  - test/unit/zena/use/fulltext_test.rb
2221
2293
  - test/unit/zena/use/html_tags_test.rb
2222
2294
  - test/unit/zena/use/i18n_test.rb
2295
+ - test/unit/zena/use/kpath_test.rb
2223
2296
  - test/unit/zena/use/ml_index_test.rb
2224
2297
  - test/unit/zena/use/nested_attributes_alias_model_test.rb
2225
2298
  - test/unit/zena/use/nested_attributes_alias_view_test.rb
2299
+ - test/unit/zena/use/prop_eval_test.rb
2226
2300
  - test/unit/zena/use/query_node_test.rb
2227
2301
  - test/unit/zena/use/refactor_test.rb
2228
2302
  - test/unit/zena/use/rendering_test.rb
2303
+ - test/unit/zena/use/scope_index_test.rb
2229
2304
  - test/unit/zena/use/upload_test.rb
2230
2305
  - test/unit/zena/use/urls_test.rb
2231
2306
  - test/unit/zena/use/version_hash_test.rb
@@ -2370,16 +2445,20 @@ rdoc_options:
2370
2445
  require_paths:
2371
2446
  - lib
2372
2447
  required_ruby_version: !ruby/object:Gem::Requirement
2448
+ none: false
2373
2449
  requirements:
2374
2450
  - - ">="
2375
2451
  - !ruby/object:Gem::Version
2452
+ hash: 3
2376
2453
  segments:
2377
2454
  - 0
2378
2455
  version: "0"
2379
2456
  required_rubygems_version: !ruby/object:Gem::Requirement
2457
+ none: false
2380
2458
  requirements:
2381
2459
  - - ">"
2382
2460
  - !ruby/object:Gem::Version
2461
+ hash: 25
2383
2462
  segments:
2384
2463
  - 1
2385
2464
  - 3
@@ -2388,7 +2467,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2388
2467
  requirements: []
2389
2468
 
2390
2469
  rubyforge_project: zena
2391
- rubygems_version: 1.3.6
2470
+ rubygems_version: 1.3.7
2392
2471
  signing_key:
2393
2472
  specification_version: 3
2394
2473
  summary: CMS with super natural powers, based on Ruby on Rails
@@ -2426,7 +2505,6 @@ test_files:
2426
2505
  - test/test_zena.rb
2427
2506
  - test/unit/after_commit_test.rb
2428
2507
  - test/unit/attachment_test.rb
2429
- - test/unit/base_contact_test.rb
2430
2508
  - test/unit/cache_test.rb
2431
2509
  - test/unit/cached_page_test.rb
2432
2510
  - test/unit/column_test.rb
@@ -2445,7 +2523,6 @@ test_files:
2445
2523
  - test/unit/link_test.rb
2446
2524
  - test/unit/multi_version_test.rb
2447
2525
  - test/unit/multiversion_test.rb
2448
- - test/unit/node_name_test.rb
2449
2526
  - test/unit/node_test.rb
2450
2527
  - test/unit/note_test.rb
2451
2528
  - test/unit/page_test.rb
@@ -2474,6 +2551,7 @@ test_files:
2474
2551
  - test/unit/zena/parser_test.rb
2475
2552
  - test/unit/zena/unit/test_case_test.rb
2476
2553
  - test/unit/zena/use/action_test.rb
2554
+ - test/unit/zena/use/ancestry_test.rb
2477
2555
  - test/unit/zena/use/calendar_test.rb
2478
2556
  - test/unit/zena/use/dates_model_methods_test.rb
2479
2557
  - test/unit/zena/use/dates_string_methods_test.rb
@@ -2482,12 +2560,15 @@ test_files:
2482
2560
  - test/unit/zena/use/fulltext_test.rb
2483
2561
  - test/unit/zena/use/html_tags_test.rb
2484
2562
  - test/unit/zena/use/i18n_test.rb
2563
+ - test/unit/zena/use/kpath_test.rb
2485
2564
  - test/unit/zena/use/ml_index_test.rb
2486
2565
  - test/unit/zena/use/nested_attributes_alias_model_test.rb
2487
2566
  - test/unit/zena/use/nested_attributes_alias_view_test.rb
2567
+ - test/unit/zena/use/prop_eval_test.rb
2488
2568
  - test/unit/zena/use/query_node_test.rb
2489
2569
  - test/unit/zena/use/refactor_test.rb
2490
2570
  - test/unit/zena/use/rendering_test.rb
2571
+ - test/unit/zena/use/scope_index_test.rb
2491
2572
  - test/unit/zena/use/upload_test.rb
2492
2573
  - test/unit/zena/use/urls_test.rb
2493
2574
  - test/unit/zena/use/version_hash_test.rb