zen 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (303) hide show
  1. data/.gitignore +15 -0
  2. data/.mailmap +2 -0
  3. data/.rvmrc +2 -0
  4. data/.travis.yml +8 -3
  5. data/AUTHORS +1 -2
  6. data/CHANGELOG.md +48 -17
  7. data/README.md +44 -39
  8. data/Rakefile +4 -0
  9. data/bin/zen +5 -30
  10. data/lib/zen.rb +13 -19
  11. data/lib/zen/asset.rb +99 -64
  12. data/lib/zen/bin/create.rb +94 -0
  13. data/lib/zen/bin/runner.rb +118 -0
  14. data/lib/zen/controller/admin_controller.rb +52 -36
  15. data/lib/zen/controller/base_controller.rb +5 -5
  16. data/lib/zen/controller/frontend_controller.rb +7 -7
  17. data/lib/zen/controller/main_controller.rb +12 -10
  18. data/lib/zen/controller/preview.rb +15 -11
  19. data/lib/zen/helper/acl.rb +73 -53
  20. data/lib/zen/helper/blue_form_vendor.rb +689 -0
  21. data/lib/zen/helper/breadcrumb.rb +23 -19
  22. data/lib/zen/helper/message.rb +3 -3
  23. data/lib/zen/helper/theme.rb +18 -13
  24. data/lib/zen/language.rb +62 -58
  25. data/lib/zen/language/en/zen_general.yml +2 -4
  26. data/lib/zen/language/nl/zen_general.yml +2 -4
  27. data/lib/zen/layout/admin.xhtml +3 -12
  28. data/lib/zen/layout/login.xhtml +1 -6
  29. data/lib/zen/model/methods.rb +6 -6
  30. data/lib/zen/model/settings.rb +5 -4
  31. data/lib/zen/package.rb +47 -38
  32. data/lib/zen/package/all.rb +3 -5
  33. data/lib/zen/package/base.rb +7 -7
  34. data/lib/zen/package/categories/lib/categories.rb +8 -3
  35. data/lib/zen/package/categories/lib/categories/controller/categories.rb +81 -55
  36. data/lib/zen/package/categories/lib/categories/controller/category_groups.rb +45 -44
  37. data/lib/zen/package/categories/lib/categories/helper/category.rb +88 -0
  38. data/lib/zen/package/categories/lib/categories/language/en/categories.yml +5 -4
  39. data/lib/zen/package/categories/lib/categories/language/en/category_groups.yml +5 -4
  40. data/lib/zen/package/categories/lib/categories/language/nl/categories.yml +5 -4
  41. data/lib/zen/package/categories/lib/categories/language/nl/category_groups.yml +5 -4
  42. data/lib/zen/package/categories/lib/categories/model/category.rb +15 -13
  43. data/lib/zen/package/categories/lib/categories/model/category_group.rb +3 -3
  44. data/lib/zen/package/categories/lib/categories/plugin/categories.rb +36 -25
  45. data/lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml +49 -56
  46. data/lib/zen/package/categories/lib/categories/view/admin/categories/index.xhtml +48 -35
  47. data/lib/zen/package/categories/lib/categories/view/admin/category-groups/form.xhtml +36 -29
  48. data/lib/zen/package/categories/lib/categories/view/admin/category-groups/index.xhtml +42 -37
  49. data/lib/zen/package/comments/lib/comments.rb +4 -1
  50. data/lib/zen/package/comments/lib/comments/controller/comments.rb +39 -32
  51. data/lib/zen/package/comments/lib/comments/controller/comments_form.rb +45 -26
  52. data/lib/zen/package/comments/lib/comments/helper/comment.rb +35 -0
  53. data/lib/zen/package/comments/lib/comments/language/en/comments.yml +9 -7
  54. data/lib/zen/package/comments/lib/comments/language/nl/comments.yml +10 -8
  55. data/lib/zen/package/comments/lib/comments/model/comment.rb +31 -17
  56. data/lib/zen/package/comments/lib/comments/model/comment_status.rb +15 -0
  57. data/lib/zen/package/comments/lib/comments/plugin/anti_spam.rb +27 -18
  58. data/lib/zen/package/comments/lib/comments/plugin/comments.rb +25 -20
  59. data/lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml +61 -54
  60. data/lib/zen/package/comments/lib/comments/view/admin/comments/index.xhtml +38 -23
  61. data/lib/zen/package/comments/migrations/1308774099_comment_status.rb +60 -0
  62. data/lib/zen/package/custom_fields/lib/custom_fields.rb +33 -7
  63. data/lib/zen/package/custom_fields/lib/custom_fields/blue_form_parameters.rb +209 -0
  64. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_groups.rb +50 -47
  65. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_types.rb +215 -0
  66. data/lib/zen/package/custom_fields/lib/custom_fields/controller/custom_fields.rb +111 -73
  67. data/lib/zen/package/custom_fields/lib/custom_fields/helper/custom_field.rb +79 -0
  68. data/lib/zen/package/custom_fields/lib/custom_fields/language/en/custom_field_groups.yml +20 -19
  69. data/lib/zen/package/custom_fields/lib/custom_fields/language/en/custom_field_types.yml +40 -0
  70. data/lib/zen/package/custom_fields/lib/custom_fields/language/en/custom_fields.yml +34 -32
  71. data/lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_field_groups.yml +5 -4
  72. data/lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_field_types.yml +40 -0
  73. data/lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_fields.yml +18 -16
  74. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field.rb +31 -11
  75. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_method.rb +15 -0
  76. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_type.rb +50 -0
  77. data/lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_value.rb +28 -7
  78. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/form.xhtml +33 -28
  79. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/index.xhtml +48 -46
  80. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/form.xhtml +61 -0
  81. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/index.xhtml +93 -0
  82. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/form.xhtml +105 -99
  83. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/index.xhtml +43 -39
  84. data/lib/zen/package/custom_fields/migrations/1295255665_create_schema.rb +47 -16
  85. data/lib/zen/package/custom_fields/migrations/1310659580_custom_field_types.rb +148 -0
  86. data/lib/zen/package/custom_fields/migrations/1311694920_rename_css_class.rb +11 -0
  87. data/lib/zen/package/menus/lib/menus/controller/menu_items.rb +40 -35
  88. data/lib/zen/package/menus/lib/menus/controller/menus.rb +47 -43
  89. data/lib/zen/package/menus/lib/menus/helper/{menu_item.rb → menu.rb} +42 -15
  90. data/lib/zen/package/menus/lib/menus/language/en/menu_items.yml +5 -5
  91. data/lib/zen/package/menus/lib/menus/language/en/menus.yml +9 -8
  92. data/lib/zen/package/menus/lib/menus/language/nl/menu_items.yml +8 -8
  93. data/lib/zen/package/menus/lib/menus/language/nl/menus.yml +11 -10
  94. data/lib/zen/package/menus/lib/menus/model/menu.rb +5 -5
  95. data/lib/zen/package/menus/lib/menus/model/menu_item.rb +6 -5
  96. data/lib/zen/package/menus/lib/menus/plugin/menus.rb +41 -43
  97. data/lib/zen/package/menus/lib/menus/view/admin/menu-items/form.xhtml +59 -63
  98. data/lib/zen/package/menus/lib/menus/view/admin/menu-items/index.xhtml +35 -30
  99. data/lib/zen/package/menus/lib/menus/view/admin/menus/form.xhtml +46 -37
  100. data/lib/zen/package/menus/lib/menus/view/admin/menus/index.xhtml +37 -37
  101. data/lib/zen/package/menus/migrations/1297184342_create_schema.rb +5 -5
  102. data/lib/zen/package/menus/migrations/1308671733_rename_order_column.rb +11 -0
  103. data/lib/zen/package/menus/migrations/1311695030_rename_css_class.rb +17 -0
  104. data/lib/zen/package/sections/lib/sections.rb +18 -11
  105. data/lib/zen/package/sections/lib/sections/controller/section_entries.rb +115 -109
  106. data/lib/zen/package/sections/lib/sections/controller/sections.rb +72 -50
  107. data/lib/zen/package/sections/lib/sections/helper/section.rb +53 -0
  108. data/lib/zen/package/sections/lib/sections/language/en/section_entries.yml +5 -4
  109. data/lib/zen/package/sections/lib/sections/language/en/sections.yml +5 -4
  110. data/lib/zen/package/sections/lib/sections/language/nl/section_entries.yml +5 -4
  111. data/lib/zen/package/sections/lib/sections/language/nl/sections.yml +5 -4
  112. data/lib/zen/package/sections/lib/sections/model/section.rb +17 -9
  113. data/lib/zen/package/sections/lib/sections/model/section_entry.rb +192 -13
  114. data/lib/zen/package/sections/lib/sections/model/section_entry_status.rb +13 -0
  115. data/lib/zen/package/sections/lib/sections/plugin/section_entries.rb +60 -39
  116. data/lib/zen/package/sections/lib/sections/plugin/sections.rb +14 -11
  117. data/lib/zen/package/sections/lib/sections/view/admin/form.xhtml +100 -97
  118. data/lib/zen/package/sections/lib/sections/view/admin/index.xhtml +41 -39
  119. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/form.xhtml +95 -215
  120. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml +48 -40
  121. data/lib/zen/package/sections/migrations/1308672298_use_id_for_default_section.rb +40 -0
  122. data/lib/zen/package/sections/migrations/1308813320_section_entry_statuses.rb +58 -0
  123. data/lib/zen/package/settings/lib/settings/controller/settings.rb +5 -8
  124. data/lib/zen/package/settings/lib/settings/model/setting.rb +2 -37
  125. data/lib/zen/package/settings/lib/settings/plugin/setting_base.rb +18 -1
  126. data/lib/zen/package/settings/lib/settings/plugin/settings.rb +13 -7
  127. data/lib/zen/package/settings/lib/settings/view/admin/settings/index.xhtml +2 -1
  128. data/lib/zen/package/users/lib/users.rb +3 -1
  129. data/lib/zen/package/users/lib/users/controller/access_rules.rb +77 -60
  130. data/lib/zen/package/users/lib/users/controller/user_groups.rb +41 -36
  131. data/lib/zen/package/users/lib/users/controller/users.rb +48 -42
  132. data/lib/zen/package/users/lib/users/helper/users.rb +72 -0
  133. data/lib/zen/package/users/lib/users/language/en/access_rules.yml +6 -5
  134. data/lib/zen/package/users/lib/users/language/en/user_groups.yml +5 -4
  135. data/lib/zen/package/users/lib/users/language/en/users.yml +1 -0
  136. data/lib/zen/package/users/lib/users/language/nl/access_rules.yml +5 -4
  137. data/lib/zen/package/users/lib/users/language/nl/user_groups.yml +5 -4
  138. data/lib/zen/package/users/lib/users/language/nl/users.yml +1 -0
  139. data/lib/zen/package/users/lib/users/model/access_rule.rb +5 -1
  140. data/lib/zen/package/users/lib/users/model/user.rb +17 -10
  141. data/lib/zen/package/users/lib/users/public/admin/js/users/access_rules.js +10 -37
  142. data/lib/zen/package/users/lib/users/public/admin/js/users/lib/access_rules.js +49 -0
  143. data/lib/zen/package/users/lib/users/view/admin/access-rules/form.xhtml +105 -96
  144. data/lib/zen/package/users/lib/users/view/admin/access-rules/index.xhtml +48 -41
  145. data/lib/zen/package/users/lib/users/view/admin/user-groups/form.xhtml +42 -32
  146. data/lib/zen/package/users/lib/users/view/admin/user-groups/index.xhtml +43 -38
  147. data/lib/zen/package/users/lib/users/view/admin/users/form.xhtml +76 -67
  148. data/lib/zen/package/users/lib/users/view/admin/users/index.xhtml +43 -41
  149. data/lib/zen/package/users/lib/users/view/admin/users/login.xhtml +12 -9
  150. data/lib/zen/package/users/migrations/1295281013_create_schema.rb +2 -2
  151. data/lib/zen/plugin.rb +56 -50
  152. data/lib/zen/plugin/markup/lib/markup/markup.rb +33 -21
  153. data/lib/zen/public/admin/css/zen/buttons.css +11 -7
  154. data/lib/zen/public/admin/css/zen/datepicker.css +6 -6
  155. data/lib/zen/public/admin/css/zen/forms.css +2 -1
  156. data/lib/zen/public/admin/css/zen/general.css +15 -10
  157. data/lib/zen/public/admin/css/zen/layout.css +51 -20
  158. data/lib/zen/public/admin/css/zen/tables.css +39 -11
  159. data/lib/zen/public/admin/css/zen/tabs.css +6 -4
  160. data/lib/zen/public/admin/css/zen/window.css +11 -11
  161. data/lib/zen/public/{favicon.ico → admin/favicon.ico} +0 -0
  162. data/lib/zen/public/admin/images/zen/icons/asc.png +0 -0
  163. data/lib/zen/public/admin/images/zen/icons/desc.png +0 -0
  164. data/lib/zen/public/admin/js/vendor/datepicker.js +0 -11
  165. data/lib/zen/public/admin/js/{mootools → vendor/mootools}/core.js +0 -1
  166. data/lib/zen/public/admin/js/{mootools → vendor/mootools}/more.js +100 -29
  167. data/lib/zen/public/admin/js/zen/index.js +48 -0
  168. data/lib/zen/public/admin/js/zen/lib/asset.js +111 -0
  169. data/lib/zen/public/admin/js/zen/{editor.js → lib/editor.js} +107 -127
  170. data/lib/zen/public/admin/js/zen/{editor → lib/editor}/markdown.js +7 -9
  171. data/lib/zen/public/admin/js/zen/{editor → lib/editor}/textile.js +7 -9
  172. data/lib/zen/public/admin/js/zen/lib/html_table.js +143 -0
  173. data/lib/zen/public/admin/js/zen/{tabs.js → lib/tabs.js} +40 -37
  174. data/lib/zen/public/admin/js/zen/{window.js → lib/window.js} +24 -20
  175. data/lib/zen/spec/bacon/color_output.rb +39 -0
  176. data/lib/zen/spec/helper.rb +152 -0
  177. data/lib/zen/spec/simplecov.rb +22 -0
  178. data/lib/zen/task/build.rake +20 -43
  179. data/lib/zen/task/clean.rake +2 -6
  180. data/lib/zen/task/db.rake +8 -12
  181. data/lib/zen/task/package.rake +4 -10
  182. data/lib/zen/task/plugin.rake +3 -9
  183. data/lib/zen/task/proto.rake +0 -62
  184. data/lib/zen/task/test.rake +6 -3
  185. data/lib/zen/task/theme.rake +4 -11
  186. data/lib/zen/theme.rb +22 -24
  187. data/lib/zen/validation.rb +34 -27
  188. data/lib/zen/version.rb +2 -8
  189. data/lib/zen/view/head.xhtml +7 -0
  190. data/lib/zen/view/main.xhtml +7 -22
  191. data/{proto/package/migrations → pkg}/.gitkeep +0 -0
  192. data/proto/app/app.rb +1 -0
  193. data/proto/app/config/config.rb +5 -4
  194. data/proto/app/config/database.rb +19 -41
  195. data/proto/app/config/middlewares.rb +32 -29
  196. data/proto/{package/lib/package/view/admin/package/index.xhtml → app/log/database/dev/.gitkeep} +0 -0
  197. data/proto/app/log/database/live/.gitkeep +0 -0
  198. data/spec/Rakefile +26 -0
  199. data/spec/fixtures/zen/asset.rb +18 -0
  200. data/spec/fixtures/zen/helper/acl.rb +39 -0
  201. data/spec/fixtures/zen/helper/message.rb +19 -0
  202. data/spec/fixtures/zen/language/en/spec.yml +10 -0
  203. data/spec/fixtures/zen/language/nl/spec.yml +7 -0
  204. data/spec/fixtures/zen/package.rb +17 -0
  205. data/spec/fixtures/zen/package/comments/controller/comments_form.rb +27 -0
  206. data/spec/fixtures/zen/package/settings/plugin/settings.rb +20 -0
  207. data/spec/fixtures/zen/plugin.rb +7 -0
  208. data/spec/fixtures/zen/theme/404.xhtml +1 -0
  209. data/spec/fixtures/zen/theme/default-section/index.xhtml +1 -0
  210. data/spec/fixtures/zen/theme/helper/404.xhtml +1 -0
  211. data/spec/fixtures/zen/theme/helper/partial.xhtml +1 -0
  212. data/spec/fixtures/zen/theme/helper/wrong_partial.xhtml +1 -0
  213. data/spec/fixtures/zen/theme/partials/partial.xhtml +1 -0
  214. data/spec/fixtures/zen/theme/theme.rb +11 -0
  215. data/spec/fixtures/zen/validation.rb +22 -0
  216. data/spec/helper.rb +41 -0
  217. data/spec/zen/all.rb +5 -0
  218. data/spec/zen/asset.rb +97 -0
  219. data/spec/zen/bin/create.rb +89 -0
  220. data/spec/zen/bin/runner.rb +47 -0
  221. data/spec/zen/controller/admin_controller.rb +26 -0
  222. data/spec/zen/controller/main_controller.rb +81 -0
  223. data/spec/zen/controller/preview.rb +33 -0
  224. data/spec/zen/helper/acl.rb +149 -0
  225. data/spec/zen/helper/breadcrumb.rb +38 -0
  226. data/spec/zen/helper/message.rb +31 -0
  227. data/spec/zen/helper/theme.rb +58 -0
  228. data/spec/zen/language.rb +55 -0
  229. data/spec/zen/package.rb +23 -0
  230. data/spec/zen/package/categories/controller/categories.rb +123 -0
  231. data/spec/zen/package/categories/controller/category_groups.rb +108 -0
  232. data/spec/zen/package/categories/helper/category.rb +75 -0
  233. data/spec/zen/package/categories/plugin/categories.rb +92 -0
  234. data/spec/zen/package/comments/controller/comments.rb +134 -0
  235. data/spec/zen/package/comments/controller/comments_form.rb +343 -0
  236. data/spec/zen/package/comments/helper/comment.rb +47 -0
  237. data/spec/zen/package/comments/plugin/anti_spam.rb +59 -0
  238. data/spec/zen/package/comments/plugin/comments.rb +107 -0
  239. data/spec/zen/package/custom_fields/blue_form_parameters.rb +183 -0
  240. data/spec/zen/package/custom_fields/controller/custom_field_groups.rb +120 -0
  241. data/spec/zen/package/custom_fields/controller/custom_field_types.rb +169 -0
  242. data/spec/zen/package/custom_fields/controller/custom_fields.rb +158 -0
  243. data/spec/zen/package/custom_fields/helper/custom_field.rb +86 -0
  244. data/spec/zen/package/menus/controller/menu_items.rb +110 -0
  245. data/spec/zen/package/menus/controller/menus.rb +110 -0
  246. data/spec/zen/package/menus/helper/menu.rb +75 -0
  247. data/spec/zen/package/menus/plugin/menus.rb +120 -0
  248. data/spec/zen/package/sections/controller/section_entries.rb +201 -0
  249. data/spec/zen/package/sections/controller/sections.rb +116 -0
  250. data/spec/zen/package/sections/helper/section.rb +74 -0
  251. data/spec/zen/package/sections/plugin/section_entries.rb +161 -0
  252. data/spec/zen/package/sections/plugin/sections.rb +75 -0
  253. data/spec/zen/package/settings/controller/settings.rb +36 -0
  254. data/spec/zen/package/settings/plugin/settings.rb +33 -0
  255. data/spec/zen/package/users/controller/access_rules.rb +90 -0
  256. data/spec/zen/package/users/controller/user_groups.rb +101 -0
  257. data/spec/zen/package/users/controller/users.rb +130 -0
  258. data/spec/zen/package/users/helper/users.rb +97 -0
  259. data/spec/zen/plugin.rb +64 -0
  260. data/spec/zen/plugin/helper.rb +11 -0
  261. data/spec/zen/plugin/markup.rb +44 -0
  262. data/spec/zen/theme.rb +41 -0
  263. data/spec/zen/validation.rb +63 -0
  264. data/zen.gemspec +36 -0
  265. metadata +159 -113
  266. data/MANIFEST +0 -266
  267. data/lib/zen/bin/app.rb +0 -40
  268. data/lib/zen/ext/string.rb +0 -185
  269. data/lib/zen/helper/common.rb +0 -106
  270. data/lib/zen/package/categories/lib/categories/view/admin/categories/edit.xhtml +0 -7
  271. data/lib/zen/package/categories/lib/categories/view/admin/categories/new.xhtml +0 -7
  272. data/lib/zen/package/categories/lib/categories/view/admin/category-groups/edit.xhtml +0 -7
  273. data/lib/zen/package/categories/lib/categories/view/admin/category-groups/new.xhtml +0 -7
  274. data/lib/zen/package/comments/lib/comments/view/admin/comments/edit.xhtml +0 -7
  275. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/edit.xhtml +0 -7
  276. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/new.xhtml +0 -7
  277. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/edit.xhtml +0 -7
  278. data/lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/new.xhtml +0 -7
  279. data/lib/zen/package/menus/lib/menus/view/admin/menu-items/edit.xhtml +0 -7
  280. data/lib/zen/package/menus/lib/menus/view/admin/menu-items/new.xhtml +0 -7
  281. data/lib/zen/package/menus/lib/menus/view/admin/menus/edit.xhtml +0 -7
  282. data/lib/zen/package/menus/lib/menus/view/admin/menus/new.xhtml +0 -7
  283. data/lib/zen/package/sections/lib/sections/view/admin/edit.xhtml +0 -7
  284. data/lib/zen/package/sections/lib/sections/view/admin/new.xhtml +0 -7
  285. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/edit.xhtml +0 -7
  286. data/lib/zen/package/sections/lib/sections/view/admin/section-entries/new.xhtml +0 -7
  287. data/lib/zen/package/users/lib/users/view/admin/access-rules/edit.xhtml +0 -7
  288. data/lib/zen/package/users/lib/users/view/admin/access-rules/new.xhtml +0 -7
  289. data/lib/zen/package/users/lib/users/view/admin/user-groups/edit.xhtml +0 -7
  290. data/lib/zen/package/users/lib/users/view/admin/user-groups/new.xhtml +0 -7
  291. data/lib/zen/package/users/lib/users/view/admin/users/edit.xhtml +0 -7
  292. data/lib/zen/package/users/lib/users/view/admin/users/new.xhtml +0 -7
  293. data/lib/zen/plugin/controller.rb +0 -59
  294. data/lib/zen/public/admin/css/zen/notifications.css +0 -84
  295. data/lib/zen/public/admin/images/zen/icons/large/error.png +0 -0
  296. data/lib/zen/public/admin/images/zen/icons/large/notice.png +0 -0
  297. data/lib/zen/public/admin/images/zen/icons/large/success.png +0 -0
  298. data/lib/zen/public/admin/js/zen/core.js +0 -73
  299. data/lib/zen/public/admin/js/zen/init.js +0 -80
  300. data/proto/package/lib/package.rb +0 -21
  301. data/proto/package/lib/package/controller/controllers.rb +0 -50
  302. data/proto/package/lib/package/language/en/languages.yml +0 -4
  303. data/proto/package/lib/package/model/model.rb +0 -12
