typo 5.1.2 → 5.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (594) hide show
  1. data/CHANGES-5.1.3 +21 -0
  2. data/MAINTAINERS +6 -1
  3. data/README +1 -1
  4. data/app/controllers/admin/base_controller.rb +1 -1
  5. data/app/controllers/admin/content_controller.rb +18 -11
  6. data/app/controllers/admin/settings_controller.rb +16 -0
  7. data/app/controllers/admin/users_controller.rb +2 -3
  8. data/app/controllers/redirect_controller.rb +6 -4
  9. data/app/models/article.rb +5 -1
  10. data/app/models/content.rb +1 -1
  11. data/app/models/tag.rb +1 -1
  12. data/app/views/admin/content/_form.html.erb +3 -3
  13. data/app/views/admin/{general → settings}/update_database.html.erb +1 -1
  14. data/app/views/admin/tags/_form.html.erb +2 -0
  15. data/app/views/admin/users/_form.html.erb +2 -0
  16. data/bin/typo +0 -0
  17. data/config/environments/development.rb +1 -1
  18. data/config/routes.rb +3 -2
  19. data/db/converters/mt3.rb +0 -0
  20. data/db/converters/s9y.rb +0 -0
  21. data/db/converters/textpattern.rb +0 -0
  22. data/db/migrate/063_rejig_state_field.rb +2 -0
  23. data/db/migrate/071_fix_tags_naming.rb +18 -0
  24. data/db/schema.rb +30 -24
  25. data/db/scripts/fix_permalinks.rb +0 -0
  26. data/lang/es_MX.rb +0 -0
  27. data/lib/generators/sidebar/templates/Rakefile +0 -0
  28. data/lib/tasks/release.rake +1 -2
  29. data/lib/typo_version.rb +1 -1
  30. data/public/dispatch.cgi +0 -0
  31. data/public/dispatch.fcgi +0 -0
  32. data/public/dispatch.rb +0 -0
  33. data/public/images/admin/cancel.png +0 -0
  34. data/public/images/admin/checked.png +0 -0
  35. data/public/images/admin/edit.png +0 -0
  36. data/public/images/admin/help.png +0 -0
  37. data/public/javascripts/fckeditor/editor/_source/classes/fckcontextmenu.js +0 -0
  38. data/public/javascripts/fckeditor/editor/_source/classes/fckdataprocessor.js +0 -0
  39. data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_gecko.js +0 -0
  40. data/public/javascripts/fckeditor/editor/_source/classes/fckdocumentfragment_ie.js +0 -0
  41. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange.js +0 -0
  42. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_gecko.js +0 -0
  43. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrange_ie.js +0 -0
  44. data/public/javascripts/fckeditor/editor/_source/classes/fckdomrangeiterator.js +0 -0
  45. data/public/javascripts/fckeditor/editor/_source/classes/fckeditingarea.js +0 -0
  46. data/public/javascripts/fckeditor/editor/_source/classes/fckelementpath.js +0 -0
  47. data/public/javascripts/fckeditor/editor/_source/classes/fckenterkey.js +0 -0
  48. data/public/javascripts/fckeditor/editor/_source/classes/fckevents.js +0 -0
  49. data/public/javascripts/fckeditor/editor/_source/classes/fckicon.js +0 -0
  50. data/public/javascripts/fckeditor/editor/_source/classes/fckiecleanup.js +0 -0
  51. data/public/javascripts/fckeditor/editor/_source/classes/fckimagepreloader.js +0 -0
  52. data/public/javascripts/fckeditor/editor/_source/classes/fckkeystrokehandler.js +0 -0
  53. data/public/javascripts/fckeditor/editor/_source/classes/fckmenublock.js +0 -0
  54. data/public/javascripts/fckeditor/editor/_source/classes/fckmenublockpanel.js +0 -0
  55. data/public/javascripts/fckeditor/editor/_source/classes/fckmenuitem.js +0 -0
  56. data/public/javascripts/fckeditor/editor/_source/classes/fckpanel.js +0 -0
  57. data/public/javascripts/fckeditor/editor/_source/classes/fckplugin.js +0 -0
  58. data/public/javascripts/fckeditor/editor/_source/classes/fckspecialcombo.js +0 -0
  59. data/public/javascripts/fckeditor/editor/_source/classes/fckstyle.js +0 -0
  60. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbar.js +0 -0
  61. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_gecko.js +0 -0
  62. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbreak_ie.js +0 -0
  63. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbutton.js +0 -0
  64. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js +0 -0
  65. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js +0 -0
  66. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontscombo.js +0 -0
  67. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarfontsizecombo.js +0 -0
  68. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarpanelbutton.js +0 -0
  69. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js +0 -0
  70. data/public/javascripts/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js +0 -0
  71. data/public/javascripts/fckeditor/editor/_source/classes/fckw3crange.js +0 -0
  72. data/public/javascripts/fckeditor/editor/_source/classes/fckxml.js +0 -0
  73. data/public/javascripts/fckeditor/editor/_source/classes/fckxml_gecko.js +0 -0
  74. data/public/javascripts/fckeditor/editor/_source/classes/fckxml_ie.js +0 -0
  75. data/public/javascripts/fckeditor/editor/_source/commandclasses/fck_othercommands.js +0 -0
  76. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js +0 -0
  77. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js +0 -0
  78. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckfitwindow.js +0 -0
  79. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckindentcommands.js +0 -0
  80. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckjustifycommands.js +0 -0
  81. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcklistcommands.js +0 -0
  82. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcknamedcommand.js +0 -0
  83. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js +0 -0
  84. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js +0 -0
  85. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js +0 -0
  86. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckshowblocks.js +0 -0
  87. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js +0 -0
  88. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js +0 -0
  89. data/public/javascripts/fckeditor/editor/_source/commandclasses/fckstylecommand.js +0 -0
  90. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktablecommand.js +0 -0
  91. data/public/javascripts/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js +0 -0
  92. data/public/javascripts/fckeditor/editor/_source/fckconstants.js +0 -0
  93. data/public/javascripts/fckeditor/editor/_source/fckeditorapi.js +0 -0
  94. data/public/javascripts/fckeditor/editor/_source/fckjscoreextensions.js +0 -0
  95. data/public/javascripts/fckeditor/editor/_source/fckscriptloader.js +0 -0
  96. data/public/javascripts/fckeditor/editor/_source/internals/fck.js +0 -0
  97. data/public/javascripts/fckeditor/editor/_source/internals/fck_contextmenu.js +0 -0
  98. data/public/javascripts/fckeditor/editor/_source/internals/fck_gecko.js +0 -0
  99. data/public/javascripts/fckeditor/editor/_source/internals/fck_ie.js +0 -0
  100. data/public/javascripts/fckeditor/editor/_source/internals/fckbrowserinfo.js +0 -0
  101. data/public/javascripts/fckeditor/editor/_source/internals/fckcodeformatter.js +0 -0
  102. data/public/javascripts/fckeditor/editor/_source/internals/fckcommands.js +0 -0
  103. data/public/javascripts/fckeditor/editor/_source/internals/fckconfig.js +0 -0
  104. data/public/javascripts/fckeditor/editor/_source/internals/fckdebug.js +0 -0
  105. data/public/javascripts/fckeditor/editor/_source/internals/fckdialog.js +0 -0
  106. data/public/javascripts/fckeditor/editor/_source/internals/fckdialog_gecko.js +0 -0
  107. data/public/javascripts/fckeditor/editor/_source/internals/fckdialog_ie.js +0 -0
  108. data/public/javascripts/fckeditor/editor/_source/internals/fckdocumentprocessor.js +0 -0
  109. data/public/javascripts/fckeditor/editor/_source/internals/fckdomtools.js +0 -0
  110. data/public/javascripts/fckeditor/editor/_source/internals/fcklanguagemanager.js +0 -0
  111. data/public/javascripts/fckeditor/editor/_source/internals/fcklisthandler.js +0 -0
  112. data/public/javascripts/fckeditor/editor/_source/internals/fcklistslib.js +0 -0
  113. data/public/javascripts/fckeditor/editor/_source/internals/fckplugins.js +0 -0
  114. data/public/javascripts/fckeditor/editor/_source/internals/fckregexlib.js +0 -0
  115. data/public/javascripts/fckeditor/editor/_source/internals/fckselection.js +0 -0
  116. data/public/javascripts/fckeditor/editor/_source/internals/fckselection_gecko.js +0 -0
  117. data/public/javascripts/fckeditor/editor/_source/internals/fckselection_ie.js +0 -0
  118. data/public/javascripts/fckeditor/editor/_source/internals/fckstyles.js +0 -0
  119. data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler.js +0 -0
  120. data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_gecko.js +0 -0
  121. data/public/javascripts/fckeditor/editor/_source/internals/fcktablehandler_ie.js +0 -0
  122. data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbaritems.js +0 -0
  123. data/public/javascripts/fckeditor/editor/_source/internals/fcktoolbarset.js +0 -0
  124. data/public/javascripts/fckeditor/editor/_source/internals/fcktools.js +0 -0
  125. data/public/javascripts/fckeditor/editor/_source/internals/fcktools_gecko.js +0 -0
  126. data/public/javascripts/fckeditor/editor/_source/internals/fcktools_ie.js +0 -0
  127. data/public/javascripts/fckeditor/editor/_source/internals/fckundo.js +0 -0
  128. data/public/javascripts/fckeditor/editor/_source/internals/fckurlparams.js +0 -0
  129. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml.js +0 -0
  130. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_gecko.js +0 -0
  131. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtml_ie.js +0 -0
  132. data/public/javascripts/fckeditor/editor/_source/internals/fckxhtmlentities.js +0 -0
  133. data/public/javascripts/fckeditor/editor/css/behaviors/disablehandles.htc +0 -0
  134. data/public/javascripts/fckeditor/editor/css/behaviors/showtableborders.htc +0 -0
  135. data/public/javascripts/fckeditor/editor/css/fck_editorarea.css +0 -0
  136. data/public/javascripts/fckeditor/editor/css/fck_internal.css +0 -0
  137. data/public/javascripts/fckeditor/editor/css/fck_showtableborders_gecko.css +0 -0
  138. data/public/javascripts/fckeditor/editor/css/images/block_address.png +0 -0
  139. data/public/javascripts/fckeditor/editor/css/images/block_blockquote.png +0 -0
  140. data/public/javascripts/fckeditor/editor/css/images/block_div.png +0 -0
  141. data/public/javascripts/fckeditor/editor/css/images/block_h1.png +0 -0
  142. data/public/javascripts/fckeditor/editor/css/images/block_h2.png +0 -0
  143. data/public/javascripts/fckeditor/editor/css/images/block_h3.png +0 -0
  144. data/public/javascripts/fckeditor/editor/css/images/block_h4.png +0 -0
  145. data/public/javascripts/fckeditor/editor/css/images/block_h5.png +0 -0
  146. data/public/javascripts/fckeditor/editor/css/images/block_h6.png +0 -0
  147. data/public/javascripts/fckeditor/editor/css/images/block_p.png +0 -0
  148. data/public/javascripts/fckeditor/editor/css/images/block_pre.png +0 -0
  149. data/public/javascripts/fckeditor/editor/css/images/fck_anchor.gif +0 -0
  150. data/public/javascripts/fckeditor/editor/css/images/fck_flashlogo.gif +0 -0
  151. data/public/javascripts/fckeditor/editor/css/images/fck_hiddenfield.gif +0 -0
  152. data/public/javascripts/fckeditor/editor/css/images/fck_pagebreak.gif +0 -0
  153. data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.css +0 -0
  154. data/public/javascripts/fckeditor/editor/dialog/common/fck_dialog_common.js +0 -0
  155. data/public/javascripts/fckeditor/editor/dialog/common/images/locked.gif +0 -0
  156. data/public/javascripts/fckeditor/editor/dialog/common/images/reset.gif +0 -0
  157. data/public/javascripts/fckeditor/editor/dialog/common/images/unlocked.gif +0 -0
  158. data/public/javascripts/fckeditor/editor/dialog/fck_about.html +0 -0
  159. data/public/javascripts/fckeditor/editor/dialog/fck_about/logo_fckeditor.gif +0 -0
  160. data/public/javascripts/fckeditor/editor/dialog/fck_about/logo_fredck.gif +0 -0
  161. data/public/javascripts/fckeditor/editor/dialog/fck_anchor.html +0 -0
  162. data/public/javascripts/fckeditor/editor/dialog/fck_button.html +0 -0
  163. data/public/javascripts/fckeditor/editor/dialog/fck_checkbox.html +0 -0
  164. data/public/javascripts/fckeditor/editor/dialog/fck_colorselector.html +0 -0
  165. data/public/javascripts/fckeditor/editor/dialog/fck_docprops.html +0 -0
  166. data/public/javascripts/fckeditor/editor/dialog/fck_docprops/fck_document_preview.html +0 -0
  167. data/public/javascripts/fckeditor/editor/dialog/fck_find.html +0 -0
  168. data/public/javascripts/fckeditor/editor/dialog/fck_flash.html +0 -0
  169. data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash.js +0 -0
  170. data/public/javascripts/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html +0 -0
  171. data/public/javascripts/fckeditor/editor/dialog/fck_form.html +0 -0
  172. data/public/javascripts/fckeditor/editor/dialog/fck_hiddenfield.html +0 -0
  173. data/public/javascripts/fckeditor/editor/dialog/fck_image.html +0 -0
  174. data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image.js +0 -0
  175. data/public/javascripts/fckeditor/editor/dialog/fck_image/fck_image_preview.html +0 -0
  176. data/public/javascripts/fckeditor/editor/dialog/fck_link.html +0 -0
  177. data/public/javascripts/fckeditor/editor/dialog/fck_link/fck_link.js +0 -0
  178. data/public/javascripts/fckeditor/editor/dialog/fck_listprop.html +0 -0
  179. data/public/javascripts/fckeditor/editor/dialog/fck_paste.html +0 -0
  180. data/public/javascripts/fckeditor/editor/dialog/fck_radiobutton.html +0 -0
  181. data/public/javascripts/fckeditor/editor/dialog/fck_replace.html +0 -0
  182. data/public/javascripts/fckeditor/editor/dialog/fck_select.html +0 -0
  183. data/public/javascripts/fckeditor/editor/dialog/fck_select/fck_select.js +0 -0
  184. data/public/javascripts/fckeditor/editor/dialog/fck_smiley.html +0 -0
  185. data/public/javascripts/fckeditor/editor/dialog/fck_source.html +0 -0
  186. data/public/javascripts/fckeditor/editor/dialog/fck_specialchar.html +0 -0
  187. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages.html +0 -0
  188. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/blank.html +0 -0
  189. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controlWindow.js +0 -0
  190. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/controls.html +0 -0
  191. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.cfm +0 -0
  192. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php +0 -0
  193. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.pl +0 -0
  194. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellChecker.js +0 -0
  195. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellchecker.html +0 -0
  196. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/spellerStyle.css +0 -0
  197. data/public/javascripts/fckeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js +0 -0
  198. data/public/javascripts/fckeditor/editor/dialog/fck_table.html +0 -0
  199. data/public/javascripts/fckeditor/editor/dialog/fck_tablecell.html +0 -0
  200. data/public/javascripts/fckeditor/editor/dialog/fck_template.html +0 -0
  201. data/public/javascripts/fckeditor/editor/dialog/fck_template/images/template1.gif +0 -0
  202. data/public/javascripts/fckeditor/editor/dialog/fck_template/images/template2.gif +0 -0
  203. data/public/javascripts/fckeditor/editor/dialog/fck_template/images/template3.gif +0 -0
  204. data/public/javascripts/fckeditor/editor/dialog/fck_textarea.html +0 -0
  205. data/public/javascripts/fckeditor/editor/dialog/fck_textfield.html +0 -0
  206. data/public/javascripts/fckeditor/editor/dtd/fck_dtd_test.html +0 -0
  207. data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10strict.js +0 -0
  208. data/public/javascripts/fckeditor/editor/dtd/fck_xhtml10transitional.js +0 -0
  209. data/public/javascripts/fckeditor/editor/fckdebug.html +0 -0
  210. data/public/javascripts/fckeditor/editor/fckdialog.html +0 -0
  211. data/public/javascripts/fckeditor/editor/fckeditor.html +0 -0
  212. data/public/javascripts/fckeditor/editor/fckeditor.original.html +0 -0
  213. data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.css +0 -0
  214. data/public/javascripts/fckeditor/editor/filemanager/browser/default/browser.html +0 -0
  215. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmactualfolder.html +0 -0
  216. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html +0 -0
  217. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmfolders.html +0 -0
  218. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourceslist.html +0 -0
  219. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmresourcetype.html +0 -0
  220. data/public/javascripts/fckeditor/editor/filemanager/browser/default/frmupload.html +0 -0
  221. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/ButtonArrow.gif +0 -0
  222. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/Folder.gif +0 -0
  223. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/Folder32.gif +0 -0
  224. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderOpened.gif +0 -0
  225. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderOpened32.gif +0 -0
  226. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/FolderUp.gif +0 -0
  227. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/ai.gif +0 -0
  228. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/avi.gif +0 -0
  229. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/bmp.gif +0 -0
  230. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/cs.gif +0 -0
  231. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/default.icon.gif +0 -0
  232. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/dll.gif +0 -0
  233. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/doc.gif +0 -0
  234. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/exe.gif +0 -0
  235. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/fla.gif +0 -0
  236. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/gif.gif +0 -0
  237. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/htm.gif +0 -0
  238. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/html.gif +0 -0
  239. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/jpg.gif +0 -0
  240. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/js.gif +0 -0
  241. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/mdb.gif +0 -0
  242. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/mp3.gif +0 -0
  243. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/pdf.gif +0 -0
  244. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/png.gif +0 -0
  245. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/ppt.gif +0 -0
  246. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/rdp.gif +0 -0
  247. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/swf.gif +0 -0
  248. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/swt.gif +0 -0
  249. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/txt.gif +0 -0
  250. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/vsd.gif +0 -0
  251. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/xls.gif +0 -0
  252. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/xml.gif +0 -0
  253. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/32/zip.gif +0 -0
  254. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/ai.gif +0 -0
  255. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/avi.gif +0 -0
  256. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/bmp.gif +0 -0
  257. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/cs.gif +0 -0
  258. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/default.icon.gif +0 -0
  259. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/dll.gif +0 -0
  260. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/doc.gif +0 -0
  261. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/exe.gif +0 -0
  262. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/fla.gif +0 -0
  263. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/gif.gif +0 -0
  264. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/htm.gif +0 -0
  265. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/html.gif +0 -0
  266. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/jpg.gif +0 -0
  267. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/js.gif +0 -0
  268. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/mdb.gif +0 -0
  269. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/mp3.gif +0 -0
  270. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/pdf.gif +0 -0
  271. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/png.gif +0 -0
  272. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/ppt.gif +0 -0
  273. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/rdp.gif +0 -0
  274. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/swf.gif +0 -0
  275. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/swt.gif +0 -0
  276. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/txt.gif +0 -0
  277. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/vsd.gif +0 -0
  278. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/xls.gif +0 -0
  279. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/xml.gif +0 -0
  280. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/icons/zip.gif +0 -0
  281. data/public/javascripts/fckeditor/editor/filemanager/browser/default/images/spacer.gif +0 -0
  282. data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/common.js +0 -0
  283. data/public/javascripts/fckeditor/editor/filemanager/browser/default/js/fckxml.js +0 -0
  284. data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/connector.aspx +0 -0
  285. data/public/javascripts/fckeditor/editor/filemanager/connectors/aspx/upload.aspx +0 -0
  286. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/basexml.pl +0 -0
  287. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/commands.pl +0 -0
  288. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/connector.cgi +0 -0
  289. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/io.pl +0 -0
  290. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload.cgi +0 -0
  291. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/upload_fck.pl +0 -0
  292. data/public/javascripts/fckeditor/editor/filemanager/connectors/perl/util.pl +0 -0
  293. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/config.py +0 -0
  294. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/connector.py +0 -0
  295. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckcommands.py +0 -0
  296. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckconnector.py +0 -0
  297. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckoutput.py +0 -0
  298. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/fckutil.py +0 -0
  299. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/htaccess.txt +0 -0
  300. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/upload.py +0 -0
  301. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/wsgi.py +0 -0
  302. data/public/javascripts/fckeditor/editor/filemanager/connectors/py/zope.py +0 -0
  303. data/public/javascripts/fckeditor/editor/filemanager/connectors/test.html +0 -0
  304. data/public/javascripts/fckeditor/editor/filemanager/connectors/uploadtest.html +0 -0
  305. data/public/javascripts/fckeditor/editor/images/anchor.gif +0 -0
  306. data/public/javascripts/fckeditor/editor/images/arrow_ltr.gif +0 -0
  307. data/public/javascripts/fckeditor/editor/images/arrow_rtl.gif +0 -0
  308. data/public/javascripts/fckeditor/editor/images/smiley/msn/angel_smile.gif +0 -0
  309. data/public/javascripts/fckeditor/editor/images/smiley/msn/angry_smile.gif +0 -0
  310. data/public/javascripts/fckeditor/editor/images/smiley/msn/broken_heart.gif +0 -0
  311. data/public/javascripts/fckeditor/editor/images/smiley/msn/cake.gif +0 -0
  312. data/public/javascripts/fckeditor/editor/images/smiley/msn/confused_smile.gif +0 -0
  313. data/public/javascripts/fckeditor/editor/images/smiley/msn/cry_smile.gif +0 -0
  314. data/public/javascripts/fckeditor/editor/images/smiley/msn/devil_smile.gif +0 -0
  315. data/public/javascripts/fckeditor/editor/images/smiley/msn/embaressed_smile.gif +0 -0
  316. data/public/javascripts/fckeditor/editor/images/smiley/msn/envelope.gif +0 -0
  317. data/public/javascripts/fckeditor/editor/images/smiley/msn/heart.gif +0 -0
  318. data/public/javascripts/fckeditor/editor/images/smiley/msn/kiss.gif +0 -0
  319. data/public/javascripts/fckeditor/editor/images/smiley/msn/lightbulb.gif +0 -0
  320. data/public/javascripts/fckeditor/editor/images/smiley/msn/omg_smile.gif +0 -0
  321. data/public/javascripts/fckeditor/editor/images/smiley/msn/regular_smile.gif +0 -0
  322. data/public/javascripts/fckeditor/editor/images/smiley/msn/sad_smile.gif +0 -0
  323. data/public/javascripts/fckeditor/editor/images/smiley/msn/shades_smile.gif +0 -0
  324. data/public/javascripts/fckeditor/editor/images/smiley/msn/teeth_smile.gif +0 -0
  325. data/public/javascripts/fckeditor/editor/images/smiley/msn/thumbs_down.gif +0 -0
  326. data/public/javascripts/fckeditor/editor/images/smiley/msn/thumbs_up.gif +0 -0
  327. data/public/javascripts/fckeditor/editor/images/smiley/msn/tounge_smile.gif +0 -0
  328. data/public/javascripts/fckeditor/editor/images/smiley/msn/whatchutalkingabout_smile.gif +0 -0
  329. data/public/javascripts/fckeditor/editor/images/smiley/msn/wink_smile.gif +0 -0
  330. data/public/javascripts/fckeditor/editor/images/spacer.gif +0 -0
  331. data/public/javascripts/fckeditor/editor/js/fckeditorcode_gecko.js +0 -0
  332. data/public/javascripts/fckeditor/editor/js/fckeditorcode_ie.js +0 -0
  333. data/public/javascripts/fckeditor/editor/lang/_translationstatus.txt +0 -0
  334. data/public/javascripts/fckeditor/editor/lang/af.js +0 -0
  335. data/public/javascripts/fckeditor/editor/lang/ar.js +0 -0
  336. data/public/javascripts/fckeditor/editor/lang/bg.js +0 -0
  337. data/public/javascripts/fckeditor/editor/lang/bn.js +0 -0
  338. data/public/javascripts/fckeditor/editor/lang/bs.js +0 -0
  339. data/public/javascripts/fckeditor/editor/lang/ca.js +0 -0
  340. data/public/javascripts/fckeditor/editor/lang/cs.js +0 -0
  341. data/public/javascripts/fckeditor/editor/lang/da.js +0 -0
  342. data/public/javascripts/fckeditor/editor/lang/de.js +0 -0
  343. data/public/javascripts/fckeditor/editor/lang/el.js +0 -0
  344. data/public/javascripts/fckeditor/editor/lang/en-au.js +0 -0
  345. data/public/javascripts/fckeditor/editor/lang/en-ca.js +0 -0
  346. data/public/javascripts/fckeditor/editor/lang/en-uk.js +0 -0
  347. data/public/javascripts/fckeditor/editor/lang/en.js +0 -0
  348. data/public/javascripts/fckeditor/editor/lang/eo.js +0 -0
  349. data/public/javascripts/fckeditor/editor/lang/es.js +0 -0
  350. data/public/javascripts/fckeditor/editor/lang/et.js +0 -0
  351. data/public/javascripts/fckeditor/editor/lang/eu.js +0 -0
  352. data/public/javascripts/fckeditor/editor/lang/fa.js +0 -0
  353. data/public/javascripts/fckeditor/editor/lang/fi.js +0 -0
  354. data/public/javascripts/fckeditor/editor/lang/fo.js +0 -0
  355. data/public/javascripts/fckeditor/editor/lang/fr.js +0 -0
  356. data/public/javascripts/fckeditor/editor/lang/gl.js +0 -0
  357. data/public/javascripts/fckeditor/editor/lang/he.js +0 -0
  358. data/public/javascripts/fckeditor/editor/lang/hi.js +0 -0
  359. data/public/javascripts/fckeditor/editor/lang/hr.js +0 -0
  360. data/public/javascripts/fckeditor/editor/lang/hu.js +0 -0
  361. data/public/javascripts/fckeditor/editor/lang/it.js +0 -0
  362. data/public/javascripts/fckeditor/editor/lang/ja.js +0 -0
  363. data/public/javascripts/fckeditor/editor/lang/km.js +0 -0
  364. data/public/javascripts/fckeditor/editor/lang/ko.js +0 -0
  365. data/public/javascripts/fckeditor/editor/lang/lt.js +0 -0
  366. data/public/javascripts/fckeditor/editor/lang/lv.js +0 -0
  367. data/public/javascripts/fckeditor/editor/lang/mn.js +0 -0
  368. data/public/javascripts/fckeditor/editor/lang/ms.js +0 -0
  369. data/public/javascripts/fckeditor/editor/lang/nb.js +0 -0
  370. data/public/javascripts/fckeditor/editor/lang/nl.js +0 -0
  371. data/public/javascripts/fckeditor/editor/lang/no.js +0 -0
  372. data/public/javascripts/fckeditor/editor/lang/pl.js +0 -0
  373. data/public/javascripts/fckeditor/editor/lang/pt-br.js +0 -0
  374. data/public/javascripts/fckeditor/editor/lang/pt.js +0 -0
  375. data/public/javascripts/fckeditor/editor/lang/ro.js +0 -0
  376. data/public/javascripts/fckeditor/editor/lang/ru.js +0 -0
  377. data/public/javascripts/fckeditor/editor/lang/sk.js +0 -0
  378. data/public/javascripts/fckeditor/editor/lang/sl.js +0 -0
  379. data/public/javascripts/fckeditor/editor/lang/sr-latn.js +0 -0
  380. data/public/javascripts/fckeditor/editor/lang/sr.js +0 -0
  381. data/public/javascripts/fckeditor/editor/lang/sv.js +0 -0
  382. data/public/javascripts/fckeditor/editor/lang/th.js +0 -0
  383. data/public/javascripts/fckeditor/editor/lang/tr.js +0 -0
  384. data/public/javascripts/fckeditor/editor/lang/uk.js +0 -0
  385. data/public/javascripts/fckeditor/editor/lang/vi.js +0 -0
  386. data/public/javascripts/fckeditor/editor/lang/zh-cn.js +0 -0
  387. data/public/javascripts/fckeditor/editor/lang/zh.js +0 -0
  388. data/public/javascripts/fckeditor/editor/plugins/autogrow/fckplugin.js +0 -0
  389. data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.config.js +0 -0
  390. data/public/javascripts/fckeditor/editor/plugins/bbcode/_sample/sample.html +0 -0
  391. data/public/javascripts/fckeditor/editor/plugins/bbcode/fckplugin.js +0 -0
  392. data/public/javascripts/fckeditor/editor/plugins/dragresizetable/fckplugin.js +0 -0
  393. data/public/javascripts/fckeditor/editor/plugins/placeholder/fck_placeholder.html +0 -0
  394. data/public/javascripts/fckeditor/editor/plugins/placeholder/fckplugin.js +0 -0
  395. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/de.js +0 -0
  396. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/en.js +0 -0
  397. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/fr.js +0 -0
  398. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/it.js +0 -0
  399. data/public/javascripts/fckeditor/editor/plugins/placeholder/lang/pl.js +0 -0
  400. data/public/javascripts/fckeditor/editor/plugins/placeholder/placeholder.gif +0 -0
  401. data/public/javascripts/fckeditor/editor/plugins/simplecommands/fckplugin.js +0 -0
  402. data/public/javascripts/fckeditor/editor/plugins/tablecommands/fckplugin.js +0 -0
  403. data/public/javascripts/fckeditor/editor/skins/_fckviewstrips.html +0 -0
  404. data/public/javascripts/fckeditor/editor/skins/silver/fck_dialog.css +0 -0
  405. data/public/javascripts/fckeditor/editor/skins/silver/fck_editor.css +0 -0
  406. data/public/javascripts/fckeditor/editor/skins/silver/fck_strip.gif +0 -0
  407. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.arrowright.gif +0 -0
  408. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif +0 -0
  409. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif +0 -0
  410. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.collapse.gif +0 -0
  411. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.end.gif +0 -0
  412. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.expand.gif +0 -0
  413. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.separator.gif +0 -0
  414. data/public/javascripts/fckeditor/editor/skins/silver/images/toolbar.start.gif +0 -0
  415. data/public/javascripts/fckeditor/fckconfig.js +0 -0
  416. data/public/javascripts/fckeditor/fckeditor.js +0 -0
  417. data/public/javascripts/fckeditor/fckeditor.py +0 -0
  418. data/public/javascripts/fckeditor/fckpackager.xml +0 -0
  419. data/public/javascripts/fckeditor/fckstyles.xml +0 -0
  420. data/public/javascripts/fckeditor/fcktemplates.xml +0 -0
  421. data/public/javascripts/fckeditor/license.txt +0 -0
  422. data/script/about +0 -0
  423. data/script/benchmarker +0 -0
  424. data/script/breakpointer +0 -0
  425. data/script/console +0 -0
  426. data/script/destroy +0 -0
  427. data/script/generate +0 -0
  428. data/script/lighttpd +0 -0
  429. data/script/logreport +0 -0
  430. data/script/migrate +0 -0
  431. data/script/performance/benchmarker +0 -0
  432. data/script/performance/profiler +0 -0
  433. data/script/plugin +0 -0
  434. data/script/process/inspector +0 -0
  435. data/script/process/reaper +0 -0
  436. data/script/process/spawner +0 -0
  437. data/script/process/spinner +0 -0
  438. data/script/profiler +0 -0
  439. data/script/runner +0 -0
  440. data/script/server +0 -0
  441. data/script/spacecheck +0 -0
  442. data/script/spec +0 -0
  443. data/script/spec_server +0 -0
  444. data/spec/controllers/admin/users_controller_spec.rb +71 -44
  445. data/spec/controllers/redirect_controller_spec.rb +46 -8
  446. data/spec/controllers/textfilter_controller_spec.rb +0 -27
  447. data/spec/models/article_spec.rb +1 -1
  448. data/spec/models/text_filter_spec.rb +0 -4
  449. data/test/fixtures/profiles.yml +2 -0
  450. data/test/fixtures/users.yml +11 -0
  451. data/test/mocks/themes/typographic/images/Thumbs.db +0 -0
  452. data/test/mocks/themes/typographic/images/accept.png +0 -0
  453. data/test/mocks/themes/typographic/images/accept50.png +0 -0
  454. data/test/mocks/themes/typographic/images/bg_body.jpg +0 -0
  455. data/test/mocks/themes/typographic/images/bg_white.png +0 -0
  456. data/test/mocks/themes/typographic/images/bg_wrapper.jpg +0 -0
  457. data/test/mocks/themes/typographic/images/bullet_bottom.png +0 -0
  458. data/test/mocks/themes/typographic/images/bullet_right.png +0 -0
  459. data/test/mocks/themes/typographic/images/email_open.png +0 -0
  460. data/test/mocks/themes/typographic/images/email_open50.png +0 -0
  461. data/test/mocks/themes/typographic/images/meta.png +0 -0
  462. data/test/mocks/themes/typographic/images/page_edit.png +0 -0
  463. data/test/mocks/themes/typographic/images/page_edit50.png +0 -0
  464. data/test/mocks/themes/typographic/images/tag.png +0 -0
  465. data/test/mocks/themes/typographic/images/user.png +0 -0
  466. data/test/mocks/themes/typographic/images/user50.png +0 -0
  467. data/test/mocks/themes/typographic/images/world_link.png +0 -0
  468. data/test/mocks/themes/typographic/images/world_link50.png +0 -0
  469. data/test/mocks/themes/typographic/stylesheets/colors.css +0 -0
  470. data/test/mocks/themes/typographic/stylesheets/layout.css +0 -0
  471. data/test/mocks/themes/typographic/stylesheets/reset.css +0 -0
  472. data/test/mocks/themes/typographic/stylesheets/style.css +0 -0
  473. data/test/mocks/themes/typographic/views/theme/static_view_test.html.erb +0 -0
  474. data/themes/dirtylicious/about.markdown +0 -0
  475. data/themes/dirtylicious/images/body.jpg +0 -0
  476. data/themes/dirtylicious/images/container.jpg +0 -0
  477. data/themes/dirtylicious/images/header.jpg +0 -0
  478. data/themes/dirtylicious/images/li.gif +0 -0
  479. data/themes/dirtylicious/images/main.gif +0 -0
  480. data/themes/dirtylicious/images/nav.gif +0 -0
  481. data/themes/dirtylicious/images/quote.gif +0 -0
  482. data/themes/dirtylicious/stylesheets/application.css +0 -0
  483. data/themes/standard_issue/about.markdown +0 -0
  484. data/themes/standard_issue/images/img01.gif +0 -0
  485. data/themes/standard_issue/images/img02.gif +0 -0
  486. data/themes/standard_issue/images/img03.gif +0 -0
  487. data/themes/standard_issue/images/img04.jpg +0 -0
  488. data/themes/standard_issue/images/img05.gif +0 -0
  489. data/themes/standard_issue/images/img06.gif +0 -0
  490. data/themes/standard_issue/images/img07.gif +0 -0
  491. data/themes/standard_issue/images/img08.gif +0 -0
  492. data/themes/standard_issue/images/img09.gif +0 -0
  493. data/themes/standard_issue/images/img10.gif +0 -0
  494. data/themes/standard_issue/images/spacer.gif +0 -0
  495. data/themes/standard_issue/images/spinner.gif +0 -0
  496. data/themes/standard_issue/preview.png +0 -0
  497. data/themes/standard_issue/stylesheets/application.css +0 -0
  498. data/themes/standard_issue/views/theme/static_view_test.html.erb +0 -0
  499. data/themes/typographic/images/accept.png +0 -0
  500. data/themes/typographic/images/accept50.png +0 -0
  501. data/themes/typographic/images/bg_body.jpg +0 -0
  502. data/themes/typographic/images/bg_white.png +0 -0
  503. data/themes/typographic/images/bg_wrapper.jpg +0 -0
  504. data/themes/typographic/images/bullet_bottom.png +0 -0
  505. data/themes/typographic/images/bullet_right.png +0 -0
  506. data/themes/typographic/images/email_open.png +0 -0
  507. data/themes/typographic/images/email_open50.png +0 -0
  508. data/themes/typographic/images/meta.png +0 -0
  509. data/themes/typographic/images/page_edit.png +0 -0
  510. data/themes/typographic/images/page_edit50.png +0 -0
  511. data/themes/typographic/images/tag.png +0 -0
  512. data/themes/typographic/images/user.png +0 -0
  513. data/themes/typographic/images/user50.png +0 -0
  514. data/themes/typographic/images/world_link.png +0 -0
  515. data/themes/typographic/images/world_link50.png +0 -0
  516. data/themes/typographic/stylesheets/colors.css +0 -0
  517. data/themes/typographic/stylesheets/layout.css +0 -0
  518. data/themes/typographic/stylesheets/reset.css +0 -0
  519. data/themes/typographic/stylesheets/style.css +0 -0
  520. data/themes/typographic/views/theme/static_view_test.html.erb +0 -0
  521. data/vendor/actionwebservice/test/gencov +0 -0
  522. data/vendor/actionwebservice/test/run +0 -0
  523. data/vendor/bluecloth/bin/bluecloth +0 -0
  524. data/vendor/bluecloth/install.rb +0 -0
  525. data/vendor/bluecloth/test.rb +0 -0
  526. data/vendor/plugins/rspec/bin/spec +0 -0
  527. data/vendor/plugins/rspec/bin/spec_translator +0 -0
  528. data/vendor/plugins/rspec/examples/pure/behave_as_example.rb +0 -0
  529. data/vendor/plugins/rspec/lib/spec/example/configuration.rb +0 -0
  530. data/vendor/plugins/rspec/lib/spec/example/example_group_factory.rb +0 -0
  531. data/vendor/plugins/rspec/lib/spec/example/example_matcher.rb +0 -0
  532. data/vendor/plugins/rspec/lib/spec/extensions.rb +0 -0
  533. data/vendor/plugins/rspec/lib/spec/extensions/object.rb +0 -0
  534. data/vendor/plugins/rspec/lib/spec/matchers/operator_matcher.rb +0 -0
  535. data/vendor/plugins/rspec/spec/spec/example/configuration_spec.rb +0 -0
  536. data/vendor/plugins/rspec/spec/spec/example/predicate_matcher_spec.rb +0 -0
  537. data/vendor/plugins/rspec_on_rails/generators/rspec_controller/USAGE +0 -0
  538. data/vendor/plugins/rspec_on_rails/generators/rspec_controller/rspec_controller_generator.rb +0 -0
  539. data/vendor/plugins/rspec_on_rails/generators/rspec_controller/templates/controller_spec.rb +0 -0
  540. data/vendor/plugins/rspec_on_rails/generators/rspec_model/USAGE +0 -0
  541. data/vendor/plugins/rspec_on_rails/generators/rspec_model/rspec_model_generator.rb +0 -0
  542. data/vendor/plugins/rspec_on_rails/generators/rspec_model/templates/model_spec.rb +0 -0
  543. data/vendor/plugins/rspec_on_rails/generators/rspec_scaffold/templates/controller_spec.rb +0 -0
  544. data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/action_controller/base.rb +0 -0
  545. data/vendor/plugins/rspec_on_rails/lib/spec/rails/extensions/spec/example/configuration.rb +0 -0
  546. data/vendor/plugins/rspec_on_rails/spec/rails/example/helper_spec_spec.rb +0 -0
  547. data/vendor/plugins/rspec_on_rails/spec/rails/example/shared_behaviour_spec.rb +0 -0
  548. data/vendor/plugins/rspec_on_rails/spec_resources/views/view_spec/entry_form.rhtml +0 -0
  549. data/vendor/redcloth/install.rb +0 -0
  550. metadata +12 -75
  551. data/CHANGES-5.1 +0 -56
  552. data/app/controllers/admin/general_controller.rb +0 -22
  553. data/public/javascripts/fckeditor/editor/skins/default/fck_dialog.css +0 -402
  554. data/public/javascripts/fckeditor/editor/skins/default/fck_editor.css +0 -464
  555. data/public/javascripts/fckeditor/editor/skins/default/fck_strip.gif +0 -0
  556. data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.arrowright.gif +0 -0
  557. data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.buttonarrow.gif +0 -0
  558. data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.collapse.gif +0 -0
  559. data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.end.gif +0 -0
  560. data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.expand.gif +0 -0
  561. data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.separator.gif +0 -0
  562. data/public/javascripts/fckeditor/editor/skins/default/images/toolbar.start.gif +0 -0
  563. data/public/javascripts/fckeditor/editor/skins/office2003/fck_dialog.css +0 -402
  564. data/public/javascripts/fckeditor/editor/skins/office2003/fck_editor.css +0 -476
  565. data/public/javascripts/fckeditor/editor/skins/office2003/fck_strip.gif +0 -0
  566. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.arrowright.gif +0 -0
  567. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.bg.gif +0 -0
  568. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.buttonarrow.gif +0 -0
  569. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.collapse.gif +0 -0
  570. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.end.gif +0 -0
  571. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.expand.gif +0 -0
  572. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.separator.gif +0 -0
  573. data/public/javascripts/fckeditor/editor/skins/office2003/images/toolbar.start.gif +0 -0
  574. data/vendor/plugins/typo_textfilter_amazon/README +0 -5
  575. data/vendor/plugins/typo_textfilter_amazon/Rakefile +0 -22
  576. data/vendor/plugins/typo_textfilter_amazon/init.rb +0 -4
  577. data/vendor/plugins/typo_textfilter_amazon/install.rb +0 -1
  578. data/vendor/plugins/typo_textfilter_amazon/lib/typo_textfilter_amazon.rb +0 -45
  579. data/vendor/plugins/typo_textfilter_amazon/tasks/typo_textfilter_amazon_tasks.rake +0 -4
  580. data/vendor/plugins/typo_textfilter_amazon/test/typo_textfilter_amazon_test.rb +0 -8
  581. data/vendor/plugins/typo_textfilter_sparkline/README +0 -4
  582. data/vendor/plugins/typo_textfilter_sparkline/Rakefile +0 -22
  583. data/vendor/plugins/typo_textfilter_sparkline/init.rb +0 -2
  584. data/vendor/plugins/typo_textfilter_sparkline/install.rb +0 -1
  585. data/vendor/plugins/typo_textfilter_sparkline/lib/typo_textfilter_sparkline.rb +0 -92
  586. data/vendor/plugins/typo_textfilter_sparkline/tasks/typo_textfilter_sparkline_tasks.rake +0 -4
  587. data/vendor/plugins/typo_textfilter_sparkline/test/typo_textfilter_sparkline_test.rb +0 -8
  588. data/vendor/plugins/typo_textfilter_tmcode/README +0 -4
  589. data/vendor/plugins/typo_textfilter_tmcode/Rakefile +0 -22
  590. data/vendor/plugins/typo_textfilter_tmcode/init.rb +0 -3
  591. data/vendor/plugins/typo_textfilter_tmcode/install.rb +0 -1
  592. data/vendor/plugins/typo_textfilter_tmcode/lib/typo_textfilter_tmcode.rb +0 -86
  593. data/vendor/plugins/typo_textfilter_tmcode/tasks/typo_textfilter_tmcode_tasks.rake +0 -4
  594. data/vendor/plugins/typo_textfilter_tmcode/test/typo_textfilter_tmcode_test.rb +0 -8
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/script/about CHANGED
File without changes
data/script/benchmarker CHANGED
File without changes
data/script/breakpointer CHANGED
File without changes
data/script/console CHANGED
File without changes
data/script/destroy CHANGED
File without changes
data/script/generate CHANGED
File without changes
data/script/lighttpd CHANGED
File without changes
data/script/logreport CHANGED
File without changes
data/script/migrate CHANGED
File without changes
File without changes
File without changes
data/script/plugin CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
data/script/profiler CHANGED
File without changes
data/script/runner CHANGED
File without changes
data/script/server CHANGED
File without changes
data/script/spacecheck CHANGED
File without changes
data/script/spec CHANGED
File without changes
data/script/spec_server CHANGED
File without changes
@@ -7,59 +7,86 @@ class Admin::UsersController; def rescue_action(e) raise e end; end
7
7
 
