zen 0.3 → 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (373) hide show
  1. data/.gems +3 -2
  2. data/.rvmrc +1 -1
  3. data/.travis.yml +5 -0
  4. data/.yardopts +2 -1
  5. data/LICENSE +1 -1
  6. data/README.md +28 -24
  7. data/Rakefile +5 -2
  8. data/guide/asset_management.md +6 -6
  9. data/guide/autosaving_forms.md +42 -0
  10. data/guide/changelog.md +41 -0
  11. data/guide/faq.md +49 -0
  12. data/guide/getting_started.md +24 -13
  13. data/guide/hacking.md +40 -9
  14. data/guide/images/categories/categories.png +0 -0
  15. data/guide/images/categories/category_groups.png +0 -0
  16. data/guide/images/categories/new_category.png +0 -0
  17. data/guide/images/categories/new_category_group.png +0 -0
  18. data/guide/images/comments/comments.png +0 -0
  19. data/guide/images/comments/edit_comment.png +0 -0
  20. data/guide/images/custom_fields/custom_field_groups.png +0 -0
  21. data/guide/images/custom_fields/custom_field_types.png +0 -0
  22. data/guide/images/custom_fields/custom_fields.png +0 -0
  23. data/guide/images/custom_fields/edit_custom_field_general.png +0 -0
  24. data/guide/images/custom_fields/edit_custom_field_group.png +0 -0
  25. data/guide/images/custom_fields/edit_custom_field_settings.png +0 -0
  26. data/guide/images/custom_fields/edit_custom_field_type.png +0 -0
  27. data/guide/images/dashboard/added.png +0 -0
  28. data/guide/images/dashboard/columns.png +0 -0
  29. data/guide/images/dashboard/dashboard.png +0 -0
  30. data/guide/images/dashboard/options.png +0 -0
  31. data/guide/images/menus/edit_menu.png +0 -0
  32. data/guide/images/menus/edit_menu_item.png +0 -0
  33. data/guide/images/menus/menu_item_hierarchy.png +0 -0
  34. data/guide/images/menus/menu_items.png +0 -0
  35. data/guide/images/menus/menus.png +0 -0
  36. data/guide/images/sections/edit_entry.png +0 -0
  37. data/guide/images/sections/edit_entry_categories.png +0 -0
  38. data/guide/images/sections/edit_entry_general.png +0 -0
  39. data/guide/images/sections/edit_entry_meta.png +0 -0
  40. data/guide/images/sections/edit_section_comments.png +0 -0
  41. data/guide/images/sections/edit_section_general.png +0 -0
  42. data/guide/images/sections/edit_section_groups.png +0 -0
  43. data/guide/images/sections/entries.png +0 -0
  44. data/guide/images/sections/sections.png +0 -0
  45. data/guide/images/settings/overview_general.png +0 -0
  46. data/guide/images/settings/overview_security.png +0 -0
  47. data/guide/images/settings/overview_user.png +0 -0
  48. data/guide/images/users/edit_user.png +0 -0
  49. data/guide/images/users/edit_user_group.png +0 -0
  50. data/guide/images/users/edit_user_group_permissions.png +0 -0
  51. data/guide/images/users/edit_user_permissions.png +0 -0
  52. data/guide/images/users/overview.png +0 -0
  53. data/guide/images/users/user_groups_overview.png +0 -0
  54. data/guide/installation.md +7 -1
  55. data/guide/javascript.md +36 -273
  56. data/guide/javascript/zen_autosave.md +26 -0
  57. data/guide/javascript/zen_editor.md +83 -0
  58. data/guide/javascript/zen_hash.md +34 -0
  59. data/guide/javascript/zen_htmltable.md +78 -0
  60. data/guide/javascript/zen_tabs.md +44 -0
  61. data/guide/javascript/zen_window.md +49 -0
  62. data/guide/zen_compared.md +201 -0
  63. data/lib/vendor/sequel_sluggable.rb +1 -1
  64. data/lib/zen.rb +64 -44
  65. data/lib/zen/asset_groups.rb +10 -10
  66. data/lib/zen/bin/create.rb +8 -1
  67. data/lib/zen/helper/breadcrumb.rb +4 -12
  68. data/lib/zen/helper/controller.rb +209 -6
  69. data/lib/zen/helper/locale.rb +19 -0
  70. data/lib/zen/helper/search.rb +1 -1
  71. data/lib/zen/helper/stacked_aspect.rb +7 -43
  72. data/lib/zen/helper/theme.rb +3 -3
  73. data/lib/zen/language.rb +5 -10
  74. data/lib/zen/language/translation.rb +1 -1
  75. data/lib/zen/layout/admin.xhtml +41 -25
  76. data/lib/zen/layout/login.xhtml +8 -3
  77. data/lib/zen/migrator.rb +54 -0
  78. data/lib/zen/model/helper.rb +20 -1
  79. data/lib/zen/model/init.rb +2 -0
  80. data/lib/zen/model/plugin/events.rb +158 -0
  81. data/lib/zen/package.rb +32 -6
  82. data/lib/zen/package/all.rb +1 -0
  83. data/lib/zen/package/categories/lib/categories.rb +6 -6
  84. data/lib/zen/package/categories/lib/categories/controller/categories.rb +20 -83
  85. data/lib/zen/package/categories/lib/categories/controller/category_groups.rb +23 -74
  86. data/lib/zen/package/categories/lib/categories/model/category.rb +58 -1
  87. data/lib/zen/package/categories/lib/categories/model/category_group.rb +62 -2
  88. data/lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml +46 -40
  89. data/lib/zen/package/categories/lib/categories/view/admin/categories/index.xhtml +74 -75
  90. data/lib/zen/package/categories/lib/categories/view/admin/category-groups/form.xhtml +27 -24
  91. data/lib/zen/package/categories/lib/categories/view/admin/category-groups/index.xhtml +83 -86
  92. data/lib/zen/package/comments/lib/comments.rb +5 -5
  93. data/lib/zen/package/comments/lib/comments/controller/comments.rb +12 -64
  94. data/lib/zen/package/comments/lib/comments/controller/comments_form.rb +4 -22
  95. data/lib/zen/package/comments/lib/comments/model/comment.rb +65 -16
  96. data/lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml +52 -49
  97. data/lib/zen/package/comments/lib/comments/view/admin/comments/index.xhtml +52 -60
  98. data/lib/zen/package/comments/migrations/1308774099_comment_status.rb +1 -1
  99. data/lib/zen/package/custom_fields/lib/custom_fields.rb +11 -13
  100. data/lib/zen/package/custom_fields/lib/custom_fields/blue_form_parameters.rb +29 -13
  101. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_groups.rb +21 -50
  102. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_types.rb +27 -71
  103. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_fields.rb +25 -78
  104. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field.rb +48 -1
  105. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_group.rb +35 -1
  106. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_method.rb +3 -0
  107. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_type.rb +40 -1
  108. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_value.rb +1 -0
  109. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/form.xhtml +29 -26
  110. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/index.xhtml +96 -100
  111. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/form.xhtml +56 -53
  112. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/index.xhtml +82 -82
  113. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/form.xhtml +88 -85
  114. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/index.xhtml +83 -80
  115. data/lib/zen/package/dashboard/lib/dashboard.rb +28 -0
  116. data/lib/zen/package/dashboard/lib/dashboard/controller/dashboard.rb +154 -0
  117. data/lib/zen/package/dashboard/lib/dashboard/language/en/dashboard.rb +35 -0
  118. data/lib/zen/package/dashboard/lib/dashboard/language/nl/dashboard.rb +36 -0
  119. data/lib/zen/package/dashboard/lib/dashboard/model/widget.rb +45 -0
  120. data/lib/zen/package/dashboard/lib/dashboard/public/admin/dashboard/css/dashboard.css +74 -0
  121. data/lib/zen/package/dashboard/lib/dashboard/public/admin/dashboard/js/dashboard.js +102 -0
  122. data/lib/zen/package/dashboard/lib/dashboard/view/admin/index.xhtml +29 -0
  123. data/lib/zen/package/dashboard/lib/dashboard/view/admin/widget/welcome.xhtml +28 -0
  124. data/lib/zen/package/dashboard/lib/dashboard/widget.rb +292 -0
  125. data/lib/zen/package/dashboard/lib/dashboard/widget/welcome.rb +9 -0
  126. data/lib/zen/package/dashboard/migrations/1326411254_create_schema.rb +28 -0
  127. data/lib/zen/package/extensions/lib/extensions.rb +5 -5
  128. data/lib/zen/package/extensions/lib/extensions/view/admin/extensions/index.xhtml +72 -67
  129. data/lib/zen/package/menu.rb +6 -1
  130. data/lib/zen/package/menus/lib/menus.rb +6 -4
  131. data/lib/zen/package/menus/lib/menus/controller/menu_items.rb +69 -104
  132. data/lib/zen/package/menus/lib/menus/controller/menus.rb +19 -76
  133. data/lib/zen/package/menus/lib/menus/helper/menu.rb +54 -38
  134. data/lib/zen/package/menus/lib/menus/helper/menu_frontend.rb +7 -13
  135. data/lib/zen/package/menus/lib/menus/model/menu.rb +158 -2
  136. data/lib/zen/package/menus/lib/menus/model/menu_item.rb +73 -10
  137. data/lib/zen/package/menus/lib/menus/public/admin/menus/css/menus.css +47 -0
  138. data/lib/zen/package/menus/lib/menus/public/admin/menus/js/lib/nested_sortables.js +549 -0
  139. data/lib/zen/package/menus/lib/menus/public/admin/menus/js/menu_items.js +38 -0
  140. data/lib/zen/package/menus/lib/menus/view/admin/menu-items/form.xhtml +51 -61
  141. data/lib/zen/package/menus/lib/menus/view/admin/menu-items/index.xhtml +18 -81
  142. data/lib/zen/package/menus/lib/menus/view/admin/menus/form.xhtml +49 -44
  143. data/lib/zen/package/menus/lib/menus/view/admin/menus/index.xhtml +81 -83
  144. data/lib/zen/package/sections/lib/sections.rb +9 -4
  145. data/lib/zen/package/sections/lib/sections/controller/section_entries.rb +80 -132
  146. data/lib/zen/package/sections/lib/sections/controller/sections.rb +27 -73
  147. data/lib/zen/package/sections/lib/sections/helper/section.rb +44 -1
  148. data/lib/zen/package/sections/lib/sections/language/en/section_entries.rb +2 -0
  149. data/lib/zen/package/sections/lib/sections/language/nl/section_entries.rb +2 -0
  150. data/lib/zen/package/sections/lib/sections/model/section.rb +48 -1
  151. data/lib/zen/package/sections/lib/sections/model/section_entry.rb +55 -5
  152. data/lib/zen/package/sections/lib/sections/model/section_entry_status.rb +2 -0
  153. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/form.xhtml +76 -67
  154. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml +74 -79
  155. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/recent_entries.xhtml +45 -0
  156. data/lib/zen/package/sections/lib/sections/view/admin/sections/form.xhtml +119 -0
  157. data/lib/zen/package/sections/lib/sections/view/admin/sections/index.xhtml +96 -0
  158. data/lib/zen/package/sections/lib/sections/widget/recent_entries.rb +14 -0
  159. data/lib/zen/package/sections/migrations/1308813320_section_entry_statuses.rb +1 -1
  160. data/lib/zen/package/settings/lib/settings.rb +14 -5
  161. data/lib/zen/package/settings/lib/settings/controller/settings.rb +4 -4
  162. data/lib/zen/package/settings/lib/settings/language/nl/settings.rb +1 -1
  163. data/lib/zen/package/settings/lib/settings/setting.rb +1 -1
  164. data/lib/zen/package/settings/lib/settings/view/admin/settings/index.xhtml +21 -17
  165. data/lib/zen/package/users/lib/users.rb +18 -19
  166. data/lib/zen/package/users/lib/users/controller/user_groups.rb +23 -50
  167. data/lib/zen/package/users/lib/users/controller/users.rb +57 -89
  168. data/lib/zen/package/users/lib/users/helper/acl.rb +1 -0
  169. data/lib/zen/package/users/lib/users/language/en/user_groups.rb +1 -0
  170. data/lib/zen/package/users/lib/users/language/en/users.rb +2 -1
  171. data/lib/zen/package/users/lib/users/language/nl/user_groups.rb +1 -0
  172. data/lib/zen/package/users/lib/users/language/nl/users.rb +2 -1
  173. data/lib/zen/package/users/lib/users/model/permission.rb +13 -0
  174. data/lib/zen/package/users/lib/users/model/user.rb +57 -4
  175. data/lib/zen/package/users/lib/users/model/user_group.rb +37 -3
  176. data/lib/zen/package/users/lib/users/model/user_status.rb +4 -0
  177. data/lib/zen/package/users/lib/users/public/admin/{css/users/permissions.css → users/css/users.css} +0 -0
  178. data/lib/zen/package/users/lib/users/public/admin/{js/users/permissions.js → users/js/users.js} +4 -2
  179. data/lib/zen/package/users/lib/users/view/admin/user-groups/form.xhtml +51 -47
  180. data/lib/zen/package/users/lib/users/view/admin/user-groups/index.xhtml +62 -69
  181. data/lib/zen/package/users/lib/users/view/admin/users/form.xhtml +92 -82
  182. data/lib/zen/package/users/lib/users/view/admin/users/index.xhtml +68 -66
  183. data/lib/zen/package/users/lib/users/view/admin/users/login.xhtml +36 -28
  184. data/lib/zen/package/users/lib/users/view/admin/users/permissions.xhtml +5 -7
  185. data/lib/zen/package/users/lib/users/view/admin/users/register.xhtml +47 -41
  186. data/lib/zen/package/users/migrations/1320272365_status_ids.rb +1 -1
  187. data/lib/zen/public/admin/{js/vendor/mootools → mootools/js}/core.js +113 -108
  188. data/lib/zen/public/admin/{js/vendor/mootools → mootools/js}/more.js +99 -6
  189. data/lib/zen/public/admin/zen/css/buttons.css +106 -0
  190. data/lib/zen/public/admin/{css/zen → zen/css}/datepicker.css +45 -30
  191. data/lib/zen/public/admin/zen/css/editor.css +69 -0
  192. data/lib/zen/public/admin/{css/zen → zen/css}/forms.css +28 -30
  193. data/lib/zen/public/admin/zen/css/general.css +183 -0
  194. data/lib/zen/public/admin/zen/css/layout.css +224 -0
  195. data/lib/zen/public/admin/zen/css/messages.css +34 -0
  196. data/lib/zen/public/admin/{css/zen → zen/css}/reset.css +4 -9
  197. data/lib/zen/public/admin/zen/css/tables.css +57 -0
  198. data/lib/zen/public/admin/zen/css/tabs.css +84 -0
  199. data/lib/zen/public/admin/zen/css/window.css +74 -0
  200. data/lib/zen/public/admin/{images/zen → zen/images}/icons/asc.png +0 -0
  201. data/lib/zen/public/admin/{images/zen → zen/images}/icons/bold.png +0 -0
  202. data/lib/zen/public/admin/zen/images/icons/box.png +0 -0
  203. data/lib/zen/public/admin/zen/images/icons/categories.png +0 -0
  204. data/lib/zen/public/admin/{images/zen → zen/images}/icons/close.png +0 -0
  205. data/lib/zen/public/admin/zen/images/icons/comment.png +0 -0
  206. data/lib/zen/public/admin/{images/zen → zen/images}/icons/desc.png +0 -0
  207. data/lib/zen/public/admin/{images/zen → zen/images}/icons/edit.png +0 -0
  208. data/lib/zen/public/admin/{images/zen → zen/images}/icons/error.png +0 -0
  209. data/lib/zen/public/admin/zen/images/icons/external.png +0 -0
  210. data/lib/zen/public/admin/zen/images/icons/globe.png +0 -0
  211. data/lib/zen/public/admin/{images/zen → zen/images}/icons/italic.png +0 -0
  212. data/lib/zen/public/admin/{images/zen → zen/images}/icons/link.png +0 -0
  213. data/lib/zen/public/admin/zen/images/icons/lock.png +0 -0
  214. data/lib/zen/public/admin/{images/zen → zen/images}/icons/ol.png +0 -0
  215. data/lib/zen/public/admin/zen/images/icons/pages.png +0 -0
  216. data/lib/zen/public/admin/{images/zen → zen/images}/icons/preview.png +0 -0
  217. data/lib/zen/public/admin/zen/images/icons/relation.png +0 -0
  218. data/lib/zen/public/admin/zen/images/icons/settings.png +0 -0
  219. data/lib/zen/public/admin/zen/images/icons/template.png +0 -0
  220. data/lib/zen/public/admin/{images/zen → zen/images}/icons/ul.png +0 -0
  221. data/lib/zen/public/admin/{images/zen → zen/images}/icons/user.png +0 -0
  222. data/lib/zen/public/admin/zen/images/icons/user_group.png +0 -0
  223. data/lib/zen/public/admin/{js/zen → zen/js}/index.js +21 -9
  224. data/lib/zen/public/admin/zen/js/lib/autosave.js +185 -0
  225. data/lib/zen/public/admin/zen/js/lib/base.js +60 -0
  226. data/lib/zen/public/admin/{js/vendor → zen/js/lib}/datepicker.js +52 -28
  227. data/lib/zen/public/admin/{js/zen → zen/js}/lib/editor.js +23 -34
  228. data/lib/zen/public/admin/{js/zen → zen/js}/lib/editor/markdown.js +5 -1
  229. data/lib/zen/public/admin/{js/zen → zen/js}/lib/editor/textile.js +4 -0
  230. data/lib/zen/public/admin/zen/js/lib/hash.js +218 -0
  231. data/lib/zen/public/admin/{js/zen → zen/js}/lib/html_table.js +5 -0
  232. data/lib/zen/public/admin/zen/js/lib/tabs.js +194 -0
  233. data/lib/zen/public/admin/{js/zen → zen/js}/lib/window.js +54 -29
  234. data/lib/zen/security.rb +50 -0
  235. data/lib/zen/spec/helper.rb +5 -120
  236. data/lib/zen/spec/helper/capybara.rb +75 -0
  237. data/lib/zen/spec/helper/general.rb +75 -0
  238. data/lib/zen/spec/simplecov.rb +1 -0
  239. data/lib/zen/task/build.rake +2 -21
  240. data/lib/zen/task/clean.rake +1 -10
  241. data/lib/zen/task/db.rake +4 -10
  242. data/lib/zen/task/package.rake +2 -5
  243. data/lib/zen/task/setup.rake +1 -1
  244. data/lib/zen/task/test.rake +6 -6
  245. data/lib/zen/task/theme.rake +2 -5
  246. data/lib/zen/theme.rb +26 -22
  247. data/lib/zen/version.rb +1 -1
  248. data/lib/zen/view/bottom.xhtml +2 -3
  249. data/lib/zen/view/search.xhtml +3 -5
  250. data/proto/app/config/config.rb.erb +1 -1
  251. data/proto/app/theme/default/index.xhtml +116 -20
  252. data/proto/app/theme/partials/head.xhtml +9 -0
  253. data/proto/app/theme/partials/sidebar.xhtml +40 -0
  254. data/proto/app/theme/theme.rb +3 -0
  255. data/spec/Rakefile +1 -2
  256. data/spec/fixtures/zen/helper/stacked_aspect.rb +54 -0
  257. data/spec/fixtures/zen/package/dashboard/controller/widget.rb +15 -0
  258. data/spec/fixtures/zen/package/dashboard/widget.rb +5 -0
  259. data/spec/fixtures/zen/theme/theme.rb +2 -2
  260. data/spec/helper.rb +19 -10
  261. data/spec/zen/controller/admin_controller.rb +3 -3
  262. data/spec/zen/controller/main_controller.rb +7 -7
  263. data/spec/zen/controller/preview.rb +3 -3
  264. data/spec/zen/event.rb +4 -4
  265. data/spec/zen/helper/breadcrumb.rb +4 -8
  266. data/spec/zen/helper/controller.rb +47 -4
  267. data/spec/zen/helper/locale.rb +3 -3
  268. data/spec/zen/helper/message.rb +4 -4
  269. data/spec/zen/helper/stacked_aspect.rb +40 -0
  270. data/spec/zen/helper/theme.rb +9 -9
  271. data/spec/zen/language.rb +8 -8
  272. data/spec/zen/markup.rb +6 -6
  273. data/spec/zen/package.rb +11 -9
  274. data/spec/zen/package/categories/controller/categories.rb +56 -24
  275. data/spec/zen/package/categories/controller/category_groups.rb +55 -23
  276. data/spec/zen/package/categories/helper/category.rb +5 -5
  277. data/spec/zen/package/categories/helper/category_frontend.rb +5 -5
  278. data/spec/zen/package/comments/anti_spam.rb +4 -4
  279. data/spec/zen/package/comments/controller/comments.rb +95 -24
  280. data/spec/zen/package/comments/controller/comments_form.rb +31 -26
  281. data/spec/zen/package/comments/helper/comment.rb +3 -3
  282. data/spec/zen/package/comments/helper/comment_frontend.rb +6 -6
  283. data/spec/zen/package/custom_fields/blue_form_parameters.rb +8 -8
  284. data/spec/zen/package/custom_fields/controller/custom_field_groups.rb +58 -27
  285. data/spec/zen/package/custom_fields/controller/custom_field_types.rb +57 -27
  286. data/spec/zen/package/custom_fields/controller/custom_fields.rb +58 -27
  287. data/spec/zen/package/custom_fields/helper/custom_field.rb +7 -7
  288. data/spec/zen/package/dashboard/controller/dashboard.rb +147 -0
  289. data/spec/zen/package/dashboard/widget.rb +56 -0
  290. data/spec/zen/package/extensions/controller/extensions.rb +4 -4
  291. data/spec/zen/package/menus/controller/menu_items.rb +48 -39
  292. data/spec/zen/package/menus/controller/menus.rb +55 -24
  293. data/spec/zen/package/menus/helper/menu.rb +6 -14
  294. data/spec/zen/package/menus/helper/menu_frontend.rb +7 -7
  295. data/spec/zen/package/menus/model/menu.rb +121 -0
  296. data/spec/zen/package/menus/model/menu_item.rb +34 -0
  297. data/spec/zen/package/sections/controller/section_entries.rb +104 -39
  298. data/spec/zen/package/sections/controller/sections.rb +60 -27
  299. data/spec/zen/package/sections/helper/section.rb +5 -5
  300. data/spec/zen/package/sections/helper/section_frontend.rb +9 -9
  301. data/spec/zen/package/sections/widget.rb +44 -0
  302. data/spec/zen/package/settings/controller/settings.rb +18 -16
  303. data/spec/zen/package/settings/settings.rb +12 -12
  304. data/spec/zen/package/users/controller/user_groups.rb +61 -29
  305. data/spec/zen/package/users/controller/users.rb +118 -39
  306. data/spec/zen/package/users/helper/access.rb +3 -3
  307. data/spec/zen/package/users/helper/acl.rb +4 -4
  308. data/spec/zen/package/users/helper/users.rb +5 -5
  309. data/spec/zen/security.rb +25 -0
  310. data/spec/zen/theme.rb +20 -18
  311. data/spec/zen/validation.rb +5 -5
  312. data/spec/zen/vendor/sequel_sluggable.rb +12 -0
  313. data/zen.gemspec +27 -4
  314. metadata +182 -124
  315. data/AUTHORS +0 -4
  316. data/guide/_static/categories/categories.png +0 -0
  317. data/guide/_static/categories/category_groups.png +0 -0
  318. data/guide/_static/categories/new_category.png +0 -0
  319. data/guide/_static/categories/new_category_group.png +0 -0
  320. data/guide/_static/comments/comments.png +0 -0
  321. data/guide/_static/comments/edit_comment.png +0 -0
  322. data/guide/_static/custom_fields/custom_field_groups.png +0 -0
  323. data/guide/_static/custom_fields/custom_field_types.png +0 -0
  324. data/guide/_static/custom_fields/custom_fields.png +0 -0
  325. data/guide/_static/custom_fields/edit_custom_field_general.png +0 -0
  326. data/guide/_static/custom_fields/edit_custom_field_group.png +0 -0
  327. data/guide/_static/custom_fields/edit_custom_field_settings.png +0 -0
  328. data/guide/_static/custom_fields/edit_custom_field_type.png +0 -0
  329. data/guide/_static/menus/edit_menu.png +0 -0
  330. data/guide/_static/menus/edit_menu_item.png +0 -0
  331. data/guide/_static/menus/menu_items.png +0 -0
  332. data/guide/_static/menus/menus.png +0 -0
  333. data/guide/_static/sections/edit_entry.png +0 -0
  334. data/guide/_static/sections/edit_entry_categories.png +0 -0
  335. data/guide/_static/sections/edit_entry_general.png +0 -0
  336. data/guide/_static/sections/edit_entry_meta.png +0 -0
  337. data/guide/_static/sections/edit_section_comments.png +0 -0
  338. data/guide/_static/sections/edit_section_general.png +0 -0
  339. data/guide/_static/sections/edit_section_groups.png +0 -0
  340. data/guide/_static/sections/entries.png +0 -0
  341. data/guide/_static/sections/sections.png +0 -0
  342. data/guide/_static/settings/overview_general.png +0 -0
  343. data/guide/_static/settings/overview_security.png +0 -0
  344. data/guide/_static/settings/overview_user.png +0 -0
  345. data/guide/_static/users/edit_user.png +0 -0
  346. data/guide/_static/users/edit_user_group.png +0 -0
  347. data/guide/_static/users/edit_user_group_permissions.png +0 -0
  348. data/guide/_static/users/edit_user_permissions.png +0 -0
  349. data/guide/_static/users/overview.png +0 -0
  350. data/guide/_static/users/user_groups_overview.png +0 -0
  351. data/lib/zen/controller/translations.rb +0 -49
  352. data/lib/zen/package/sections/lib/sections/view/admin/form.xhtml +0 -113
  353. data/lib/zen/package/sections/lib/sections/view/admin/index.xhtml +0 -97
  354. data/lib/zen/public/admin/css/zen/buttons.css +0 -46
  355. data/lib/zen/public/admin/css/zen/editor.css +0 -88
  356. data/lib/zen/public/admin/css/zen/general.css +0 -109
  357. data/lib/zen/public/admin/css/zen/grid.css +0 -100
  358. data/lib/zen/public/admin/css/zen/layout.css +0 -184
  359. data/lib/zen/public/admin/css/zen/messages.css +0 -54
  360. data/lib/zen/public/admin/css/zen/tables.css +0 -97
  361. data/lib/zen/public/admin/css/zen/tabs.css +0 -47
  362. data/lib/zen/public/admin/css/zen/window.css +0 -73
  363. data/lib/zen/public/admin/images/zen/icons/accept.png +0 -0
  364. data/lib/zen/public/admin/images/zen/icons/add.png +0 -0
  365. data/lib/zen/public/admin/images/zen/icons/back.png +0 -0
  366. data/lib/zen/public/admin/images/zen/icons/delete.png +0 -0
  367. data/lib/zen/public/admin/images/zen/icons/help.png +0 -0
  368. data/lib/zen/public/admin/images/zen/icons/info.png +0 -0
  369. data/lib/zen/public/admin/images/zen/icons/logout.png +0 -0
  370. data/lib/zen/public/admin/images/zen/icons/pdf.png +0 -0
  371. data/lib/zen/public/admin/images/zen/icons/view.png +0 -0
  372. data/lib/zen/public/admin/js/zen/lib/tabs.js +0 -207
  373. data/lib/zen/view/main.xhtml +0 -19