@@ -0,0 +1,64 @@
1
+ require File.expand_path('../../helper', __FILE__)
2
+ require 'rdiscount'
3
+ require File.join(Zen::Fixtures, 'plugin')
4
+
5
+ describe("Zen::Plugin") do
6
+
7
+ it("No plugins should be added") do
8
+ should.raise?(Zen::PluginError) { Zen::Plugin[:foobar] }
9
+ end
10
+
11
+ it("Add a new plugin") do
12
+ Zen::Plugin.add do |plugin|
13
+ plugin.name = 'spec'
14
+ plugin.author = 'Yorick Peterse'
15
+ plugin.about = 'A simple spec plugin'
16
+ plugin.url = 'http://zen-cms.com/'
17
+ plugin.plugin = SpecPlugin
18
+ end
19
+
20
+ Zen::Plugin::Registered.empty?.should === false
21
+ Zen::Plugin[:spec].name.should === :spec
22
+ end
23
+
24
+ it("Retrieve a plugin by it's name") do
25
+ plugin = Zen::Plugin[:spec]
26
+
27
+ plugin.name.should === :spec
28
+ plugin.author.should === 'Yorick Peterse'
29
+ end
30
+
31
+ it('Retrieve a plugin using a string') do
32
+ plugin = Zen::Plugin['spec']
33
+
34
+ plugin.name.should === :spec
35
+ plugin.author.should === 'Yorick Peterse'
36
+ end
37
+
38
+ it("Execute a plugin") do
39
+ response = plugin(:spec, :upcase, 'hello world')
40
+
41
+ response.should === 'HELLO WORLD'
42
+ end
43
+
44
+ it('Execute a plugin using a class method') do
45
+ response = Zen::Plugin.plugin('spec', :upcase, 'hello world')
46
+
47
+ response.should === 'HELLO WORLD'
48
+ end
49
+
50
+ it('Add an existing plugin') do
51
+ begin
52
+ Zen::Plugin.add do |plugin|
53
+ plugin.name = 'spec'
54
+ plugin.author = 'Yorick Peterse'
55
+ plugin.about = 'A simple spec plugin'
56
+ plugin.url = 'http://zen-cms.com/'
57
+ plugin.plugin = SpecPlugin
58
+ end
59
+ rescue => e
60
+ e.message.should === 'The plugin spec already exists.'
61
+ end
62
+ end
63
+
64
+ end
@@ -0,0 +1,11 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+
3
+ describe('Zen::Plugin::Helper') do
4
+ extend ::Zen::Plugin::Helper
5
+
6
+ it("Validate the type of a variable") do
7
+ should.raise?(TypeError) do
8
+ validate_type(10, :number, String)
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,44 @@
1
+ require File.expand_path('../../../helper', __FILE__)
2
+ require 'rdiscount'
3
+
4
+ describe("Zen::Plugin::Markup") do
5
+
6
+ it("Convert Markdown to HTML") do
7
+ html = plugin(:markup, :markdown, 'hello **world**').strip
8
+
9
+ html.should === '<p>hello <strong>world</strong></p>'
10
+ end
11
+
12
+ it("Convert HTML to plain text") do
13
+ text = plugin(:markup, :plain, '<p>hello world</p>').strip
14
+
15
+ text.should === '&lt;p&gt;hello world&lt;&#x2F;p&gt;'
16
+ end
17
+
18
+ it("Convert to HTML to HTML") do
19
+ html = plugin(:markup, :html, '<p>hello world</p>')
20
+
21
+ html.should === '<p>hello world</p>'
22
+ end
23
+
24
+ it('Specify a non existing engine') do
25
+ begin
26
+ plugin(:markup, :foobar, 'hello')
27
+ rescue => e
28
+ e.message.should === 'The markup engine "foobar" is invalid.'
29
+ end
30
+ end
31
+
32
+ it('Specify an engine without a message') do
33
+ Zen::Plugin::Markup::Engines['foobar'] = 'foobar'
34
+
35
+ begin
36
+ plugin(:markup, :foobar, 'hello')
37
+ rescue => e
38
+ e.message.should === 'The engine "foobar" has no matching method.'
39
+ end
40
+
41
+ Zen::Plugin::Markup::Engines.delete('foobar')
42
+ end
43
+
44
+ end
data/spec/zen/theme.rb ADDED
@@ -0,0 +1,41 @@
1
+ require File.expand_path('../../helper', __FILE__)
2
+
3
+ describe("Zen::Theme") do
4
+
5
+ it("No themes should exist") do
6
+ should.raise?(Zen::ThemeError) { Zen::Theme[:spec] }
7
+ end
8
+
9
+ it("Add a new theme") do
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__
16
+ end
17
+
18
+ should.not.raise?(Zen::ThemeError) { Zen::Theme[:spec] }
19
+ end
20
+
21
+ it('Add an existing theme') do
22
+ should.raise?(Zen::ValidationError) do
23
+ Zen::Theme.add do |t|
24
+ t.name = 'spec'
25
+ t.author = 'Yorick Peterse'
26
+ t.about = 'An example theme'
27
+ t.template_dir = __DIR__
28
+ end
29
+ end
30
+ end
31
+
32
+ it("Retrieve our 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
+
40
+ end
41
+
@@ -0,0 +1,63 @@
1
+ require File.expand_path('../../helper', __FILE__)
2
+ require File.join(Zen::Fixtures, 'validation')
3
+ require 'fileutils'
4
+
5
+ describe('Zen::Validation') do
6
+
7
+ it('Validate the presence of an attribute') do
8
+ object = ValidationObject.new
9
+
10
+ should.raise?(Zen::ValidationError) { object.presence }
11
+
12
+ # Now validate it with a value
13
+ object.name = 'yorick'
14
+
15
+ should.not.raise?(Zen::ValidationError) { object.presence }
16
+ end
17
+
18
+ it('Validate the length of an attribute') do
19
+ object = ValidationObject.new
20
+
21
+ should.raise?(Zen::ValidationError) { object.length }
22
+
23
+ # Too short
24
+ object.name = 'ab'
25
+
26
+ should.raise?(Zen::ValidationError) { object.length }
27
+
28
+ # Too long
29
+ object.name = 'abcdef'
30
+
31
+ should.raise?(Zen::ValidationError) { object.length }
32
+
33
+ # Perfect
34
+ object.name = 'ab3'
35
+
36
+ should.not.raise?(Zen::ValidationError) { object.length }
37
+ end
38
+
39
+ it('Validate the format of an attribute') do
40
+ object = ValidationObject.new
41
+ object.name = 10
42
+
43
+ should.raise?(Zen::ValidationError) { object.format }
44
+
45
+ object.name = 'hello'
46
+
47
+ should.not.raise?(Zen::ValidationError) { object.format }
48
+ end
49
+
50
+ it('Validate a file') do
51
+ object = ValidationObject.new
52
+ object.file = '/tmp/zen_validation'
53
+
54
+ should.raise?(Zen::ValidationError) { object.exists }
55
+
56
+ FileUtils.touch('/tmp/zen_validation')
57
+
58
+ should.not.raise?(Zen::ValidationError) { object.exists }
59
+
60
+ File.unlink('/tmp/zen_validation')
61
+ end
62
+
63
+ end
data/zen.gemspec ADDED
@@ -0,0 +1,36 @@
1
+ require File.expand_path('../lib/zen/version', __FILE__)
2
+
3
+ # Get all the files from the manifest
4
+ path = File.expand_path('../', __FILE__)
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = 'zen'
8
+ s.version = Zen::Version
9
+ s.date = '03-08-2011'
10
+ s.authors = ['Yorick Peterse']
11
+ s.email = 'info@yorickpeterse.com'
12
+ s.summary = 'Zen is a modular CMS written using Ramaze.'
13
+ s.homepage = 'http://zen-cms.com/'
14
+ s.description = 'Zen is a modular CMS written using Ramaze. Unlike traditional
15
+ CMS\' you are completely free to build whatever you want.'
16
+
17
+ s.files = `cd #{path}; git ls-files`.split("\n").sort
18
+ s.has_rdoc = 'yard'
19
+ s.executables = ['zen']
20
+
21
+ s.add_dependency('sequel' , ['~> 3.26'])
22
+ s.add_dependency('ramaze' , ['~> 2011.07.25'])
23
+ s.add_dependency('bcrypt-ruby' , ['~> 2.1.4'])
24
+ s.add_dependency('sequel_sluggable', ['~> 0.0.6'])
25
+ s.add_dependency('rake' , ['~> 0.9.2'])
26
+ s.add_dependency('loofah' , ['~> 1.0.0'])
27
+
28
+ s.add_development_dependency('rdiscount', ['~> 1.6.8'])
29
+ s.add_development_dependency('bacon' , ['~> 1.1.0'])
30
+ s.add_development_dependency('yard' , ['~> 0.7.2'])
31
+ s.add_development_dependency('capybara' , ['~> 1.0.0'])
32
+ s.add_development_dependency('sqlite3' , ['~> 1.3.4'])
33
+ s.add_development_dependency('defensio' , ['~> 0.9.1'])
34
+ s.add_development_dependency('simplecov', ['~> 0.4.2'])
35
+ s.add_development_dependency('webmock' , ['~> 1.6.4'])
36
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: zen
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.7
5
+ version: 0.2.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - Yorick Peterse
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-01 00:00:00 +02:00
13
+ date: 2011-08-03 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -21,7 +21,7 @@ dependencies:
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 3.24.1
24
+ version: "3.26"
25
25
  type: :runtime
26
26
  version_requirements: *id001
27
27
  - !ruby/object:Gem::Dependency
@@ -32,7 +32,7 @@ dependencies:
32
32
  requirements:
33
33
  - - ~>
34
34
  - !ruby/object:Gem::Version
35
- version: 2011.01.30
35
+ version: 2011.07.25
36
36
  type: :runtime
37
37
  version_requirements: *id002
38
38
  - !ruby/object:Gem::Dependency
@@ -58,140 +58,118 @@ dependencies:
58
58
  type: :runtime
59
59
  version_requirements: *id004
60
60
  - !ruby/object:Gem::Dependency
61
- name: commander
61
+ name: rake
62
62
  prerelease: false
63
63
  requirement: &id005 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 4.0.4
68
+ version: 0.9.2
69
69
  type: :runtime
70
70
  version_requirements: *id005
71
71
  - !ruby/object:Gem::Dependency
72
- name: rake
72
+ name: loofah
73
73
  prerelease: false
74
74
  requirement: &id006 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ~>
78
78
  - !ruby/object:Gem::Version
79
- version: 0.9.2
79
+ version: 1.0.0
80
80
  type: :runtime
81
81
  version_requirements: *id006
82
82
  - !ruby/object:Gem::Dependency
83
- name: loofah
83
+ name: rdiscount
84
84
  prerelease: false
85
85
  requirement: &id007 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ~>
89
89
  - !ruby/object:Gem::Version
90
- version: 1.0.0
91
- type: :runtime
90
+ version: 1.6.8
91
+ type: :development
92
92
  version_requirements: *id007
93
93
  - !ruby/object:Gem::Dependency
94
- name: rdiscount
94
+ name: bacon
95
95
  prerelease: false
96
96
  requirement: &id008 !ruby/object:Gem::Requirement
97
97
  none: false
98
98
  requirements:
99
99
  - - ~>
100
100
  - !ruby/object:Gem::Version
101
- version: 1.6.8
101
+ version: 1.1.0
102
102
  type: :development
103
103
  version_requirements: *id008
104
104
  - !ruby/object:Gem::Dependency
105
- name: RedCloth
105
+ name: yard
106
106
  prerelease: false
107
107
  requirement: &id009 !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
110
110
  - - ~>
111
111
  - !ruby/object:Gem::Version
112
- version: 4.2.7
112
+ version: 0.7.2
113
113
  type: :development
114
114
  version_requirements: *id009
115
115
  - !ruby/object:Gem::Dependency
116
- name: rspec
116
+ name: capybara
117
117
  prerelease: false
118
118
  requirement: &id010 !ruby/object:Gem::Requirement
119
119
  none: false
120
120
  requirements:
121
121
  - - ~>
122
122
  - !ruby/object:Gem::Version
123
- version: 2.6.0
123
+ version: 1.0.0
124
124
  type: :development
125
125
  version_requirements: *id010
126
126
  - !ruby/object:Gem::Dependency
127
- name: yard
127
+ name: sqlite3
128
128
  prerelease: false
129
129
  requirement: &id011 !ruby/object:Gem::Requirement
130
130
  none: false
131
131
  requirements:
132
132
  - - ~>
133
133
  - !ruby/object:Gem::Version
134
- version: 0.7.1
134
+ version: 1.3.4
135
135
  type: :development
136
136
  version_requirements: *id011
137
137
  - !ruby/object:Gem::Dependency
138
- name: capybara
138
+ name: defensio
139
139
  prerelease: false
140
140
  requirement: &id012 !ruby/object:Gem::Requirement
141
141
  none: false
142
142
  requirements:
143
143
  - - ~>
144
144
  - !ruby/object:Gem::Version
145
- version: 0.4.1.2
145
+ version: 0.9.1
146
146
  type: :development
147
147
  version_requirements: *id012
148
148
  - !ruby/object:Gem::Dependency
149
- name: rack-test
149
+ name: simplecov
150
150
  prerelease: false
151
151
  requirement: &id013 !ruby/object:Gem::Requirement
152
152
  none: false
153
153
  requirements:
154
154
  - - ~>
155
155
  - !ruby/object:Gem::Version
156
- version: 0.6.0
156
+ version: 0.4.2
157
157
  type: :development
158
158
  version_requirements: *id013
159
159
  - !ruby/object:Gem::Dependency
160
- name: sqlite3
160
+ name: webmock
161
161
  prerelease: false
162
162
  requirement: &id014 !ruby/object:Gem::Requirement
163
163
  none: false
164
164
  requirements:
165
165
  - - ~>
166
166
  - !ruby/object:Gem::Version
167
- version: 1.3.3
167
+ version: 1.6.4
168
168
  type: :development
169
169
  version_requirements: *id014
170
- - !ruby/object:Gem::Dependency
171
- name: defensio
172
- prerelease: false
173
- requirement: &id015 !ruby/object:Gem::Requirement
174
- none: false
175
- requirements:
176
- - - ~>
177
- - !ruby/object:Gem::Version
178
- version: 0.9.1
179
- type: :development
180
- version_requirements: *id015
181
- - !ruby/object:Gem::Dependency
182
- name: yard
183
- prerelease: false
184
- requirement: &id016 !ruby/object:Gem::Requirement
185
- none: false
186
- requirements:
187
- - - ~>
188
- - !ruby/object:Gem::Version
189
- version: 0.7.1
190
- type: :development
191
- version_requirements: *id016
192
170
  description: |-
193
- Zen is a modular CMS written using Ramaze. Unlike traditional CMS' you
194
- are completely free to build whatever you want.
171
+ Zen is a modular CMS written using Ramaze. Unlike traditional
172
+ CMS' you are completely free to build whatever you want.
195
173
  email: info@yorickpeterse.com
196
174
  executables:
197
175
  - zen
@@ -200,16 +178,20 @@ extensions: []
200
178
  extra_rdoc_files: []
201
179
 
202
180
  files:
181
+ - .gitignore
182
+ - .mailmap
183
+ - .rvmrc
203
184
  - .travis.yml
204
185
  - AUTHORS
205
186
  - CHANGELOG.md
206
187
  - LICENSE
207
- - MANIFEST
208
188
  - README.md
209
189
  - Rakefile
210
190
  - bin/zen
191
+ - lib/zen.rb
211
192
  - lib/zen/asset.rb
212
- - lib/zen/bin/app.rb
193
+ - lib/zen/bin/create.rb
194
+ - lib/zen/bin/runner.rb
213
195
  - lib/zen/controller/admin_controller.rb
214
196
  - lib/zen/controller/base_controller.rb
215
197
  - lib/zen/controller/frontend_controller.rb
@@ -220,25 +202,27 @@ files:
220
202
  - lib/zen/error/plugin_error.rb
221
203
  - lib/zen/error/theme_error.rb
222
204
  - lib/zen/error/validation_error.rb
223
- - lib/zen/ext/string.rb
224
205
  - lib/zen/helper/acl.rb
206
+ - lib/zen/helper/blue_form_vendor.rb
225
207
  - lib/zen/helper/breadcrumb.rb
226
- - lib/zen/helper/common.rb
227
208
  - lib/zen/helper/message.rb
228
209
  - lib/zen/helper/theme.rb
210
+ - lib/zen/language.rb
229
211
  - lib/zen/language/en/zen_general.yml
230
212
  - lib/zen/language/en/zen_models.yml
231
213
  - lib/zen/language/nl/zen_general.yml
232
214
  - lib/zen/language/nl/zen_models.yml
233
- - lib/zen/language.rb
234
215
  - lib/zen/layout/admin.xhtml
235
216
  - lib/zen/layout/login.xhtml
236
217
  - lib/zen/model/methods.rb
237
218
  - lib/zen/model/settings.rb
219
+ - lib/zen/package.rb
238
220
  - lib/zen/package/all.rb
239
221
  - lib/zen/package/base.rb
222
+ - lib/zen/package/categories/lib/categories.rb
240
223
  - lib/zen/package/categories/lib/categories/controller/categories.rb
241
224
  - lib/zen/package/categories/lib/categories/controller/category_groups.rb
225
+ - lib/zen/package/categories/lib/categories/helper/category.rb
242
226
  - lib/zen/package/categories/lib/categories/language/en/categories.yml
243
227
  - lib/zen/package/categories/lib/categories/language/en/category_groups.yml
244
228
  - lib/zen/package/categories/lib/categories/language/nl/categories.yml
@@ -246,53 +230,58 @@ files:
246
230
  - lib/zen/package/categories/lib/categories/model/category.rb
247
231
  - lib/zen/package/categories/lib/categories/model/category_group.rb
248
232
  - lib/zen/package/categories/lib/categories/plugin/categories.rb
249
- - lib/zen/package/categories/lib/categories/view/admin/categories/edit.xhtml
250
233
  - lib/zen/package/categories/lib/categories/view/admin/categories/form.xhtml
251
234
  - lib/zen/package/categories/lib/categories/view/admin/categories/index.xhtml
252
- - lib/zen/package/categories/lib/categories/view/admin/categories/new.xhtml
253
- - lib/zen/package/categories/lib/categories/view/admin/category-groups/edit.xhtml
254
235
  - lib/zen/package/categories/lib/categories/view/admin/category-groups/form.xhtml
255
236
  - lib/zen/package/categories/lib/categories/view/admin/category-groups/index.xhtml
256
- - lib/zen/package/categories/lib/categories/view/admin/category-groups/new.xhtml
257
- - lib/zen/package/categories/lib/categories.rb
258
237
  - lib/zen/package/categories/migrations/.gitkeep
259
238
  - lib/zen/package/categories/migrations/1295282303_create_schema.rb
239
+ - lib/zen/package/comments/lib/comments.rb
260
240
  - lib/zen/package/comments/lib/comments/controller/comments.rb
261
241
  - lib/zen/package/comments/lib/comments/controller/comments_form.rb
242
+ - lib/zen/package/comments/lib/comments/helper/comment.rb
262
243
  - lib/zen/package/comments/lib/comments/language/en/comments.yml
263
244
  - lib/zen/package/comments/lib/comments/language/nl/comments.yml
264
245
  - lib/zen/package/comments/lib/comments/model/comment.rb
246
+ - lib/zen/package/comments/lib/comments/model/comment_status.rb
265
247
  - lib/zen/package/comments/lib/comments/plugin/anti_spam.rb
266
248
  - lib/zen/package/comments/lib/comments/plugin/comments.rb
267
- - lib/zen/package/comments/lib/comments/view/admin/comments/edit.xhtml
268
249
  - lib/zen/package/comments/lib/comments/view/admin/comments/form.xhtml
269
250
  - lib/zen/package/comments/lib/comments/view/admin/comments/index.xhtml
270
- - lib/zen/package/comments/lib/comments.rb
271
251
  - lib/zen/package/comments/migrations/.gitkeep
272
252
  - lib/zen/package/comments/migrations/1295282202_create_schema.rb
253
+ - lib/zen/package/comments/migrations/1308774099_comment_status.rb
254
+ - lib/zen/package/custom_fields/lib/custom_fields.rb
255
+ - lib/zen/package/custom_fields/lib/custom_fields/blue_form_parameters.rb
273
256
  - lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_groups.rb
257
+ - lib/zen/package/custom_fields/lib/custom_fields/controller/custom_field_types.rb
274
258
  - lib/zen/package/custom_fields/lib/custom_fields/controller/custom_fields.rb
259
+ - lib/zen/package/custom_fields/lib/custom_fields/helper/custom_field.rb
275
260
  - lib/zen/package/custom_fields/lib/custom_fields/language/en/custom_field_groups.yml
261
+ - lib/zen/package/custom_fields/lib/custom_fields/language/en/custom_field_types.yml
276
262
  - lib/zen/package/custom_fields/lib/custom_fields/language/en/custom_fields.yml
277
263
  - lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_field_groups.yml
264
+ - lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_field_types.yml
278
265
  - lib/zen/package/custom_fields/lib/custom_fields/language/nl/custom_fields.yml
279
266
  - lib/zen/package/custom_fields/lib/custom_fields/model/custom_field.rb
280
267
  - lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_group.rb
268
+ - lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_method.rb
269
+ - lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_type.rb
281
270
  - lib/zen/package/custom_fields/lib/custom_fields/model/custom_field_value.rb
282
- - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/edit.xhtml
283
271
  - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/form.xhtml
284
272
  - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/index.xhtml
285
- - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-groups/new.xhtml
286
- - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/edit.xhtml
273
+ - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/form.xhtml
274
+ - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-field-types/index.xhtml
287
275
  - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/form.xhtml
288
276
  - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/index.xhtml
289
- - lib/zen/package/custom_fields/lib/custom_fields/view/admin/custom-fields/new.xhtml
290
- - lib/zen/package/custom_fields/lib/custom_fields.rb
291
277
  - lib/zen/package/custom_fields/migrations/.gitkeep
292
278
  - lib/zen/package/custom_fields/migrations/1295255665_create_schema.rb
279
+ - lib/zen/package/custom_fields/migrations/1310659580_custom_field_types.rb
280
+ - lib/zen/package/custom_fields/migrations/1311694920_rename_css_class.rb
281
+ - lib/zen/package/menus/lib/menus.rb
293
282
  - lib/zen/package/menus/lib/menus/controller/menu_items.rb
294
283
  - lib/zen/package/menus/lib/menus/controller/menus.rb
295
- - lib/zen/package/menus/lib/menus/helper/menu_item.rb
284
+ - lib/zen/package/menus/lib/menus/helper/menu.rb
296
285
  - lib/zen/package/menus/lib/menus/language/en/menu_items.yml
297
286
  - lib/zen/package/menus/lib/menus/language/en/menus.yml
298
287
  - lib/zen/package/menus/lib/menus/language/nl/menu_items.yml
@@ -300,39 +289,37 @@ files:
300
289
  - lib/zen/package/menus/lib/menus/model/menu.rb
301
290
  - lib/zen/package/menus/lib/menus/model/menu_item.rb
302
291
  - lib/zen/package/menus/lib/menus/plugin/menus.rb
303
- - lib/zen/package/menus/lib/menus/view/admin/menu-items/edit.xhtml
304
292
  - lib/zen/package/menus/lib/menus/view/admin/menu-items/form.xhtml
305
293
  - lib/zen/package/menus/lib/menus/view/admin/menu-items/index.xhtml
306
- - lib/zen/package/menus/lib/menus/view/admin/menu-items/new.xhtml
307
- - lib/zen/package/menus/lib/menus/view/admin/menus/edit.xhtml
308
294
  - lib/zen/package/menus/lib/menus/view/admin/menus/form.xhtml
309
295
  - lib/zen/package/menus/lib/menus/view/admin/menus/index.xhtml
310
- - lib/zen/package/menus/lib/menus/view/admin/menus/new.xhtml
311
- - lib/zen/package/menus/lib/menus.rb
312
296
  - lib/zen/package/menus/migrations/.gitkeep
313
297
  - lib/zen/package/menus/migrations/1297184342_create_schema.rb
298
+ - lib/zen/package/menus/migrations/1308671733_rename_order_column.rb
299
+ - lib/zen/package/menus/migrations/1311695030_rename_css_class.rb
300
+ - lib/zen/package/sections/lib/sections.rb
314
301
  - lib/zen/package/sections/lib/sections/controller/section_entries.rb
315
302
  - lib/zen/package/sections/lib/sections/controller/sections.rb
303
+ - lib/zen/package/sections/lib/sections/helper/section.rb
316
304
  - lib/zen/package/sections/lib/sections/language/en/section_entries.yml
317
305
  - lib/zen/package/sections/lib/sections/language/en/sections.yml
318
306
  - lib/zen/package/sections/lib/sections/language/nl/section_entries.yml
319
307
  - lib/zen/package/sections/lib/sections/language/nl/sections.yml
320
308
  - lib/zen/package/sections/lib/sections/model/section.rb
321
309
  - lib/zen/package/sections/lib/sections/model/section_entry.rb
310
+ - lib/zen/package/sections/lib/sections/model/section_entry_status.rb
322
311
  - lib/zen/package/sections/lib/sections/plugin/section_entries.rb
323
312
  - lib/zen/package/sections/lib/sections/plugin/sections.rb
324
- - lib/zen/package/sections/lib/sections/view/admin/edit.xhtml
325
313
  - lib/zen/package/sections/lib/sections/view/admin/form.xhtml
326
314
  - lib/zen/package/sections/lib/sections/view/admin/index.xhtml
327
- - lib/zen/package/sections/lib/sections/view/admin/new.xhtml
328
- - lib/zen/package/sections/lib/sections/view/admin/section-entries/edit.xhtml
329
315
  - lib/zen/package/sections/lib/sections/view/admin/section-entries/form.xhtml
330
316
  - lib/zen/package/sections/lib/sections/view/admin/section-entries/index.xhtml
331
- - lib/zen/package/sections/lib/sections/view/admin/section-entries/new.xhtml
332
- - lib/zen/package/sections/lib/sections.rb
333
317
  - lib/zen/package/sections/migrations/.gitkeep
334
318
  - lib/zen/package/sections/migrations/1295251836_create_schema.rb
335
319
  - lib/zen/package/sections/migrations/1306772479_remove_unique_slug.rb
320
+ - lib/zen/package/sections/migrations/1308672298_use_id_for_default_section.rb
321
+ - lib/zen/package/sections/migrations/1308813320_section_entry_statuses.rb
322
+ - lib/zen/package/settings/lib/settings.rb
336
323
  - lib/zen/package/settings/lib/settings/controller/settings.rb
337
324
  - lib/zen/package/settings/lib/settings/language/en/settings.yml
338
325
  - lib/zen/package/settings/lib/settings/language/nl/settings.yml
@@ -341,15 +328,16 @@ files:
341
328
  - lib/zen/package/settings/lib/settings/plugin/setting_base.rb
342
329
  - lib/zen/package/settings/lib/settings/plugin/settings.rb
343
330
  - lib/zen/package/settings/lib/settings/view/admin/settings/index.xhtml
344
- - lib/zen/package/settings/lib/settings.rb
345
331
  - lib/zen/package/settings/migrations/.gitkeep
346
332
  - lib/zen/package/settings/migrations/1295597111_create_schema.rb
347
333
  - lib/zen/package/settings/migrations/1299538742_add_language_key.rb
348
334
  - lib/zen/package/settings/migrations/1303196915_settings_plugin.rb
349
335
  - lib/zen/package/settings/migrations/1307796295_remove_website_enabled.rb
336
+ - lib/zen/package/users/lib/users.rb
350
337
  - lib/zen/package/users/lib/users/controller/access_rules.rb
351
338
  - lib/zen/package/users/lib/users/controller/user_groups.rb
352
339
  - lib/zen/package/users/lib/users/controller/users.rb
340
+ - lib/zen/package/users/lib/users/helper/users.rb
353
341
  - lib/zen/package/users/lib/users/language/en/access_rules.yml
354
342
  - lib/zen/package/users/lib/users/language/en/user_groups.yml
355
343
  - lib/zen/package/users/lib/users/language/en/users.yml
@@ -360,32 +348,24 @@ files:
360
348
  - lib/zen/package/users/lib/users/model/user.rb
361
349
  - lib/zen/package/users/lib/users/model/user_group.rb
362
350
  - lib/zen/package/users/lib/users/public/admin/js/users/access_rules.js
363
- - lib/zen/package/users/lib/users/view/admin/access-rules/edit.xhtml
351
+ - lib/zen/package/users/lib/users/public/admin/js/users/lib/access_rules.js
364
352
  - lib/zen/package/users/lib/users/view/admin/access-rules/form.xhtml
365
353
  - lib/zen/package/users/lib/users/view/admin/access-rules/index.xhtml
366
- - lib/zen/package/users/lib/users/view/admin/access-rules/new.xhtml
367
- - lib/zen/package/users/lib/users/view/admin/user-groups/edit.xhtml
368
354
  - lib/zen/package/users/lib/users/view/admin/user-groups/form.xhtml
369
355
  - lib/zen/package/users/lib/users/view/admin/user-groups/index.xhtml
370
- - lib/zen/package/users/lib/users/view/admin/user-groups/new.xhtml
371
- - lib/zen/package/users/lib/users/view/admin/users/edit.xhtml
372
356
  - lib/zen/package/users/lib/users/view/admin/users/form.xhtml
373
357
  - lib/zen/package/users/lib/users/view/admin/users/index.xhtml
374
358
  - lib/zen/package/users/lib/users/view/admin/users/login.xhtml
375
- - lib/zen/package/users/lib/users/view/admin/users/new.xhtml
376
- - lib/zen/package/users/lib/users.rb
377
359
  - lib/zen/package/users/migrations/.gitkeep
378
360
  - lib/zen/package/users/migrations/1295281013_create_schema.rb
379
361
  - lib/zen/package/users/migrations/1303510943_class_rules.rb
380
362
  - lib/zen/package/users/migrations/1304939855_user_settings.rb
381
- - lib/zen/package.rb
363
+ - lib/zen/plugin.rb
382
364
  - lib/zen/plugin/base.rb
383
- - lib/zen/plugin/controller.rb
384
365
  - lib/zen/plugin/helper.rb
366
+ - lib/zen/plugin/markup/lib/markup.rb
385
367
  - lib/zen/plugin/markup/lib/markup/language/en/markup.yml
386
368
  - lib/zen/plugin/markup/lib/markup/markup.rb
387
- - lib/zen/plugin/markup/lib/markup.rb
388
- - lib/zen/plugin.rb
389
369
  - lib/zen/public/admin/css/zen/buttons.css
390
370
  - lib/zen/public/admin/css/zen/datepicker.css
391
371
  - lib/zen/public/admin/css/zen/editor.css
@@ -394,25 +374,24 @@ files:
394
374
  - lib/zen/public/admin/css/zen/grid.css
395
375
  - lib/zen/public/admin/css/zen/layout.css
396
376
  - lib/zen/public/admin/css/zen/messages.css
397
- - lib/zen/public/admin/css/zen/notifications.css
398
377
  - lib/zen/public/admin/css/zen/reset.css
399
378
  - lib/zen/public/admin/css/zen/tables.css
400
379
  - lib/zen/public/admin/css/zen/tabs.css
401
380
  - lib/zen/public/admin/css/zen/window.css
381
+ - lib/zen/public/admin/favicon.ico
402
382
  - lib/zen/public/admin/images/zen/icons/accept.png
403
383
  - lib/zen/public/admin/images/zen/icons/add.png
384
+ - lib/zen/public/admin/images/zen/icons/asc.png
404
385
  - lib/zen/public/admin/images/zen/icons/back.png
405
386
  - lib/zen/public/admin/images/zen/icons/bold.png
406
387
  - lib/zen/public/admin/images/zen/icons/close.png
407
388
  - lib/zen/public/admin/images/zen/icons/delete.png
389
+ - lib/zen/public/admin/images/zen/icons/desc.png
408
390
  - lib/zen/public/admin/images/zen/icons/edit.png
409
391
  - lib/zen/public/admin/images/zen/icons/error.png
410
392
  - lib/zen/public/admin/images/zen/icons/help.png
411
393
  - lib/zen/public/admin/images/zen/icons/info.png
412
394
  - lib/zen/public/admin/images/zen/icons/italic.png
413
- - lib/zen/public/admin/images/zen/icons/large/error.png
414
- - lib/zen/public/admin/images/zen/icons/large/notice.png
415
- - lib/zen/public/admin/images/zen/icons/large/success.png
416
395
  - lib/zen/public/admin/images/zen/icons/link.png
417
396
  - lib/zen/public/admin/images/zen/icons/logout.png
418
397
  - lib/zen/public/admin/images/zen/icons/ol.png
@@ -421,17 +400,21 @@ files:
421
400
  - lib/zen/public/admin/images/zen/icons/ul.png
422
401
  - lib/zen/public/admin/images/zen/icons/user.png
423
402
  - lib/zen/public/admin/images/zen/icons/view.png
424
- - lib/zen/public/admin/js/mootools/core.js
425
- - lib/zen/public/admin/js/mootools/more.js
426
403
  - lib/zen/public/admin/js/vendor/datepicker.js
427
- - lib/zen/public/admin/js/zen/core.js
428
- - lib/zen/public/admin/js/zen/editor/markdown.js
429
- - lib/zen/public/admin/js/zen/editor/textile.js
430
- - lib/zen/public/admin/js/zen/editor.js
431
- - lib/zen/public/admin/js/zen/init.js
432
- - lib/zen/public/admin/js/zen/tabs.js
433
- - lib/zen/public/admin/js/zen/window.js
434
- - lib/zen/public/favicon.ico
404
+ - lib/zen/public/admin/js/vendor/mootools/core.js
405
+ - lib/zen/public/admin/js/vendor/mootools/more.js
406
+ - lib/zen/public/admin/js/zen/index.js
407
+ - lib/zen/public/admin/js/zen/lib/asset.js
408
+ - lib/zen/public/admin/js/zen/lib/editor.js
409
+ - lib/zen/public/admin/js/zen/lib/editor/markdown.js
410
+ - lib/zen/public/admin/js/zen/lib/editor/textile.js
411
+ - lib/zen/public/admin/js/zen/lib/html_table.js
412
+ - lib/zen/public/admin/js/zen/lib/tabs.js
413
+ - lib/zen/public/admin/js/zen/lib/window.js
414
+ - lib/zen/spec/bacon/color_output.rb
415
+ - lib/zen/spec/helper.rb
416
+ - lib/zen/spec/simplecov.rb
417
+ - lib/zen/task.rb
435
418
  - lib/zen/task/build.rake
436
419
  - lib/zen/task/clean.rake
437
420
  - lib/zen/task/db.rake
@@ -440,32 +423,95 @@ files:
440
423
  - lib/zen/task/proto.rake
441
424
  - lib/zen/task/test.rake
442
425
  - lib/zen/task/theme.rake
443
- - lib/zen/task.rb
444
- - lib/zen/theme/base.rb
445
426
  - lib/zen/theme.rb
427
+ - lib/zen/theme/base.rb
446
428
  - lib/zen/validation.rb
447
429
  - lib/zen/version.rb
448
430
  - lib/zen/view/bottom.xhtml
431
+ - lib/zen/view/head.xhtml
449
432
  - lib/zen/view/main.xhtml
450
- - lib/zen.rb
433
+ - pkg/.gitkeep
451
434
  - proto/app/Rakefile
452
435
  - proto/app/app.rb
436
+ - proto/app/config.ru
453
437
  - proto/app/config/config.rb
454
438
  - proto/app/config/database.rb
455
439
  - proto/app/config/middlewares.rb
456
- - proto/app/config.ru
457
440
  - proto/app/log/.gitkeep
441
+ - proto/app/log/database/dev/.gitkeep
442
+ - proto/app/log/database/live/.gitkeep
458
443
  - proto/app/public/.gitkeep
459
444
  - proto/app/start.rb
460
445
  - proto/app/task/.gitkeep
461
446
  - proto/app/theme/.gitkeep
462
447
  - proto/migration.rb
463
- - proto/package/lib/package/controller/controllers.rb
464
- - proto/package/lib/package/language/en/languages.yml
465
- - proto/package/lib/package/model/model.rb
466
- - proto/package/lib/package/view/admin/package/index.xhtml
467
- - proto/package/lib/package.rb
468
- - proto/package/migrations/.gitkeep
448
+ - spec/Rakefile
449
+ - spec/fixtures/zen/asset.rb
450
+ - spec/fixtures/zen/helper/acl.rb
451
+ - spec/fixtures/zen/helper/message.rb
452
+ - spec/fixtures/zen/language/en/spec.yml
453
+ - spec/fixtures/zen/language/nl/spec.yml
454
+ - spec/fixtures/zen/package.rb
455
+ - spec/fixtures/zen/package/comments/controller/comments_form.rb
456
+ - spec/fixtures/zen/package/settings/plugin/settings.rb
457
+ - spec/fixtures/zen/plugin.rb
458
+ - spec/fixtures/zen/theme/404.xhtml
459
+ - spec/fixtures/zen/theme/default-section/index.xhtml
460
+ - spec/fixtures/zen/theme/helper/404.xhtml
461
+ - spec/fixtures/zen/theme/helper/partial.xhtml
462
+ - spec/fixtures/zen/theme/helper/wrong_partial.xhtml
463
+ - spec/fixtures/zen/theme/partials/partial.xhtml
464
+ - spec/fixtures/zen/theme/theme.rb
465
+ - spec/fixtures/zen/validation.rb
466
+ - spec/helper.rb
467
+ - spec/zen/all.rb
468
+ - spec/zen/asset.rb
469
+ - spec/zen/bin/create.rb
470
+ - spec/zen/bin/runner.rb
471
+ - spec/zen/controller/admin_controller.rb
472
+ - spec/zen/controller/main_controller.rb
473
+ - spec/zen/controller/preview.rb
474
+ - spec/zen/helper/acl.rb
475
+ - spec/zen/helper/breadcrumb.rb
476
+ - spec/zen/helper/message.rb
477
+ - spec/zen/helper/theme.rb
478
+ - spec/zen/language.rb
479
+ - spec/zen/package.rb
480
+ - spec/zen/package/categories/controller/categories.rb
481
+ - spec/zen/package/categories/controller/category_groups.rb
482
+ - spec/zen/package/categories/helper/category.rb
483
+ - spec/zen/package/categories/plugin/categories.rb
484
+ - spec/zen/package/comments/controller/comments.rb
485
+ - spec/zen/package/comments/controller/comments_form.rb
486
+ - spec/zen/package/comments/helper/comment.rb
487
+ - spec/zen/package/comments/plugin/anti_spam.rb
488
+ - spec/zen/package/comments/plugin/comments.rb
489
+ - spec/zen/package/custom_fields/blue_form_parameters.rb
490
+ - spec/zen/package/custom_fields/controller/custom_field_groups.rb
491
+ - spec/zen/package/custom_fields/controller/custom_field_types.rb
492
+ - spec/zen/package/custom_fields/controller/custom_fields.rb
493
+ - spec/zen/package/custom_fields/helper/custom_field.rb
494
+ - spec/zen/package/menus/controller/menu_items.rb
495
+ - spec/zen/package/menus/controller/menus.rb
496
+ - spec/zen/package/menus/helper/menu.rb
497
+ - spec/zen/package/menus/plugin/menus.rb
498
+ - spec/zen/package/sections/controller/section_entries.rb
499
+ - spec/zen/package/sections/controller/sections.rb
500
+ - spec/zen/package/sections/helper/section.rb
501
+ - spec/zen/package/sections/plugin/section_entries.rb
502
+ - spec/zen/package/sections/plugin/sections.rb
503
+ - spec/zen/package/settings/controller/settings.rb
504
+ - spec/zen/package/settings/plugin/settings.rb
505
+ - spec/zen/package/users/controller/access_rules.rb
506
+ - spec/zen/package/users/controller/user_groups.rb
507
+ - spec/zen/package/users/controller/users.rb
508
+ - spec/zen/package/users/helper/users.rb
509
+ - spec/zen/plugin.rb
510
+ - spec/zen/plugin/helper.rb
511
+ - spec/zen/plugin/markup.rb
512
+ - spec/zen/theme.rb
513
+ - spec/zen/validation.rb
514
+ - zen.gemspec
469
515
  has_rdoc: yard
470
516
  homepage: http://zen-cms.com/
471
517
  licenses: []