8
8
  describe Admin::UsersController, "rough port of the old functional test" do
9
9
  integrate_views
10
+ fixtures :users
10
11
 
11
- before(:each) do
12
- request.session = { :user => users(:tobi).id }
13
- end
12
+ describe ' when you are admin' do
13
+ before(:each) do
14
+ request.session = { :user => users(:tobi).id }
15
+ end
14
16
 
15
- def test_index
16
- get :index
17
- assert_template 'index'
18
- assert_template_has 'users'
19
- end
17
+ def test_index
18
+ get :index
19
+ assert_template 'index'
20
+ assert_template_has 'users'
21
+ end
20
22
 
21
- def test_list
22
- get :list
23
- assert_template 'index'
24
- assert_template_has 'users'
25
- end
23
+ def test_list
24
+ get :list
25
+ assert_template 'index'
26
+ assert_template_has 'users'
27
+ end
26
28
 
27
- def test_new
28
- get :new
29
- assert_template 'new'
29
+ def test_new
30
+ get :new
31
+ assert_template 'new'
30
32
 
31
- post :new, :user => { :login => 'errand', :email => 'corey@test.com',
32
- :password => 'testpass', :password_confirmation => 'testpass', :profile_id => 1 }
33
- assert_response :redirect, :action => 'index'
34
- follow_redirect
35
- assert_template 'index'
36
- end
33
+ post :new, :user => { :login => 'errand', :email => 'corey@test.com',
34
+ :password => 'testpass', :password_confirmation => 'testpass', :profile_id => 1 }
35
+ assert_response :redirect, :action => 'index'
36
+ follow_redirect
37
+ assert_template 'index'
38
+ end
37
39
 