@@ -1,19 +1,19 @@
1
1
  require File.expand_path('../../../../../helper', __FILE__)
2
2
  require File.join(Zen::FIXTURES, 'package', 'users', 'helper', 'access')
3
3
 
4
- describe('Ramaze::Helper::Access') do
4
+ describe 'Ramaze::Helper::Access' do
5
5
  behaves_like :capybara
6
6
 
7
7
  visit(Users::Controller::Users.r(:logout).to_s)
8
8
 
9
- it('Deny access to a method') do
9
+ it 'Deny access to a method' do
10
10
  visit('/admin/spec-access-helper/denied')
11
11
 
12
12
  current_path.should == Users::Controller::Users.r(:login).to_s
13
13
  page.body.include?('super secret page').should == false
14
14
  end
15
15
 
16
- it('Allow access to a list of methods') do
16
+ it 'Allow access to a list of methods' do
17
17
  capybara_login
18
18
 
19
19
  visit('/admin/spec-access-helper/allowed')
@@ -1,7 +1,7 @@
1
1
  require File.expand_path('../../../../../helper', __FILE__)
2
2
  require File.join(Zen::FIXTURES, 'package', 'users', 'helper', 'acl')
3
3
 
4
- describe('Ramaze::Helper::ACL') do
4
+ describe 'Ramaze::Helper::ACL' do
5
5
  behaves_like :capybara