38
- def test_edit
39
- user_id = users(:tobi).id
40
- get :edit, :id => user_id
41
- assert_template 'edit'
42
- assert_valid assigns(:user)
40
+ def test_edit
41
+ user_id = users(:tobi).id
42
+ get :edit, :id => user_id
43
+ assert_template 'edit'
44
+ assert_valid assigns(:user)
43
45
 
44
- post :edit, :id => user_id, :user => { :login => 'errand',
45
- :email => 'corey@test.com', :password => 'testpass',
46
- :password_confirmation => 'testpass' }
47
- assert_response :redirect, :action => 'index'
48
- follow_redirect
49
- assert_template 'index'
46
+ post :edit, :id => user_id, :user => { :login => 'errand',
47
+ :email => 'corey@test.com', :password => 'testpass',
48
+ :password_confirmation => 'testpass' }
49
+ assert_response :redirect, :action => 'index'
50
+ follow_redirect
51
+ assert_template 'index'
52
+ end
53
+
54
+ def test_destroy
55
+ user_count = User.count
56
+ get :destroy, :id => users(:bob).id
57
+ assert_template 'destroy'
58
+ assert_valid assigns(:user)
59
+
60
+ assert_equal user_count, User.count
61
+ post :destroy, :id => users(:bob).id
62
+ assert_response :redirect, :action => 'list'
63
+ follow_redirect
64
+ assert_template 'index'
65
+ assert_equal user_count - 1, User.count
66
+ end
50
67
  end
51
68
 
52
- def test_destroy
53
- user_count = User.count
54
- get :destroy, :id => users(:bob).id
55
- assert_template 'destroy'
56
- assert_valid assigns(:user)
69
+ describe 'when you are not admin' do
70
+
71
+ before :each do
72
+ session[:user] = users(:user_publisher).id
73
+ end
74
+
75
+ it "don't see the list of user" do
76
+ get :list
77
+ response.should redirect_to(:action => 'edit')
78
+ end
57
79
 
58
- assert_equal user_count, User.count
59
- post :destroy, :id => users(:bob).id
60
- assert_response :redirect, :action => 'list'
61
- follow_redirect
62
- assert_template 'index'
63
- assert_equal user_count - 1, User.count
80
+ it 'become a Typo admin' do
81
+ post :edit, :id => users(:user_publisher).id, :profile_id => profiles(:admin).id
82
+ response.should redirect_to(:action => 'list')
83
+ end
84
+
85
+ it 'try update another user' do
86
+ post :edit, :id => users(:tobi).id, :profile_id => profiles(:contributor).id
87
+ response.should redirect_to(:action => 'list')
88
+ u = users(:tobi).reload
89
+ u.profile_id.should == profiles(:admin).id
90
+ end
64
91
  end
65
92
  end