6
6
 
7
7
  visit(Users::Controller::Users.r(:logout).to_s)
@@ -15,20 +15,20 @@ describe('Ramaze::Helper::ACL') do
15
15
 
16
16
  capybara_login
17
17
 
18
- it('Allow for a permission') do
18
+ it 'Allow for a permission' do
19
19
  visit('/admin/spec-acl-helper')
20
20
 
21
21
  page.has_content?('not allowed').should == false
22
22
  page.has_content?('allowed').should == true
23
23
  end
24
24
 
25
- it('Deny for a missing permission') do
25
+ it 'Deny for a missing permission' do
26
26
  visit('/admin/spec-acl-helper/invalid')
27
27
 
28
28
  page.has_content?('not allowed').should == true
29
29
  end
30
30
 
31
- it('Respond for a missing permission') do
31
+ it 'Respond for a missing permission' do
32
32
  visit('/admin/spec-acl-helper/respond_message')
33
33
 
34
34
  page.has_content?(lang('zen_general.errors.not_authorized')).should == true
@@ -1,6 +1,6 @@
1
1
  require File.expand_path('../../../../../helper', __FILE__)
2
2
 
3
- describe('Ramaze::Helper::Users') do
3
+ describe 'Ramaze::Helper::Users' do
4
4
  behaves_like :capybara