@@ -10,26 +10,64 @@ describe RedirectController do
10
10
  request.relative_url_root = nil # avoid failures if environment.rb defines a relative URL root
11
11
  end
12
12
 
13
- # Replace this with your real tests.
13
+ def test_routing_splits_path
14
+ assert_routing "foo/bar/baz", {
15
+ :from => ["foo", "bar", "baz"],
16
+ :controller => 'redirect', :action => 'redirect'}
17
+ end
18
+
14
19
  def test_redirect
15
- get :redirect, :from => "foo/bar"
20
+ get :redirect, :from => ["foo", "bar"]
16
21
  assert_response 301
17
- assert_response :redirect, "/someplace/else"
22
+ assert_redirected_to "http://test.host/someplace/else"
18
23
  end
19
24
 
20
25
  def test_url_root_redirect
21
26
  @request.relative_url_root = "/blog"
22
- get :redirect, :from => "foo/bar"
27
+ get :redirect, :from => ["foo", "bar"]
23
28
  assert_response 301
24
- assert_response :redirect, "/blog/someplace/else"
29
+ assert_redirected_to "http://test.host/blog/someplace/else"
25
30
 
26
- get :redirect, :from => "bar/foo"
31
+ get :redirect, :from => ["bar", "foo"]
27
32
  assert_response 301