5
5
 
6
6
  user = Users::Model::User.create(
@@ -14,7 +14,7 @@ describe('Ramaze::Helper::Users') do
14
14
  :super_group => true
15
15
  )
16
16
 
17
- it('Validate a valid user') do
17
+ it 'Validate a valid user' do
18
18
  url = Users::Controller::Users.r(:edit, user.id).to_s
19
19
 
20
20
  visit(url)
@@ -22,7 +22,7 @@ describe('Ramaze::Helper::Users') do
22
22
  current_path.should == url
23
23
  end
24
24
 
25
- it('Validate an invalid user') do
25
+ it 'Validate an invalid user' do
26
26
  url = Users::Controller::Users.r(:edit, user.id + 1).to_s
27
27
  index = Users::Controller::Users.r(:index).to_s
28
28
 
@@ -31,7 +31,7 @@ describe('Ramaze::Helper::Users') do
31
31
  current_path.should == index
32
32
  end
33
33
 
34
- it('Validate a valid user group') do
34
+ it 'Validate a valid user group' do
35
35
  url = Users::Controller::UserGroups.r(:edit, group.id).to_s
36
36
 
37
37
  visit(url)
@@ -39,7 +39,7 @@ describe('Ramaze::Helper::Users') do
39
39
  current_path.should == url
40
40
  end
41
41
 
42
- it('Validate an invalid user group') do
42
+ it 'Validate an invalid user group' do
43
43
  url = Users::Controller::UserGroups.r(:edit, group.id + 1).to_s
44
44
  index = Users::Controller::UserGroups.r(:index).to_s
45
45
 
@@ -0,0 +1,25 @@
1
+ require File.expand_path('../../helper', __FILE__)
2
+
3
+ describe 'Zen::Security' do
4
+ describe 'Zen::Security.sanitize' do
5
+ it 'Escape <?r and ?> tags' do
6
+ Zen::Security.sanitize('<?r puts "Hello" ?>').should == '\<\?r puts "Hello" \?\>'
7
+
8
+ instance = Struct.new(:number).new(10)
9
+
10
+ Innate::Etanni.new(Zen::Security.sanitize('<?r number = 15 ?>')).result(instance)
11
+
12
+ instance.number.should == 10
13
+ end
14
+
15
+ it 'Escape #{} tags' do
16
+ Zen::Security.sanitize('#{name}').should == '\#\{name\}'
17
+
18
+ instance = Struct.new(:number).new(10)
19
+
20
+ output = Innate::Etanni.new(Zen::Security.sanitize('#{number}')).result(instance)
21
+
22
+ output.should == '#{number}'
23
+ end
24
+ end
25
+ end
@@ -1,39 +1,41 @@
1
1
  require File.expand_path('../../helper', __FILE__)
2
2
 
3
- describe("Zen::Theme") do
3
+ describe "Zen::Theme" do
4
4
 
5
- it('Error when retrieving a theme when no themes exist') do
5
+ it 'Error when retrieving a theme when no themes exist' do
6
6
  should.raise?(Zen::ThemeError) { Zen::Theme[:spec] }