28
- assert_response :redirect, "/blog/someplace/else"
33
+ assert_redirected_to "http://test.host/blog/someplace/else"
29
34
  end
30
35
 
31
36
  def test_no_redirect
32
- get :redirect, :from => "something/that/isnt/there"
37
+ get :redirect, :from => ["something/that/isnt/there"]
33
38
  assert_response 404
34
39
  end
40
+
41
+ def test_redirect_articles
42
+ get :redirect, :from => ["articles", "foo", "bar", "baz"]
43
+ assert_response 301
44
+ assert_redirected_to "http://test.host/foo/bar/baz"
45
+ end
46
+
47
+ def test_redirect_articles_with_articles_in_path
48
+ get :redirect, :from => ["articles", "foo", "articles", "baz"]
49
+ assert_response 301
50
+ assert_redirected_to "http://test.host/foo/articles/baz"
51
+ end
52
+
53
+ def test_url_root_redirect_articles
54
+ @request.relative_url_root = "/blog"
55
+ get :redirect, :from => ["articles", "foo", "bar", "baz"]
56
+ assert_response 301
57
+ assert_redirected_to "http://test.host/blog/foo/bar/baz"
58
+ end
59
+
60
+ def test_url_root_redirect_articles_when_url_root_is_articles
61
+ @request.relative_url_root = "/articles"
62
+ get :redirect, :from => ["articles", "foo", "bar", "baz"]
63
+ assert_response 301
64
+ assert_redirected_to "http://test.host/articles/foo/bar/baz"
65
+ end
66
+
67
+ def test_url_root_redirect_articles_with_articles_in_url_root
68
+ @request.relative_url_root = "/aaa/articles/bbb"
69
+ get :redirect, :from => ["articles", "foo", "bar", "baz"]
70
+ assert_response 301
71
+ assert_redirected_to "http://test.host/aaa/articles/bbb/foo/bar/baz"
72
+ end
35
73
  end