7
7
  end
8
8
 
9
- it('Add a new theme') do
9
+ it 'Add a new theme' do
10
10
  Zen::Theme.add do |t|
11
- t.name = 'spec'
12
- t.author = 'Yorick Peterse'
13
- t.about = 'An example theme'
14
- t.template_dir = __DIR__
15
- t.public_dir = __DIR__
11
+ t.name = 'spec'
12
+ t.author = 'Yorick Peterse'
13
+ t.about = 'An example theme'
14
+ t.templates = __DIR__
15
+ t.public = __DIR__
16
+ t.env.name = 'Zen'
17
+ t.env.foo = {:foo => 'bar'}
16
18
  end
17
19
 
18
20
  should.not.raise?(Zen::ThemeError) { Zen::Theme[:spec] }
21
+
22
+ theme = Zen::Theme[:spec]
23
+
24
+ theme.name.should == :spec
25
+ theme.author.should == 'Yorick Peterse'
26
+ theme.templates.should == __DIR__
27
+ theme.env.name.should == 'Zen'
28
+ theme.env.foo.should == {:foo => 'bar'}
19
29
  end
20
30
 
21
- it('Add an already existing theme') do
31
+ it 'Add an already existing theme' do
22
32
  should.raise?(Zen::ValidationError) do
23
33
  Zen::Theme.add do |t|
24
34
  t.name = 'spec'
25
35
  t.author = 'Yorick Peterse'
26
36
  t.about = 'An example theme'
27
- t.template_dir = __DIR__
37
+ t.templates = __DIR__
28
38
  end
29
39
  end
30
40
  end
31
-
32
- it('Retrieve a theme using Zen::Theme') do
33
- theme = Zen::Theme[:spec]
34
-
35
- theme.name.should == :spec
36
- theme.author.should == 'Yorick Peterse'
37
- theme.template_dir.should == __DIR__
38
- end
39
41
  end
@@ -2,9 +2,9 @@ require File.expand_path('../../helper', __FILE__)
2
2
  require File.join(Zen::FIXTURES, 'validation')
3
3
  require 'fileutils'
4
4
 
5
- describe('Zen::Validation') do
5
+ describe 'Zen::Validation' do
6
6
 
7
- it('Validate the presence of an attribute') do
7
+ it 'Validate the presence of an attribute' do
8
8
  object = ValidationObject.new
9
9
 
10
10
  should.raise?(Zen::ValidationError) { object.presence }
@@ -15,7 +15,7 @@ describe('Zen::Validation') do
15
15
  should.not.raise?(Zen::ValidationError) { object.presence }
16
16
  end
17
17
 
18
- it('Validate the length of an attribute') do
18
+ it 'Validate the length of an attribute' do
19
19
  object = ValidationObject.new
20
20
 
21
21
  should.raise?(Zen::ValidationError) { object.length }
@@ -36,7 +36,7 @@ describe('Zen::Validation') do
36
36
  should.not.raise?(Zen::ValidationError) { object.length }
37
37
  end
38
38
 
39
- it('Validate the format of an attribute') do
39
+ it 'Validate the format of an attribute' do
40
40
  object = ValidationObject.new
41
41
  object.name = 10
42
42
 
@@ -47,7 +47,7 @@ describe('Zen::Validation') do
47
47
  should.not.raise?(Zen::ValidationError) { object.format }
48
48
  end
49
49
 
50
- it('Validate a file') do
50
+ it 'Validate a file' do
51
51
  object = ValidationObject.new
52
52
  object.file = '/tmp/zen_validation'
53
53
 
@@ -0,0 +1,12 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+ require File.expand_path('../../../../lib/vendor/sequel_sluggable', __FILE__)
3
+
4
+ describe 'Sequel::Plugins::Sluggable' do
5
+ extend Sequel::Plugins::Sluggable::InstanceMethods
6
+
7
+ it 'Generate a slug' do
8
+ to_slug('Hello world').should == 'hello-world'
9
+ to_slug('Hello_world').should == 'hello_world'
10
+ to_slug('Hello world 10').should == 'hello-world-10'
11
+ end
12
+ end
@@ -5,22 +5,45 @@ path = File.expand_path('../', __FILE__)
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'zen'
7
7
  s.version = Zen::VERSION
8
- s.date = '2011-11-27'
8
+ s.date = '2012-03-07'
9
9
  s.authors = ['Yorick Peterse']
10
- s.email = 'info@yorickpeterse.com'
10
+ s.email = 'yorickpeterse@gmail.com'
11
11
  s.summary = 'Zen is a modular CMS written using Ramaze.'
12
12
  s.homepage = 'http://zen-cms.com/'
13
13
  s.description = 'Zen is a modular CMS written using Ramaze. ' \
14
14
  'Zen gives you complete freedom to build whatever you want in whatever ' \
15
15
  'way you might want to build it.'
16
16
 
17
+ s.post_install_message = <<-TXT.strip
18
+ Thank you for installing Zen. Creating a new project can be done by running
19
+ the following command:
20
+
21
+ $ zen create
22
+
23
+ This command will walk you through the steps required to create a new project
24
+ using Zen. Once your project has been created you should not forget to migrate
25
+ your database, this can be done as following:
26
+
27
+ $ rake db:migrate
28
+
29
+ Keep in mind that depending on your database configuration (this can be found
30
+ in config/database.rb) you might have to install separate Rubygems. For example,
31
+ for SQLite3 you'll need to install the sqlite3 gem.
32
+
33
+ After the database has been migrated you can start your application:
34
+
35
+ $ ramaze start
36
+
37
+ For more information see the documentation: http://zen-cms.com/documentation
38
+ TXT
39
+
17
40
  s.files = `cd #{path}; git ls-files`.split("\n").sort
18
41
  s.has_rdoc = 'yard'
19
42
  s.executables = ['zen']
20
43
  s.required_ruby_version = '>= 1.9.2'
21
44
 
22
- s.add_dependency('sequel' , ['~> 3.28.0'])
23
- s.add_dependency('ramaze' , ['~> 2011.10.23'])
45
+ s.add_dependency('sequel' , ['~> 3.33.0'])
46
+ s.add_dependency('ramaze' , ['~> 2012.03.07'])
24
47
  s.add_dependency('bcrypt-ruby' , ['~> 3.0.1'])
25
48
  s.add_dependency('rake' , ['~> 0.9.2'])
26
49
  s.add_dependency('loofah' , ['~> 1.2.0'])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zen
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,33 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-27 00:00:00.000000000 Z
12
+ date: 2012-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sequel
16
- requirement: &2153035080 !ruby/object:Gem::Requirement
16
+ requirement: &2156237640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 3.28.0
21
+ version: 3.33.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153035080
24
+ version_requirements: *2156237640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ramaze
27
- requirement: &2153034600 !ruby/object:Gem::Requirement
27
+ requirement: &2156236560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 2011.10.23
32
+ version: 2012.03.07
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2153034600
35
+ version_requirements: *2156236560
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bcrypt-ruby
38
- requirement: &2153034120 !ruby/object:Gem::Requirement
38
+ requirement: &2156235900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.0.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2153034120
46
+ version_requirements: *2156235900
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &2153033640 !ruby/object:Gem::Requirement
49
+ requirement: &2156235060 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.9.2
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2153033640
57
+ version_requirements: *2156235060
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: loofah
60
- requirement: &2153033160 !ruby/object:Gem::Requirement
60
+ requirement: &2156234200 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.2.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2153033160
68
+ version_requirements: *2156234200
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ramaze-asset
71
- requirement: &2153032680 !ruby/object:Gem::Requirement
71
+ requirement: &2156233340 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.2.3
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2153032680
79
+ version_requirements: *2156233340
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: shebang
82
- requirement: &2153032200 !ruby/object:Gem::Requirement
82
+ requirement: &2156248960 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0.1'
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *2153032200
90
+ version_requirements: *2156248960
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rdiscount
93
- requirement: &2153031720 !ruby/object:Gem::Requirement
93
+ requirement: &2156248440 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.6.8
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *2153031720
101
+ version_requirements: *2156248440
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: RedCloth
104
- requirement: &2153031240 !ruby/object:Gem::Requirement
104
+ requirement: &2156247860 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 4.2.8
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *2153031240
112
+ version_requirements: *2156247860
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: bacon
115
- requirement: &2153030760 !ruby/object:Gem::Requirement
115
+ requirement: &2156247180 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 1.1.0
121
121
  type: :development
122
122
  prerelease: false