@@ -65,33 +65,6 @@ describe TextfilterController do
65
65
  filter_text('*"foo"*',[:doesntexist1,:markdown,"doesn't exist 2",:smartypants,:nopenotmeeither])
66
66
  end
67
67
 
68
- def test_amazon
69
- text = filter_text('<a href="amazon:097669400X" title="Rails">Rails book</a>',
70
- [:amazon],
71
- 'amazon-associate-id' => 'scottstuff-20')
72
- assert_equal "<a href=\"http://www.amazon.com/exec/obidos/ASIN/097669400X/scottstuff-20\" title=\"Rails\">Rails book</a>",
73
- text
74
- assert_equal %w{097669400X}, whiteboard[:asins]
75
- reset_whiteboard
76
-
77
- text = filter_text('[Rails book](amazon:097669400X)',
78
- [:markdown,:amazon],
79
- 'amazon-associate-id' => 'scottstuff-20')
80
- assert_equal "<p><a href=\"http://www.amazon.com/exec/obidos/ASIN/097669400X/scottstuff-20\">Rails book</a></p>",
81
- text
82
- assert_equal %w{097669400X}, whiteboard[:asins]
83
- reset_whiteboard
84
-
85
-
86
- text = filter_text("Foo\n\n[Rails book](amazon:097669400X)",
87
- [:markdown,:amazon],
88
- 'amazon-associate-id' => 'scottstuff-20')
89
- assert_equal "<p>Foo</p>\n\n<p><a href=\"http://www.amazon.com/exec/obidos/ASIN/097669400X/scottstuff-20\">Rails book</a></p>",
90
- text
91
- assert_equal %w{097669400X}, whiteboard[:asins]
92
- reset_whiteboard
93
- end
94
-
95
68
  def test_flickr