123
- version_requirements: *2153030760
123
+ version_requirements: *2156247180
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: yard
126
- requirement: &2153030280 !ruby/object:Gem::Requirement
126
+ requirement: &2156246460 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: 0.7.2
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *2153030280
134
+ version_requirements: *2156246460
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: capybara
137
- requirement: &2153029800 !ruby/object:Gem::Requirement
137
+ requirement: &2156245500 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: 1.1.1
143
143
  type: :development
144
144
  prerelease: false
145
- version_requirements: *2153029800
145
+ version_requirements: *2156245500
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: sqlite3
148
- requirement: &2153029320 !ruby/object:Gem::Requirement
148
+ requirement: &2156244800 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 1.3.4
154
154
  type: :development
155
155
  prerelease: false
156
- version_requirements: *2153029320
156
+ version_requirements: *2156244800
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: defensio
159
- requirement: &2152663560 !ruby/object:Gem::Requirement
159
+ requirement: &2156244120 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: 0.9.1
165
165
  type: :development
166
166
  prerelease: false
167
- version_requirements: *2152663560
167
+ version_requirements: *2156244120
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: simplecov
170
- requirement: &2153025980 !ruby/object:Gem::Requirement
170
+ requirement: &2156242940 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: 0.4.2
176
176
  type: :development
177
177
  prerelease: false
178
- version_requirements: *2153025980
178
+ version_requirements: *2156242940
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: webmock
181
- requirement: &2153025500 !ruby/object:Gem::Requirement
181
+ requirement: &2156241920 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: 1.6.4
187
187
  type: :development
188
188
  prerelease: false
189
- version_requirements: *2153025500
189
+ version_requirements: *2156241920
190
190
  description: Zen is a modular CMS written using Ramaze. Zen gives you complete freedom
191
191
  to build whatever you want in whatever way you might want to build it.
192
- email: info@yorickpeterse.com
192
+ email: yorickpeterse@gmail.com
193
193
  executables:
194
194
  - zen
195
195
  extensions: []
@@ -201,53 +201,66 @@ files:
201
201
  - .rvmrc
202
202
  - .travis.yml
203
203
  - .yardopts
204
- - AUTHORS
205
204
  - LICENSE
206
205
  - README.md
207
206
  - Rakefile
208
207
  - bin/zen
209
- - guide/_static/categories/categories.png
210
- - guide/_static/categories/category_groups.png
211
- - guide/_static/categories/new_category.png
212
- - guide/_static/categories/new_category_group.png
213
- - guide/_static/comments/comments.png
214
- - guide/_static/comments/edit_comment.png
215
- - guide/_static/custom_fields/custom_field_groups.png
216
- - guide/_static/custom_fields/custom_field_types.png
217
- - guide/_static/custom_fields/custom_fields.png
218
- - guide/_static/custom_fields/edit_custom_field_general.png
219
- - guide/_static/custom_fields/edit_custom_field_group.png
220
- - guide/_static/custom_fields/edit_custom_field_settings.png
221
- - guide/_static/custom_fields/edit_custom_field_type.png
222
- - guide/_static/menus/edit_menu.png
223
- - guide/_static/menus/edit_menu_item.png
224
- - guide/_static/menus/menu_items.png
225
- - guide/_static/menus/menus.png
226
- - guide/_static/sections/edit_entry.png
227
- - guide/_static/sections/edit_entry_categories.png
228
- - guide/_static/sections/edit_entry_general.png
229
- - guide/_static/sections/edit_entry_meta.png
230
- - guide/_static/sections/edit_section_comments.png
231
- - guide/_static/sections/edit_section_general.png
232
- - guide/_static/sections/edit_section_groups.png
233
- - guide/_static/sections/entries.png
234
- - guide/_static/sections/sections.png
235
- - guide/_static/settings/overview_general.png
236
- - guide/_static/settings/overview_security.png
237
- - guide/_static/settings/overview_user.png
238
- - guide/_static/users/edit_user.png
239
- - guide/_static/users/edit_user_group.png
240
- - guide/_static/users/edit_user_group_permissions.png
241
- - guide/_static/users/edit_user_permissions.png
242
- - guide/_static/users/overview.png
243
- - guide/_static/users/user_groups_overview.png
244
208
  - guide/asset_management.md
209
+ - guide/autosaving_forms.md
245
210
  - guide/changelog.md
246
211
  - guide/css/common.css
212
+ - guide/faq.md
247
213
  - guide/getting_started.md
248
214
  - guide/hacking.md
215
+ - guide/images/categories/categories.png
216
+ - guide/images/categories/category_groups.png
217
+ - guide/images/categories/new_category.png
218
+ - guide/images/categories/new_category_group.png
219
+ - guide/images/comments/comments.png
220
+ - guide/images/comments/edit_comment.png
221
+ - guide/images/custom_fields/custom_field_groups.png
222
+ - guide/images/custom_fields/custom_field_types.png
223
+ - guide/images/custom_fields/custom_fields.png
224
+ - guide/images/custom_fields/edit_custom_field_general.png
225
+ - guide/images/custom_fields/edit_custom_field_group.png
226
+ - guide/images/custom_fields/edit_custom_field_settings.png
227
+ - guide/images/custom_fields/edit_custom_field_type.png
228
+ - guide/images/dashboard/added.png
229
+ - guide/images/dashboard/columns.png
230
+ - guide/images/dashboard/dashboard.png
231
+ - guide/images/dashboard/options.png
232
+ - guide/images/menus/edit_menu.png
233
+ - guide/images/menus/edit_menu_item.png
234
+ - guide/images/menus/menu_item_hierarchy.png
235
+ - guide/images/menus/menu_items.png
236
+ - guide/images/menus/menus.png
237
+ - guide/images/sections/edit_entry.png
238
+ - guide/images/sections/edit_entry_categories.png
239
+ - guide/images/sections/edit_entry_general.png
240
+ - guide/images/sections/edit_entry_meta.png
241
+ - guide/images/sections/edit_section_comments.png
242
+ - guide/images/sections/edit_section_general.png
243
+ - guide/images/sections/edit_section_groups.png
244
+ - guide/images/sections/entries.png
245
+ - guide/images/sections/sections.png
246
+ - guide/images/settings/overview_general.png
247
+ - guide/images/settings/overview_security.png
248
+ - guide/images/settings/overview_user.png
249
+ - guide/images/users/edit_user.png
250
+ - guide/images/users/edit_user_group.png
251
+ - guide/images/users/edit_user_group_permissions.png
252
+ - guide/images/users/edit_user_permissions.png
253
+ - guide/images/users/overview.png
254
+ - guide/images/users/user_groups_overview.png
249
255
  - guide/installation.md
250
256
  - guide/javascript.md
257
+ - guide/javascript/zen_autosave.md
258
+ - guide/javascript/zen_editor.md
259
+ - guide/javascript/zen_hash.md
260
+ - guide/javascript/zen_htmltable.md
261
+ - guide/javascript/zen_tabs.md
262
+ - guide/javascript/zen_window.md
263
+ - guide/zen_compared.md
251
264
  - lib/vendor/sequel_sluggable.rb
252
265
  - lib/yard/tags.rb
253
266
  - lib/zen.rb
@@ -259,7 +272,6 @@ files:
259
272
  - lib/zen/controller/frontend_controller.rb
260
273
  - lib/zen/controller/main_controller.rb
261
274
  - lib/zen/controller/preview.rb
262
- - lib/zen/controller/translations.rb
263
275
  - lib/zen/error.rb
264
276
  - lib/zen/event.rb
265
277
  - lib/zen/helper/asset.rb
@@ -280,9 +292,11 @@ files:
280
292
  - lib/zen/layout/admin.xhtml
281
293
  - lib/zen/layout/login.xhtml
282
294
  - lib/zen/markup.rb
295
+ - lib/zen/migrator.rb
283
296
  - lib/zen/model/helper.rb
284
297
  - lib/zen/model/init.rb
285
298
  - lib/zen/model/methods.rb
299
+ - lib/zen/model/plugin/events.rb
286
300
  - lib/zen/package.rb
287
301
  - lib/zen/package/all.rb
288
302
  - lib/zen/package/categories/lib/categories.rb
@@ -345,6 +359,18 @@ files:
345
359
  - lib/zen/package/custom_fields/migrations/1295255665_create_schema.rb
346
360
  - lib/zen/package/custom_fields/migrations/1310659580_custom_field_types.rb
347
361
  - lib/zen/package/custom_fields/migrations/1311694920_rename_css_class.rb
362
+ - lib/zen/package/dashboard/lib/dashboard.rb
363
+ - lib/zen/package/dashboard/lib/dashboard/controller/dashboard.rb
364
+ - lib/zen/package/dashboard/lib/dashboard/language/en/dashboard.rb
365
+ - lib/zen/package/dashboard/lib/dashboard/language/nl/dashboard.rb
366
+ - lib/zen/package/dashboard/lib/dashboard/model/widget.rb
367
+ - lib/zen/package/dashboard/lib/dashboard/public/admin/dashboard/css/dashboard.css
368
+ - lib/zen/package/dashboard/lib/dashboard/public/admin/dashboard/js/dashboard.js
369
+ - lib/zen/package/dashboard/lib/dashboard/view/admin/index.xhtml
370
+ - lib/zen/package/dashboard/lib/dashboard/view/admin/widget/welcome.xhtml
371
+ - lib/zen/package/dashboard/lib/dashboard/widget.rb
372
+ - lib/zen/package/dashboard/lib/dashboard/widget/welcome.rb
373
+ - lib/zen/package/dashboard/migrations/1326411254_create_schema.rb
348
374
  - lib/zen/package/extensions/lib/extensions.rb
349
375
  - lib/zen/package/extensions/lib/extensions/controller/extensions.rb
350
376
  - lib/zen/package/extensions/lib/extensions/language/en/extensions.rb
@@ -362,6 +388,9 @@ files:
362
388
  - lib/zen/package/menus/lib/menus/language/nl/menus.rb
363
389
  - lib/zen/package/menus/lib/menus/model/menu.rb
364
390
  - lib/zen/package/menus/lib/menus/model/menu_item.rb
391
+ - lib/zen/package/menus/lib/menus/public/admin/menus/css/menus.css
392
+ - lib/zen/package/menus/lib/menus/public/admin/menus/js/lib/nested_sortables.js
393
+ - lib/zen/package/menus/lib/menus/public/admin/menus/js/menu_items.js
365
394
  - lib/zen/package/menus/lib/menus/view/admin/menu-items/form.xhtml
366
395
  - lib/zen/package/menus/lib/menus/view/admin/menu-items/index.xhtml
367
396
  - lib/zen/package/menus/lib/menus/view/admin/menus/form.xhtml
@@ -382,10 +411,12 @@ files:
382
411
  - lib/zen/package/sections/lib/sections/model/section.rb
383
412
  - lib/zen/package/sections/lib/sections/model/section_entry.rb
384
413
  - lib/zen/package/sections/lib/sections/model/section_entry_status.rb
385
- - lib/zen/package/sections/lib/sections/view/admin/form.xhtml
386
- - lib/zen/package/sections/lib/sections/view/admin/index.xhtml
387
414
  - lib/zen/package/sections/lib/sections/view/admin/section-entries/form.xhtml
388
415
  - lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml
416
+ - lib/zen/package/sections/lib/sections/view/admin/section-entries/recent_entries.xhtml
417
+ - lib/zen/package/sections/lib/sections/view/admin/sections/form.xhtml
418
+ - lib/zen/package/sections/lib/sections/view/admin/sections/index.xhtml
419
+ - lib/zen/package/sections/lib/sections/widget/recent_entries.rb
389
420
  - lib/zen/package/sections/migrations/.gitkeep
390
421
  - lib/zen/package/sections/migrations/1295251836_create_schema.rb
391
422
  - lib/zen/package/sections/migrations/1306772479_remove_unique_slug.rb
@@ -425,8 +456,8 @@ files:
425
456
  - lib/zen/package/users/lib/users/model/user.rb
426
457
  - lib/zen/package/users/lib/users/model/user_group.rb
427
458
  - lib/zen/package/users/lib/users/model/user_status.rb
428
- - lib/zen/package/users/lib/users/public/admin/css/users/permissions.css
429
- - lib/zen/package/users/lib/users/public/admin/js/users/permissions.js
459
+ - lib/zen/package/users/lib/users/public/admin/users/css/users.css
460
+ - lib/zen/package/users/lib/users/public/admin/users/js/users.js
430
461
  - lib/zen/package/users/lib/users/settings.rb
431
462
  - lib/zen/package/users/lib/users/view/admin/user-groups/form.xhtml
432
463
  - lib/zen/package/users/lib/users/view/admin/user-groups/index.xhtml
@@ -442,52 +473,59 @@ files:
442
473
  - lib/zen/package/users/migrations/1313786058_update_default_date.rb
443
474
  - lib/zen/package/users/migrations/1316432327_permissions.rb
444
475
  - lib/zen/package/users/migrations/1320272365_status_ids.rb
445
- - lib/zen/public/admin/css/zen/buttons.css
446
- - lib/zen/public/admin/css/zen/datepicker.css
447
- - lib/zen/public/admin/css/zen/editor.css
448
- - lib/zen/public/admin/css/zen/forms.css
449
- - lib/zen/public/admin/css/zen/general.css
450
- - lib/zen/public/admin/css/zen/grid.css
451
- - lib/zen/public/admin/css/zen/layout.css
452
- - lib/zen/public/admin/css/zen/messages.css
453
- - lib/zen/public/admin/css/zen/reset.css
454
- - lib/zen/public/admin/css/zen/tables.css
455
- - lib/zen/public/admin/css/zen/tabs.css
456
- - lib/zen/public/admin/css/zen/window.css
457
476
  - lib/zen/public/admin/favicon.ico
458
- - lib/zen/public/admin/images/zen/icons/accept.png
459
- - lib/zen/public/admin/images/zen/icons/add.png
460
- - lib/zen/public/admin/images/zen/icons/asc.png
461
- - lib/zen/public/admin/images/zen/icons/back.png
462
- - lib/zen/public/admin/images/zen/icons/bold.png
463
- - lib/zen/public/admin/images/zen/icons/close.png
464
- - lib/zen/public/admin/images/zen/icons/delete.png
465
- - lib/zen/public/admin/images/zen/icons/desc.png
466
- - lib/zen/public/admin/images/zen/icons/edit.png
467
- - lib/zen/public/admin/images/zen/icons/error.png
468
- - lib/zen/public/admin/images/zen/icons/help.png
469
- - lib/zen/public/admin/images/zen/icons/info.png
470
- - lib/zen/public/admin/images/zen/icons/italic.png
471
- - lib/zen/public/admin/images/zen/icons/link.png
472
- - lib/zen/public/admin/images/zen/icons/logout.png
473
- - lib/zen/public/admin/images/zen/icons/ol.png
474
- - lib/zen/public/admin/images/zen/icons/pdf.png
475
- - lib/zen/public/admin/images/zen/icons/preview.png
476
- - lib/zen/public/admin/images/zen/icons/ul.png
477
- - lib/zen/public/admin/images/zen/icons/user.png
478
- - lib/zen/public/admin/images/zen/icons/view.png
479
- - lib/zen/public/admin/js/vendor/datepicker.js
480
- - lib/zen/public/admin/js/vendor/mootools/core.js
481
- - lib/zen/public/admin/js/vendor/mootools/more.js
482
- - lib/zen/public/admin/js/zen/index.js
483
- - lib/zen/public/admin/js/zen/lib/editor.js
484
- - lib/zen/public/admin/js/zen/lib/editor/markdown.js
485
- - lib/zen/public/admin/js/zen/lib/editor/textile.js
486
- - lib/zen/public/admin/js/zen/lib/html_table.js
487
- - lib/zen/public/admin/js/zen/lib/tabs.js
488
- - lib/zen/public/admin/js/zen/lib/window.js
477
+ - lib/zen/public/admin/mootools/js/core.js
478
+ - lib/zen/public/admin/mootools/js/more.js
479
+ - lib/zen/public/admin/zen/css/buttons.css
480
+ - lib/zen/public/admin/zen/css/datepicker.css
481
+ - lib/zen/public/admin/zen/css/editor.css
482
+ - lib/zen/public/admin/zen/css/forms.css
483
+ - lib/zen/public/admin/zen/css/general.css
484
+ - lib/zen/public/admin/zen/css/layout.css
485
+ - lib/zen/public/admin/zen/css/messages.css
486
+ - lib/zen/public/admin/zen/css/reset.css
487
+ - lib/zen/public/admin/zen/css/tables.css
488
+ - lib/zen/public/admin/zen/css/tabs.css
489
+ - lib/zen/public/admin/zen/css/window.css
490
+ - lib/zen/public/admin/zen/images/icons/asc.png
491
+ - lib/zen/public/admin/zen/images/icons/bold.png
492
+ - lib/zen/public/admin/zen/images/icons/box.png
493
+ - lib/zen/public/admin/zen/images/icons/categories.png
494
+ - lib/zen/public/admin/zen/images/icons/close.png
495
+ - lib/zen/public/admin/zen/images/icons/comment.png
496
+ - lib/zen/public/admin/zen/images/icons/desc.png
497
+ - lib/zen/public/admin/zen/images/icons/edit.png
498
+ - lib/zen/public/admin/zen/images/icons/error.png
499
+ - lib/zen/public/admin/zen/images/icons/external.png
500
+ - lib/zen/public/admin/zen/images/icons/globe.png
501
+ - lib/zen/public/admin/zen/images/icons/italic.png
502
+ - lib/zen/public/admin/zen/images/icons/link.png
503
+ - lib/zen/public/admin/zen/images/icons/lock.png
504
+ - lib/zen/public/admin/zen/images/icons/ol.png
505
+ - lib/zen/public/admin/zen/images/icons/pages.png
506
+ - lib/zen/public/admin/zen/images/icons/preview.png
507
+ - lib/zen/public/admin/zen/images/icons/relation.png
508
+ - lib/zen/public/admin/zen/images/icons/settings.png
509
+ - lib/zen/public/admin/zen/images/icons/template.png
510
+ - lib/zen/public/admin/zen/images/icons/ul.png
511
+ - lib/zen/public/admin/zen/images/icons/user.png
512
+ - lib/zen/public/admin/zen/images/icons/user_group.png
513
+ - lib/zen/public/admin/zen/js/index.js
514
+ - lib/zen/public/admin/zen/js/lib/autosave.js
515
+ - lib/zen/public/admin/zen/js/lib/base.js
516
+ - lib/zen/public/admin/zen/js/lib/datepicker.js
517
+ - lib/zen/public/admin/zen/js/lib/editor.js
518
+ - lib/zen/public/admin/zen/js/lib/editor/markdown.js
519
+ - lib/zen/public/admin/zen/js/lib/editor/textile.js
520
+ - lib/zen/public/admin/zen/js/lib/hash.js
521
+ - lib/zen/public/admin/zen/js/lib/html_table.js
522
+ - lib/zen/public/admin/zen/js/lib/tabs.js
523
+ - lib/zen/public/admin/zen/js/lib/window.js
524
+ - lib/zen/security.rb
489
525
  - lib/zen/spec/bacon/color_output.rb