96
69
  assert_equal "<div style=\"float:left\" class=\"flickrplugin\"><a href=\"http://www.flickr.com/users/scottlaird/31366117\"><img src=\"http://photos23.flickr.com/31366117_b1a791d68e_s.jpg\" width=\"75\" height=\"75\" alt=\"Matz\" title=\"Matz\"/></a><p class=\"caption\" style=\"width:75px\">This is Matz, Ruby's creator</p></div>",
97
70
  filter_text('<typo:flickr img="31366117" size="Square" style="float:left"/>',
@@ -235,7 +235,7 @@ describe Article do
235
235
  assert_equal 0, Resource.find(:all, :conditions => "article_id = #{a.id}").size
236
236
  end
237
237
 
238
- def test_notifications
238
+ it 'should notify' do
239
239
  a = Article.new(:title => 'New Article', :body => 'Foo', :author => 'Tobi', :user => users(:tobi))
240
240
  assert a.save
241
241
 
@@ -19,10 +19,6 @@ describe "With the list of available filters" do
19
19
  @filters.should include(Typo::Textfilter::Textile)
20
20
  end
21
21
 
22
- it 'Amazon is available' do
23
- @filters.should include(Typo::Textfilter::Amazon)
24
- end
25
-
26
22
  it 'Flickr is available' do
27
23
  @filters.should include(Typo::Textfilter::Flickr)
28
24
  end
@@ -14,6 +14,8 @@ admin:
14
14
  publisher:
15
15
  label: publisher
16
16
  nicename: Blog publisher
17
+ modules:
18
+ - :users
17
19
 
18
20
  contributor:
19
21
  label: contributor
@@ -49,3 +49,14 @@ randomuser:
49
49
  notify_on_new_articles: true
50
50
  notify_on_comments: true
51
51
  profile: admin
52
+
53
+ user_publisher:
54
+ login: shingara
55
+ password: 8e9b1a9a38e66ca572a5e8fdac8e256848842dfa # longtest
56
+ name: shingara
57
+ email: shingara@example.com
58
+ notify_via_email: false
59
+ notify_on_new_articles: false
60
+ notify_on_comments: false
61
+ profile: publisher
62
+