490
526
  - lib/zen/spec/helper.rb
527
+ - lib/zen/spec/helper/capybara.rb
528
+ - lib/zen/spec/helper/general.rb
491
529
  - lib/zen/spec/simplecov.rb
492
530
  - lib/zen/task.rb
493
531
  - lib/zen/task/build.rake
@@ -503,7 +541,6 @@ files:
503
541
  - lib/zen/version.rb
504
542
  - lib/zen/view/bottom.xhtml
505
543
  - lib/zen/view/head.xhtml
506
- - lib/zen/view/main.xhtml
507
544
  - lib/zen/view/search.xhtml
508
545
  - pkg/.gitkeep
509
546
  - proto/app/Rakefile
@@ -518,6 +555,8 @@ files:
518
555
  - proto/app/task/.gitkeep
519
556
  - proto/app/theme/.gitkeep
520
557
  - proto/app/theme/default/index.xhtml
558
+ - proto/app/theme/partials/head.xhtml
559
+ - proto/app/theme/partials/sidebar.xhtml
521
560
  - proto/app/theme/theme.rb
522
561
  - proto/app/tmp/.gitkeep
523
562
  - proto/migration.rb
@@ -529,6 +568,7 @@ files:
529
568
  - spec/fixtures/zen/helper/controller.rb
530
569
  - spec/fixtures/zen/helper/locale.rb
531
570
  - spec/fixtures/zen/helper/message.rb
571
+ - spec/fixtures/zen/helper/stacked_aspect.rb
532
572
  - spec/fixtures/zen/language.rb
533
573
  - spec/fixtures/zen/language/en/spec.rb
534
574
  - spec/fixtures/zen/language/nl/spec.rb
@@ -536,6 +576,8 @@ files:
536
576
  - spec/fixtures/zen/package/categories/helper/category_frontend.rb
537
577
  - spec/fixtures/zen/package/comments/controller/comments_form.rb
538
578
  - spec/fixtures/zen/package/comments/helper/comment_frontend.rb
579
+ - spec/fixtures/zen/package/dashboard/controller/widget.rb
580
+ - spec/fixtures/zen/package/dashboard/widget.rb
539
581
  - spec/fixtures/zen/package/sections/helper/section_frontend.rb
540
582
  - spec/fixtures/zen/package/settings/controller/settings.rb
541
583
  - spec/fixtures/zen/package/users/helper/access.rb
@@ -560,6 +602,7 @@ files:
560
602
  - spec/zen/helper/controller.rb
561
603
  - spec/zen/helper/locale.rb
562
604
  - spec/zen/helper/message.rb
605
+ - spec/zen/helper/stacked_aspect.rb
563
606
  - spec/zen/helper/theme.rb
564
607
  - spec/zen/language.rb
565
608
  - spec/zen/markup.rb
@@ -578,15 +621,20 @@ files:
578
621
  - spec/zen/package/custom_fields/controller/custom_field_types.rb
579
622
  - spec/zen/package/custom_fields/controller/custom_fields.rb
580
623
  - spec/zen/package/custom_fields/helper/custom_field.rb
624
+ - spec/zen/package/dashboard/controller/dashboard.rb
625
+ - spec/zen/package/dashboard/widget.rb
581
626
  - spec/zen/package/extensions/controller/extensions.rb
582
627
  - spec/zen/package/menus/controller/menu_items.rb
583
628
  - spec/zen/package/menus/controller/menus.rb
584
629
  - spec/zen/package/menus/helper/menu.rb
585
630
  - spec/zen/package/menus/helper/menu_frontend.rb
631
+ - spec/zen/package/menus/model/menu.rb
632
+ - spec/zen/package/menus/model/menu_item.rb
586
633
  - spec/zen/package/sections/controller/section_entries.rb
587
634
  - spec/zen/package/sections/controller/sections.rb
588
635
  - spec/zen/package/sections/helper/section.rb
589
636
  - spec/zen/package/sections/helper/section_frontend.rb
637
+ - spec/zen/package/sections/widget.rb
590
638
  - spec/zen/package/settings/controller/settings.rb
591
639
  - spec/zen/package/settings/settings.rb
592
640
  - spec/zen/package/users/controller/user_groups.rb
@@ -594,12 +642,22 @@ files:
594
642
  - spec/zen/package/users/helper/access.rb
595
643
  - spec/zen/package/users/helper/acl.rb
596
644
  - spec/zen/package/users/helper/users.rb
645
+ - spec/zen/security.rb
597
646
  - spec/zen/theme.rb
598
647
  - spec/zen/validation.rb
648
+ - spec/zen/vendor/sequel_sluggable.rb
599
649
  - zen.gemspec
600
650
  homepage: http://zen-cms.com/
601
651
  licenses: []
602
- post_install_message:
652
+ post_install_message: ! "Thank you for installing Zen. Creating a new project can
653
+ be done by running\nthe following command:\n\n $ zen create\n\nThis command will
654
+ walk you through the steps required to create a new project\nusing Zen. Once your
655
+ project has been created you should not forget to migrate\nyour database, this can
656
+ be done as following:\n\n $ rake db:migrate\n\nKeep in mind that depending on
657
+ your database configuration (this can be found\nin config/database.rb) you might
658
+ have to install separate Rubygems. For example,\nfor SQLite3 you'll need to install
659
+ the sqlite3 gem.\n\nAfter the database has been migrated you can start your application:\n\n
660
+ \ $ ramaze start\n\nFor more information see the documentation: http://zen-cms.com/documentation"
603
661
  rdoc_options: []
604
662
  require_paths:
605
663
  - lib
@@ -617,7 +675,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
617
675
  version: '0'
618
676
  requirements: []
619
677
  rubyforge_project:
620
- rubygems_version: 1.8.10
678
+ rubygems_version: 1.8.16
621
679
  signing_key:
622
680
  specification_version: 3
623
681
  summary: Zen is a modular CMS written using Ramaze.