Soks 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (284) hide show
  1. data/README.txt +14 -4
  2. data/bin/soks-create-wiki.rb +2 -2
  3. data/contrib/redcloth-3.0.3.rb +0 -1
  4. data/lib/helpers/default-helpers.rb +13 -12
  5. data/lib/helpers/mail2wiki-helper.rb +12 -7
  6. data/lib/helpers/mail2wiki-test.rb +15 -0
  7. data/lib/helpers/wiki2html.rb +60 -0
  8. data/lib/soks-drb.rb +20 -0
  9. data/lib/soks-fcgi.rb +127 -0
  10. data/lib/soks-model.rb +11 -3
  11. data/lib/soks-servlet.rb +68 -45
  12. data/lib/soks-storage.rb +11 -3
  13. data/lib/soks-utils.rb +32 -3
  14. data/lib/soks-view.rb +48 -69
  15. data/lib/soks.rb +6 -3
  16. data/templates/default/attachment/blank.gif +0 -0
  17. data/templates/default/attachment/logo.jpg +0 -0
  18. data/templates/default/attachment/newpage.js +9 -0
  19. data/templates/default/attachment/pngbehavior.htc +86 -0
  20. data/templates/default/attachment/robots.txt +2 -1
  21. data/templates/default/attachment/stylesheet.css +144 -37
  22. data/templates/default/banned_titles.txt +36 -0
  23. data/templates/default/content/Api%20for%20classes%20to%20modify%20the%20wiki.textile +24 -0
  24. data/templates/default/content/Author.textile +3 -3
  25. data/templates/default/content/Automatic%20Summaries.textile +14 -14
  26. data/templates/default/content/Automatic%20linking%20between%20pages.textile +2 -0
  27. data/templates/default/content/Bug%3A%20RSS%20feed%20does%20not%20validate.textile +10 -0
  28. data/templates/default/content/Bug%3A%20Textile%20mishandles%20paragraphs.textile +33 -0
  29. data/templates/default/content/Bug%3A%20Unanticipated%20Rollbacks.textile +21 -0
  30. data/templates/default/content/Home%20Page.textile +3 -2
  31. data/templates/default/content/How%20to%20administrate%20this%20wiki.textile +4 -19
  32. data/templates/default/content/How%20to%20get%20the%20latest%20Soks%20from%20cvs.textile +21 -0
  33. data/templates/default/content/How%20to%20import%20data%20to%20this%20wiki.textile +45 -0
  34. data/templates/default/content/How%20to%20install%20Soks.textile +12 -8
  35. data/templates/default/content/How%20to%20password%20protect%20your%20wiki.textile +43 -0
  36. data/templates/default/content/How%20to%20report%20a%20bug.textile +1 -1
  37. data/templates/default/content/How%20to%20use%20the%20keyboard%20shortcuts.textile +2 -0
  38. data/templates/default/content/How%20to%20use%20this%20wiki.textile +1 -0
  39. data/templates/default/content/Instructions%20and%20Howtos.textile +4 -1
  40. data/templates/default/content/Known%20bugs.textile +5 -2
  41. data/templates/default/content/List%20of%20changes.textile +49 -0
  42. data/templates/default/content/New%20Recent%20Changes%20class.textile +58 -0
  43. data/templates/default/content/New%20page%20templates%20or%20categories%20code.textile +68 -0
  44. data/templates/default/content/Per%20Wiki%20Templates.textile +35 -0
  45. data/templates/default/content/Planned%20Features.textile +29 -8
  46. data/templates/default/content/README.textile +14 -4
  47. data/templates/default/content/RSS%20feed.textile +2 -0
  48. data/templates/default/content/Recent%20Changes%20to%20This%20Site.textile +200 -202
  49. data/templates/default/content/SOKS%20features.textile +2 -1
  50. data/templates/default/content/Sidebar%20Page.textile +3 -0
  51. data/templates/default/content/Type%20a%20title%20here.textile +1 -0
  52. data/templates/default/content/bug%3A%20competing%20edits.textile +13 -0
  53. data/templates/default/content/ctrl%2Dn.textile +1 -0
  54. data/templates/default/content/tamc.textile +1 -0
  55. data/templates/default/start.rb +38 -15
  56. data/templates/default/version.txt +1 -1
  57. data/templates/default/views/Page_edit.rhtml +71 -57
  58. data/templates/default/views/Page_meta.rhtml +6 -2
  59. data/templates/default/views/Page_revisions.rhtml +17 -9
  60. data/templates/default/views/Page_rss.rhtml +3 -1
  61. data/templates/default/views/Page_search_results.rhtml +11 -1
  62. data/templates/default/views/Page_view.rhtml +6 -2
  63. data/templates/default/views/UploadPage_edit.rhtml +58 -33
  64. data/templates/default/views/frame.rhtml +46 -27
  65. data/test/test_soks-utils.rb +37 -0
  66. metadata +27 -229
  67. data/templates/default/content/Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20picture%2.textile +0 -1
  68. data/templates/default/content/Bug%3A%20Automatic%20link%20links%20to%20stuff%20inside%20%3Chtml.textile +0 -1
  69. data/templates/default/content/Bug%3A%20Does%20not%20make%20use%20of%20if%2Dmodified%2Dsince%20r.textile +0 -1
  70. data/templates/default/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +0 -1
  71. data/templates/default/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +0 -1
  72. data/templates/default/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%2.textile +0 -1
  73. data/templates/default/content/Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%20new%20.textile +0 -1
  74. data/templates/default/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +0 -1
  75. data/templates/default/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +0 -1
  76. data/templates/default/content/Bug%3A%20Punctuation%20in%20page%20titles%20still%20problematic.textile +0 -7
  77. data/templates/default/content/Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%28not%20.textile +0 -1
  78. data/templates/default/content/Bug%3A%20Search%20box%20width%20does%20not%20match%20column%20wid.textile +0 -1
  79. data/templates/default/content/Bug%3A%20Search%20includes%20leading%20and%20trailing%20spaces.textile +0 -1
  80. data/templates/default/content/Bug%3A%20Search%20inluced%20leading%20and%20trailing%20spaces.textile +0 -1
  81. data/templates/default/content/Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +0 -1
  82. data/templates/default/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in.textile +0 -1
  83. data/templates/default/content/Bug%3A%20Uploads%20are%20not%20password%20protected.textile +0 -3
  84. data/templates/default/content/Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fbase64.textile +0 -1
  85. data/templates/default/content/Fixed%20Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20p.textile +0 -34
  86. data/templates/default/content/Fixed%20Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20.textile +0 -3
  87. data/templates/default/content/Fixed%20Bug%3A%20External%20links%20incorrectly%20include%20trail.textile +0 -3
  88. data/templates/default/content/Fixed%20Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20lin.textile +0 -13
  89. data/templates/default/content/Fixed%20Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%.textile +0 -9
  90. data/templates/default/content/Fixed%20Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +0 -4
  91. data/templates/default/content/Fixed%20Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%.textile +0 -15
  92. data/templates/default/content/Fixed%20Bug%3A%20Search%20box%20width%20does%20not%20match%20colu.textile +0 -3
  93. data/templates/default/content/Fixed%20Bug%3A%20Search%20includes%20leading%20and%20trailing%20s.textile +0 -3
  94. data/templates/default/content/Fixed%20Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +0 -3
  95. data/templates/default/content/Fixed%20Bug%3A%20Symbols%20are%20not%20always%20correctly%20rende.textile +0 -5
  96. data/templates/default/content/Fixed%20Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fba.textile +0 -3
  97. data/templates/default/content/Site%20Index.textile +0 -60
  98. data/templates/default/content/fixed%20bug%3A%20automatic%20link%20links%20to%20stuff%20inside%2.textile +0 -3
  99. data/templates/default/content/sandbox.textile +0 -2
  100. data/templates/default/content/test%20page.textile +0 -1
  101. data/templates/instiki/attachment/header_backdrop.png +0 -0
  102. data/templates/instiki/attachment/instiki_style_sheet.css +0 -199
  103. data/templates/instiki/attachment/logo.tiff +0 -0
  104. data/templates/instiki/attachment/logotext.png +0 -0
  105. data/templates/instiki/attachment/newpage.js +0 -41
  106. data/templates/instiki/attachment/rss.png +0 -0
  107. data/templates/instiki/banned_titles.txt +0 -31
  108. data/templates/instiki/content/All%20News.textile +0 -9
  109. data/templates/instiki/content/Attached%20ruby%20logo.textile +0 -1
  110. data/templates/instiki/content/Attached%20test%20thing.textile +0 -1
  111. data/templates/instiki/content/Author.textile +0 -12
  112. data/templates/instiki/content/Automatic%20Summaries.textile +0 -77
  113. data/templates/instiki/content/Automatic%20linking%20between%20pages.textile +0 -5
  114. data/templates/instiki/content/Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20picture%2.textile +0 -1
  115. data/templates/instiki/content/Bug%3A%20Automatic%20link%20links%20to%20stuff%20inside%20%3Chtml.textile +0 -1
  116. data/templates/instiki/content/Bug%3A%20Does%20not%20make%20use%20of%20if%2Dmodified%2Dsince%20r.textile +0 -1
  117. data/templates/instiki/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +0 -1
  118. data/templates/instiki/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +0 -1
  119. data/templates/instiki/content/Bug%3A%20GEM%20limits%20title%20lengths.textile +0 -1
  120. data/templates/instiki/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%2.textile +0 -1
  121. data/templates/instiki/content/Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%20new%20.textile +0 -1
  122. data/templates/instiki/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +0 -1
  123. data/templates/instiki/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +0 -1
  124. data/templates/instiki/content/Bug%3A%20Punctuation%20in%20page%20titles%20still%20problematic.textile +0 -7
  125. data/templates/instiki/content/Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%28not%20.textile +0 -1
  126. data/templates/instiki/content/Bug%3A%20Search%20box%20width%20does%20not%20match%20column%20wid.textile +0 -1
  127. data/templates/instiki/content/Bug%3A%20Search%20includes%20leading%20and%20trailing%20spaces.textile +0 -1
  128. data/templates/instiki/content/Bug%3A%20Search%20inluced%20leading%20and%20trailing%20spaces.textile +0 -1
  129. data/templates/instiki/content/Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +0 -1
  130. data/templates/instiki/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in.textile +0 -1
  131. data/templates/instiki/content/Bug%3A%20Uploads%20are%20not%20password%20protected.textile +0 -3
  132. data/templates/instiki/content/Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fbase64.textile +0 -1
  133. data/templates/instiki/content/Bug%3A%20notextile%20does%20not%20prevent%20page%20inserts.textile +0 -1
  134. data/templates/instiki/content/Fixed%20Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20p.textile +0 -34
  135. data/templates/instiki/content/Fixed%20Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20.textile +0 -3
  136. data/templates/instiki/content/Fixed%20Bug%3A%20External%20links%20incorrectly%20include%20trail.textile +0 -3
  137. data/templates/instiki/content/Fixed%20Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20lin.textile +0 -13
  138. data/templates/instiki/content/Fixed%20Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%.textile +0 -9
  139. data/templates/instiki/content/Fixed%20Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +0 -4
  140. data/templates/instiki/content/Fixed%20Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%.textile +0 -15
  141. data/templates/instiki/content/Fixed%20Bug%3A%20Search%20box%20width%20does%20not%20match%20colu.textile +0 -3
  142. data/templates/instiki/content/Fixed%20Bug%3A%20Search%20includes%20leading%20and%20trailing%20s.textile +0 -3
  143. data/templates/instiki/content/Fixed%20Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +0 -3
  144. data/templates/instiki/content/Fixed%20Bug%3A%20Symbols%20are%20not%20always%20correctly%20rende.textile +0 -5
  145. data/templates/instiki/content/Fixed%20Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fba.textile +0 -3
  146. data/templates/instiki/content/Home%20Page.textile +0 -19
  147. data/templates/instiki/content/How%20to%20administrate%20this%20wiki.textile +0 -62
  148. data/templates/instiki/content/How%20to%20change%20the%20way%20this%20wiki%20looks.textile +0 -30
  149. data/templates/instiki/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile +0 -60
  150. data/templates/instiki/content/How%20to%20hack%20soks.textile +0 -61
  151. data/templates/instiki/content/How%20to%20import%20a%20site%20from%20instiki.textile +0 -13
  152. data/templates/instiki/content/How%20to%20install%20Soks.textile +0 -27
  153. data/templates/instiki/content/How%20to%20report%20a%20bug.textile +0 -8
  154. data/templates/instiki/content/How%20to%20use%20the%20keyboard%20shortcuts.textile +0 -13
  155. data/templates/instiki/content/How%20to%20use%20this%20wiki.textile +0 -27
  156. data/templates/instiki/content/Instructions%20and%20Howtos.textile +0 -18
  157. data/templates/instiki/content/Known%20bugs.textile +0 -15
  158. data/templates/instiki/content/Latest%20News.textile +0 -9
  159. data/templates/instiki/content/List%20of%20changes.textile +0 -67
  160. data/templates/instiki/content/Picture%20of%20Type%20a%20title%20here.textile +0 -1
  161. data/templates/instiki/content/Picture%20of%20a%20logo%20for%20the%20ruby%20language.textile +0 -1
  162. data/templates/instiki/content/Picture%20of%20a%20pair%20of%20soks.textile +0 -1
  163. data/templates/instiki/content/Picture%20of%20powered%20by%20ruby%20logo.textile +0 -1
  164. data/templates/instiki/content/Planned%20Features.textile +0 -19
  165. data/templates/instiki/content/README.textile +0 -63
  166. data/templates/instiki/content/RSS%20feed.textile +0 -7
  167. data/templates/instiki/content/Recent%20Blog%20Entries.textile +0 -5
  168. data/templates/instiki/content/Recent%20Changes%20to%20This%20Site.textile +0 -211
  169. data/templates/instiki/content/Recent%20News.textile +0 -9
  170. data/templates/instiki/content/Ruby.textile +0 -9
  171. data/templates/instiki/content/SOKS%20features.textile +0 -16
  172. data/templates/instiki/content/Site%20Index.textile +0 -60
  173. data/templates/instiki/content/Soks%20Licence.textile +0 -64
  174. data/templates/instiki/content/fixed%20bug%3A%20automatic%20link%20links%20to%20stuff%20inside%2.textile +0 -3
  175. data/templates/instiki/content/let%20me%20know.textile +0 -1
  176. data/templates/instiki/content/sandbox.textile +0 -2
  177. data/templates/instiki/content/tamc2.textile +0 -1
  178. data/templates/instiki/content/test%20page.textile +0 -1
  179. data/templates/instiki/start.rb +0 -112
  180. data/templates/instiki/version.txt +0 -1
  181. data/templates/instiki/views/Page_content.rhtml +0 -1
  182. data/templates/instiki/views/Page_edit.rhtml +0 -8
  183. data/templates/instiki/views/Page_meta.rhtml +0 -34
  184. data/templates/instiki/views/Page_print.rhtml +0 -6
  185. data/templates/instiki/views/Page_revisions.rhtml +0 -17
  186. data/templates/instiki/views/Page_rss.rhtml +0 -55
  187. data/templates/instiki/views/Page_search_results.rhtml +0 -18
  188. data/templates/instiki/views/Page_view.rhtml +0 -2
  189. data/templates/instiki/views/UploadPage_edit.rhtml +0 -16
  190. data/templates/instiki/views/frame.rhtml +0 -90
  191. data/templates/instiki/views/messages.yaml +0 -6
  192. data/templates/rails/attachment/2colheader.css +0 -77
  193. data/templates/rails/attachment/basics.css +0 -98
  194. data/templates/rails/attachment/header_backdrop.png +0 -0
  195. data/templates/rails/attachment/logo.tiff +0 -0
  196. data/templates/rails/attachment/logotext.png +0 -0
  197. data/templates/rails/attachment/newpage.js +0 -41
  198. data/templates/rails/attachment/rss.png +0 -0
  199. data/templates/rails/banned_titles.txt +0 -31
  200. data/templates/rails/content/All%20News.textile +0 -9
  201. data/templates/rails/content/Attached%20ruby%20logo.textile +0 -1
  202. data/templates/rails/content/Attached%20test%20thing.textile +0 -1
  203. data/templates/rails/content/Author.textile +0 -12
  204. data/templates/rails/content/Automatic%20Summaries.textile +0 -77
  205. data/templates/rails/content/Automatic%20linking%20between%20pages.textile +0 -5
  206. data/templates/rails/content/Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20picture%2.textile +0 -1
  207. data/templates/rails/content/Bug%3A%20Automatic%20link%20links%20to%20stuff%20inside%20%3Chtml.textile +0 -1
  208. data/templates/rails/content/Bug%3A%20Does%20not%20make%20use%20of%20if%2Dmodified%2Dsince%20r.textile +0 -1
  209. data/templates/rails/content/Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20appear.textile +0 -1
  210. data/templates/rails/content/Bug%3A%20External%20links%20incorrectly%20include%20trailing%20pu.textile +0 -1
  211. data/templates/rails/content/Bug%3A%20GEM%20limits%20title%20lengths.textile +0 -1
  212. data/templates/rails/content/Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20link%20is%2.textile +0 -1
  213. data/templates/rails/content/Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%20new%20.textile +0 -1
  214. data/templates/rails/content/Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +0 -1
  215. data/templates/rails/content/Bug%3A%20Page%20titles%20cannot%20have%20html%20tags%20in%20them.textile +0 -1
  216. data/templates/rails/content/Bug%3A%20Punctuation%20in%20page%20titles%20still%20problematic.textile +0 -7
  217. data/templates/rails/content/Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%28not%20.textile +0 -1
  218. data/templates/rails/content/Bug%3A%20Search%20box%20width%20does%20not%20match%20column%20wid.textile +0 -1
  219. data/templates/rails/content/Bug%3A%20Search%20includes%20leading%20and%20trailing%20spaces.textile +0 -1
  220. data/templates/rails/content/Bug%3A%20Search%20inluced%20leading%20and%20trailing%20spaces.textile +0 -1
  221. data/templates/rails/content/Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +0 -1
  222. data/templates/rails/content/Bug%3A%20Symbols%20are%20not%20always%20correctly%20rendered%20in.textile +0 -1
  223. data/templates/rails/content/Bug%3A%20Uploads%20are%20not%20password%20protected.textile +0 -3
  224. data/templates/rails/content/Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fbase64.textile +0 -1
  225. data/templates/rails/content/Bug%3A%20notextile%20does%20not%20prevent%20page%20inserts.textile +0 -1
  226. data/templates/rails/content/Fixed%20Bug%3A%20%5BFATAL%5D%20When%20renaming%20upload%20%2F%20p.textile +0 -34
  227. data/templates/rails/content/Fixed%20Bug%3A%20Duplicate%20links%2Dto%20a%20page%20sometimes%20.textile +0 -3
  228. data/templates/rails/content/Fixed%20Bug%3A%20External%20links%20incorrectly%20include%20trail.textile +0 -3
  229. data/templates/rails/content/Fixed%20Bug%3A%20In%20a%20list%20of%20links%2C%20the%20last%20lin.textile +0 -13
  230. data/templates/rails/content/Fixed%20Bug%3A%20Inserted%20pages%20are%20not%20refreshed%20when%.textile +0 -9
  231. data/templates/rails/content/Fixed%20Bug%3A%20No%20robots%2Etxt%20or%20favicon%2Eico.textile +0 -4
  232. data/templates/rails/content/Fixed%20Bug%3A%20RSS%20feed%20shows%20oldest%2015%20revisions%20%.textile +0 -15
  233. data/templates/rails/content/Fixed%20Bug%3A%20Search%20box%20width%20does%20not%20match%20colu.textile +0 -3
  234. data/templates/rails/content/Fixed%20Bug%3A%20Search%20includes%20leading%20and%20trailing%20s.textile +0 -3
  235. data/templates/rails/content/Fixed%20Bug%3A%20Site%20Index%20updates%20on%20every%20revision.textile +0 -3
  236. data/templates/rails/content/Fixed%20Bug%3A%20Symbols%20are%20not%20always%20correctly%20rende.textile +0 -5
  237. data/templates/rails/content/Fixed%20Bug%3A%20no%20superclass%20method%20%60%5Fdeprecated%5Fba.textile +0 -3
  238. data/templates/rails/content/Home%20Page.textile +0 -19
  239. data/templates/rails/content/How%20to%20administrate%20this%20wiki.textile +0 -62
  240. data/templates/rails/content/How%20to%20change%20the%20way%20this%20wiki%20looks.textile +0 -30
  241. data/templates/rails/content/How%20to%20export%20a%20site%20from%20this%20wiki.textile +0 -60
  242. data/templates/rails/content/How%20to%20hack%20soks.textile +0 -61
  243. data/templates/rails/content/How%20to%20import%20a%20site%20from%20instiki.textile +0 -13
  244. data/templates/rails/content/How%20to%20install%20Soks.textile +0 -27
  245. data/templates/rails/content/How%20to%20report%20a%20bug.textile +0 -8
  246. data/templates/rails/content/How%20to%20use%20the%20keyboard%20shortcuts.textile +0 -13
  247. data/templates/rails/content/How%20to%20use%20this%20wiki.textile +0 -27
  248. data/templates/rails/content/Instructions%20and%20Howtos.textile +0 -18
  249. data/templates/rails/content/Known%20bugs.textile +0 -15
  250. data/templates/rails/content/Latest%20News.textile +0 -9
  251. data/templates/rails/content/List%20of%20changes.textile +0 -67
  252. data/templates/rails/content/Picture%20of%20Type%20a%20title%20here.textile +0 -1
  253. data/templates/rails/content/Picture%20of%20a%20logo%20for%20the%20ruby%20language.textile +0 -1
  254. data/templates/rails/content/Picture%20of%20a%20pair%20of%20soks.textile +0 -1
  255. data/templates/rails/content/Picture%20of%20powered%20by%20ruby%20logo.textile +0 -1
  256. data/templates/rails/content/Planned%20Features.textile +0 -19
  257. data/templates/rails/content/README.textile +0 -63
  258. data/templates/rails/content/RSS%20feed.textile +0 -7
  259. data/templates/rails/content/Recent%20Blog%20Entries.textile +0 -5
  260. data/templates/rails/content/Recent%20Changes%20to%20This%20Site.textile +0 -211
  261. data/templates/rails/content/Recent%20News.textile +0 -9
  262. data/templates/rails/content/Ruby.textile +0 -9
  263. data/templates/rails/content/SOKS%20features.textile +0 -16
  264. data/templates/rails/content/Site%20Index.textile +0 -60
  265. data/templates/rails/content/Soks%20Licence.textile +0 -64
  266. data/templates/rails/content/fixed%20bug%3A%20automatic%20link%20links%20to%20stuff%20inside%2.textile +0 -3
  267. data/templates/rails/content/let%20me%20know.textile +0 -1
  268. data/templates/rails/content/sandbox.textile +0 -2
  269. data/templates/rails/content/tamc2.textile +0 -1
  270. data/templates/rails/content/test%20page.textile +0 -1
  271. data/templates/rails/start.rb +0 -113
  272. data/templates/rails/version.txt +0 -1
  273. data/templates/rails/views/Page_content.rhtml +0 -1
  274. data/templates/rails/views/Page_edit.rhtml +0 -61
  275. data/templates/rails/views/Page_meta.rhtml +0 -38
  276. data/templates/rails/views/Page_print.rhtml +0 -6
  277. data/templates/rails/views/Page_revisions.rhtml +0 -19
  278. data/templates/rails/views/Page_rss.rhtml +0 -55
  279. data/templates/rails/views/Page_search_results.rhtml +0 -19
  280. data/templates/rails/views/Page_view.rhtml +0 -3
  281. data/templates/rails/views/UploadPage_edit.rhtml +0 -38
  282. data/templates/rails/views/frame.rhtml +0 -60
  283. data/templates/rails/views/messages.yaml +0 -6
  284. /data/templates/default/attachment/{logo_thumb.bmp → tiny-logo thumb.bmp} +0 -0
@@ -3,6 +3,42 @@ the
3
3
  of
4
4
  and
5
5
  a
6
+ b
7
+ c
8
+ d
9
+ e
10
+ f
11
+ g
12
+ h
13
+ i
14
+ j
15
+ k
16
+ l
17
+ m
18
+ n
19
+ o
20
+ p
21
+ q
22
+ r
23
+ s
24
+ t
25
+ u
26
+ v
27
+ w
28
+ x
29
+ y
30
+ z
31
+ 0
32
+ 1
33
+ 2
34
+ 3
35
+ 4
36
+ 5
37
+ 6
38
+ 7
39
+ 8
40
+ 9
41
+ 0
6
42
  to
7
43
  in
8
44
  is
@@ -0,0 +1,24 @@
1
+ h1. API for classes to modify the wiki
2
+
3
+ There is a very simple API for classes to modify the wiki.
4
+
5
+ Any class can register to be notified of changes to the wiki by:
6
+
7
+ * @@wiki.watch_for( :page_created ) { |event, page, revision| do whatever you want }@
8
+ * @@wiki.watch_for( :page_revised ) { |event, page, revision| do whatever you want }@
9
+ * @@wiki.watch_for( :page_deleted ) { |event, page, revision| do whatever you want }@
10
+
11
+ These notifications are sent by a separate low priority thread from the one that is interacting with the user. Using these notifications a class can make changes to the wiki by calling:
12
+
13
+ <code>
14
+ @wiki.revise( pagename, newcontent, author )
15
+ </code>
16
+
17
+ The normal place for these classes to be initialized is from the start.rb file. The normal place for these classes to be stored is in the soks/lib/helpers directory.
18
+
19
+ Examples of helpers that use this api:
20
+ * [[AutomaticSummary => automatic summaries]] (which in turn are used by the SiteIndex and RecentChanges classes.
21
+ * AutomaticCalendar and AutomaticUpcomingEvents
22
+ * rss2wiki
23
+ * mail2wiki
24
+ * wiki2html
@@ -2,11 +2,11 @@ h1. The Author
2
2
 
3
3
  Soks was written by Tom Counsell. He can be reached at tamc@rubyforge.org.
4
4
 
5
- Further details can be found at http://tom.counsell.org.
6
-
7
5
  h2. Thanks to
8
6
 
9
- * Sebastien Clediere for a patch to fix uploads on windows
7
+ * Bil Kleb for new page categories, meta page improvements and other suggestsions.
8
+ * Sebastien Clediere for a patch to fix uploads on windows and other bugfixes
9
+ * Giovanni Ferro for a patch to allow soks to be used from a memory stick
10
10
  * _why for the RedCloth library
11
11
  * Austin Ziegler for the Diff:LCS library
12
12
  * Matz and ruby-core for the ruby language
@@ -1,20 +1,10 @@
1
1
  h1. Automatic Summaries
2
2
 
3
- Any class can register to be notified of changes to the wiki by:
4
- <code>
5
- @wiki.watch_for( :page_created ) { |event, page, revision| do whatever you want }
6
- @wiki.watch_for( :page_revised ) { |event, page, revision| do whatever you want }
7
- @wiki.watch_for( :page_deleted ) { |event, page, revision| do whatever you want }
8
- </code>
3
+ In lib/helpers/default-helpers.rb you will find an AutomaticSummary class. This uses the [[api => api for classes to modify the wiki ]] to watch for changes to the wiki, and if the page that is changed matches a given regexp, adds it to a summary page.
9
4
 
10
- These notifications are sent by a separate low priority thread from the one that is interacting with the user. Using these notifications a class can make changes to the wiki by calling:
11
- <code>
12
- @wiki.revise( pagename, newcontent, author )
13
- </code>
5
+ You can use it by creating a line in your soks-wiki/start.rb file of the form @AutomaticSummary.new( wiki, settings )@ where settings can be (defaults shown):
14
6
 
15
- In soks-helpers.rb you will find some classes that make use of this api. One particular one is the AutomaticSummary class. This watches for changes to the wiki, and if the page that is changed matches a given regexp, adds it to a summary page.
16
-
17
- It has quite a powerful set of settings, defaults are:
7
+ <pre>
18
8
  <code>
19
9
  DEFAULT_SETTINGS = {
20
10
  :regexp_for_title => /.*/, # These three regexps act as an AND
@@ -32,9 +22,13 @@ DEFAULT_SETTINGS = {
32
22
  :remove_deleted_pages => true, # If false will keep references to deleted pages
33
23
  }
34
24
  </code>
25
+ </pre>
26
+
27
+ h2. Examples
35
28
 
36
- Two examples of its use, included in the soks-helpers.rb file, are the Site Index and the Recent Changes page:
29
+ Two examples of its use, included in the default-helpers.rb file, are the Site Index and the Recent Changes page:
37
30
 
31
+ <pre>
38
32
  <code>
39
33
  AutomaticSummary.new( wiki, {
40
34
  :regexp_for_title => /.*/ # Match all pages
@@ -44,7 +38,9 @@ AutomaticSummary.new( wiki, {
44
38
  :sort_pages_by => :name_for_index,
45
39
  } )
46
40
  </code>
41
+ </pre>
47
42
 
43
+ <pre>
48
44
  <code>
49
45
  AutomaticSummary.new( wiki, {
50
46
  :regexp_for_title => /.*/ # Match all pages
@@ -58,8 +54,11 @@ AutomaticSummary.new( wiki, {
58
54
  :remove_deleted_pages => false,
59
55
  })
60
56
  </code>
57
+ </pre>
61
58
 
62
59
  You might also use it to construct a basic blog class:
60
+
61
+ <pre>
63
62
  <code>
64
63
  AutomaticSummary.new( wiki, {
65
64
  :regexp_for_title => /^Blog:.*/ # Match all pages starting with blog
@@ -73,5 +72,6 @@ AutomaticSummary.new( wiki, {
73
72
  :reverse_sort => true,
74
73
  })
75
74
  </code>
75
+ </pre>
76
76
 
77
77
  If you have any other ideas or examples, please add them here
@@ -3,3 +3,5 @@ h1. Automatic linking between pages
3
3
  Any reference to the title of another page in the wiki will be automatically linked. e.g. home page is linked to the home page.
4
4
 
5
5
  The links are made left to right, top to bottom, with the longest possible link made at any given time.
6
+
7
+ The easiest way to create a new page (if your browser supports it - I can only positively say that Safari does) is to highlight the text you want to link from and press ctrl-n.
@@ -0,0 +1,10 @@
1
+ Checking the RSS feed against the validator at http://feedvalidator.org/ reveals four errors:
2
+
3
+ # The appears to be encoded as "UTF-8", but your server is reporting "US-ASCII"
4
+ # 'utf8' codec can't decode bytes in position 1304-1307: invalid data (maybe a high-bit character?) - it is an umlaut !
5
+ # link must be a full and valid URL - They haven't been url encoded and still contain spaces and the like
6
+ # author must include an email address - Just has the authors name
7
+
8
+ --
9
+
10
+ Partially fixed in v-0-0-6 by changing the xml coding.
@@ -0,0 +1,33 @@
1
+ The "paragraph not kept separate" below should appear on a separate line from "A paragraph" but does not.
2
+
3
+ <pre>
4
+ Something
5
+ </pre>
6
+ A paragraph
7
+
8
+ A paragraph not kept separate
9
+ # Blah
10
+
11
+ The cause seems to be some interaction between the pre block and the following list block. Putting a blank line after the pre or before the list makes it function as expected:
12
+
13
+ e.g.
14
+
15
+ <pre>
16
+ Something
17
+ </pre>
18
+
19
+ A paragraph
20
+
21
+ A paragraph not kept separate
22
+ # Blah
23
+
24
+ or
25
+
26
+ <pre>
27
+ Something
28
+ </pre>
29
+ A paragraph
30
+
31
+ A paragraph not kept separate
32
+
33
+ # Blah
@@ -0,0 +1,21 @@
1
+ Bil Kleb reports:
2
+
3
+ bq. Unfortunately, I don't have any diagnostic data at
4
+ this point, but I have noticed on 3 occasions
5
+ that my home page has been rolled back to the previous
6
+ version when I restart WEBbrick (or when I moved the
7
+ Wiki to a new location/machine?).
8
+
9
+ I haven't seen this happen, but data loss is a very bad thing, so I would really appreciate any reports anyone has.
10
+
11
+ If it happens, could you let me know:
12
+
13
+ # Is it only ever the home page?
14
+ # If you look at the the revisions (edit, show all changes) does it show that the page has been rolled back, or just that the most recent edit never happened at all?
15
+ # If you look at the content/Home%20Page.yaml file, does it show that the most recent edit ever happened?
16
+ # Which version of the page does the content/Home%20Page.textile file contain?
17
+ # Are the timestamps of the Home%20Page.textile and Home%20Page.yaml files wildly different?
18
+
19
+ Thanks
20
+
21
+ tamc2
@@ -2,7 +2,7 @@ h1. Congratulations, you have installed SOKS
2
2
 
3
3
  Welcome to Soks. It is yet another wiki, written in ruby. Please bear in mind that it is alpha, and therefore do not trust your mission critical sites to it. Please feel free to use and adapt, the soks licence is free and liberal (although if you feel like contributing towards a new mac for the author that would be apreciated).
4
4
 
5
- p{background:yellow;padding:10px;}. A limited selection of help and bug reports are included here. For more information, and to share experiences, please visit http://soks.counsell.org. If you are upgrading, you may wish to look at the list of changes.
5
+ p{background:yellow;padding:10px;}. A limited selection of help and bug reports are included here. For more information, and to share experiences, please visit http://www.soks.org. If you are upgrading, you may wish to look at the list of changes.
6
6
 
7
7
  [[insert SOKS features]]
8
8
 
@@ -10,10 +10,11 @@ p{background:yellow;padding:10px;}. A limited selection of help and bug reports
10
10
 
11
11
  [[insert known bugs]]
12
12
 
13
+ Be sure to check http://www.soks.org/wiki/KnownBugs for the latest bug reports.
14
+
13
15
  h2. Feedback
14
16
 
15
17
  * Please send me your feedback. tamc@rubyforge.com.
16
- * Or add to the list of known bugs.
17
18
  * To keep track of developments, you may wish to subscribe to the mailing list at http://rubyforge.org/projects/soks.
18
19
 
19
20
  [[insert picture of a pair of soks]]
@@ -13,32 +13,17 @@ ruby start.rb
13
13
  h2. To make your site accessible beyond localhost
14
14
 
15
15
  Open start.rb in your directory. Un-comment the lines
16
+
16
17
  <code>
17
18
  # :url => 'http://localhost:8000',
18
19
  # :port => 8000,
19
20
  </code>
20
- and replace them with the url and port you wish the wiki to run on.
21
-
22
- h2. To password protect your site.
23
-
24
- Open start.rb in your wiki directory. Un-comment and edit the authenticators section and edit the array. The format is [ [ first regexp to match against title, authenticator to use ], [ second regexp to match against title, authenticator to use ] .... ]. For example:
25
21
 
26
- # This matches against all the standard 'non editing commands' and doesn't ask for any authentication
27
- <code>[ %r{/(view|rss|print|find|meta)/.*}, WEBrick::HTTPAuth::NoAuthenticationRequired.new ]</code>
28
-
29
- # This doesn't permit any file or picture uploads
30
- <code>[ %r{/upload/.*}, WEBrick::HTTPAuth::NotPermitted.new ]</code>
31
-
32
- # This asks for a site wide password to edit or save changes to the home page
33
- <code>[ %r{/(edit|save)/home page}, WEBrick::HTTPAuth::SiteWidePassword.new('password','You need to enter the site wide password to edit the home page') ]</code>
34
-
35
- # This uses the standard WEBrick authentication system on any page whose name starts with private. The standard WEBrick authentication uses a database of usernames and passwords. See [[ Gnome's Guide => http://shogo.homelinux.org/~ysantoso/webrickguide/html/html_webrick.html ]] for details.
36
- <code>[ %r{/(view|edit|save)/private.*},WEBrick::HTTPAuth::BasicAuth.new( :UserDB => htpasswd, :Realm => realm ) ]</code>
22
+ and replace them with the url and port you wish the wiki to run on.
37
23
 
38
- # This is the default. For any page it just asks for a username, but the password can be left blank.
39
- <code>[ %r{.*}, WEBrick::HTTPAuth::AskForUserName.new( 'No password, just enter a name') ]</code>
24
+ h2. To password protect your wiki.
40
25
 
41
- Note a big bug is that viewing attached images and files is NOT password protected. If someone knows how to make WEBrick::HTTPServlet::FileHandler use an authenticator, please let me know.
26
+ See how to password protect your wiki.
42
27
 
43
28
  h2. To edit the default site settings used by soks-create-wiki.rb
44
29
 
@@ -0,0 +1,21 @@
1
+ h1. How to get the latest Soks from cvs
2
+
3
+ If you can't wait for the next release of Soks, then you can check a copy out of the cvs. Note that the cvs copy of Soks *{color:red}may have serious bugs*, so please don't try and upgrade a running site with it. It also contains an outdated set of default content in the templates.
4
+
5
+ h2. Just download and go
6
+
7
+ # Download a tarball from http://rubyforge.org/cgi-bin/viewcvs.cgi/soks/soks.tar.gz?tarball=1&cvsroot=soks
8
+ # @tar -xvzf soks.tar.gzip@
9
+ # @cd soks@ and play
10
+
11
+ h2. Using CVS
12
+
13
+ Steps:
14
+ # If you don't have a copy of cvs, get it from www.cvshome.org
15
+ # Go into a terminal
16
+ # @cd wherever_you_want_to_download_soks_to@
17
+ # @cvs -d:pserver:anonymous@rubyforge.org:/var/cvs/soks login@
18
+ # Press enter when asked for a password
19
+ # @cvs -z3 -d:pserver:anonymous@rubyforge.org:/var/cvs/soks checkout soks@
20
+ # Soks will now download...
21
+ # @cd soks@ and play.
@@ -0,0 +1,45 @@
1
+ *The basic question:* How can I import data into Soks? (both pages and attachments)
2
+
3
+ h2. Scenario
4
+
5
+ I have a table worth of information that I would like to load into my Soks wiki. Each row of the table will become a page and each row has a PDF file associated with it.
6
+
7
+ What would be the process of dumping my tabular data in the wiki? Do I merely need to dump out @.textile@ versions of the pages in the contents directory (properly escaped)? Do I need the YAML revision companions? Do I merely dump the PDF files in the @attachments@ directory (with proper @.textile@ files also placed in @contents@)?
8
+
9
+ So far, I have something like,
10
+ <pre>
11
+ projects.each do |p|
12
+ name = CGI.escape("2005 ii Proposal: #{p.organization}: #{p.title}")
13
+ File.open(name+'.textile','w') do |f|
14
+ f.puts "h2. #{p.title}"
15
+ f.puts
16
+ f.puts "|Author:|#{p.author}|"
17
+ f.puts "|Organization:|#{p.organization}|"
18
+ f.puts "|FTE:|#{p.fte}"
19
+ f.puts "|Beneficiary:|#{p.beneficiary}|"
20
+ f.puts "|Submission:|Attached #{p.proposal.gsub(/\s/,'+').sub(/\..*?$/,'')}|"
21
+ end
22
+ end
23
+ </pre>
24
+
25
+ Am I heading in the correct direction? --Bil
26
+
27
+ Yes. comments:
28
+ # You don't need to escape the file-names, Soks should detect they are not escaped and correct them.
29
+ # You don't need to create revisions files, Soks will create them automatically.
30
+ # If a revision file exists, but is out of date, Soks will bring the revision file up to date.
31
+ # (I think you have realised this, but just in case) To import the PDFs, you need to both put them in the attachment directory and create a page in the content directory whose name starts 'attached ' and whose content is @/attachment/filenameof.pdf@
32
+ # You can do this while the wiki is running (soks periodically scans the content folder and updates itself with any changes[1]) but if you are adding a lot of files it is best to stop the wiki while the changes are made.
33
+ -- tamc2
34
+
35
+ An alternative (only appropriate if you plan to update the wiki from the database frequently) would be to write a helper class that you call from start.rb and that uses the @wiki.revise(pagename, content, author) methods.
36
+
37
+ A third alternative would be to use DRb (e.g. write @require 'drb'@ @DRb.start_service( 'druby://localhost:9001', view)@ somewhere in your start.rb file) and then write a script (or use irb) to remotely call the @wiki.revise( pagename, content, author) methods.
38
+
39
+ fn1. Changes detected by looking at the file's timestamp, not its content.
40
+
41
+ ----
42
+
43
+ Puzzled by Textile's non-rendering of the paragraph break between my signature above and Tom's "Yes. Comments:" --Bil
44
+
45
+ I've had a little look and seems to be an interaction between the pre tag and the following list. Corrected here and noted at Bug: Textile mishandles paragraphs. I think it is Redcloth, so will report there.
@@ -2,16 +2,18 @@ h1. How to install Soks
2
2
 
3
3
  h2. Requirements
4
4
 
5
- Essential: Ruby 1.8.2 from http://www.ruby-lang.org/en/
6
- Preferred: Ruby Gems from http://rubyforge.org/projects/rubygems/
5
+ # Essential: Ruby 1.8.2 from http://www.ruby-lang.org/en/
6
+ # Preferred: Ruby Gems from http://rubyforge.org/projects/rubygems/
7
7
 
8
8
  h2. The easy install
9
9
 
10
10
  If you have ruby gems, type:
11
- <code>
12
- gem install Soks
13
- soks-create-wiki.rb
14
- </code>
11
+
12
+ @gem install Soks@
13
+
14
+ then
15
+
16
+ @soks-create-wiki.rb@ (Gems should have installed this in your path so you can type it anywhere, if it hasn't, look in your ruby library under @gems/Soks-X.X.X/bin/@ )
15
17
 
16
18
  ...and then surf to http://localhost:8000
17
19
 
@@ -19,9 +21,11 @@ h2. The harder install
19
21
 
20
22
  Download the latest version of Soks from http://rubyforge.org/frs/?group_id=481
21
23
 
24
+ <pre>
22
25
  <code>
23
- tar -xvzf Soks-0.0.3.tgz
24
- ruby Soks-0.0.3/bin/soks-create-wiki.rb
26
+ tar -xvzf Soks-x.x.x.tgz
27
+ ruby Soks-x.x.x/bin/soks-create-wiki.rb
25
28
  </code>
29
+ </pre>
26
30
 
27
31
  ...and then surf to http://localhost:8000
@@ -0,0 +1,43 @@
1
+ h1. How to password protect your wiki
2
+
3
+ You can specify what authentication to be used based on a regular expression match against the url used to access the page.
4
+
5
+ Open @start.rb@ in your wiki directory. Un-comment and edit the authenticators section and edit the array. The format is [ [ first regexp to match against title, authenticator to use ], [ second regexp to match against title, authenticator to use ] ... ]. For example:
6
+
7
+ * The following matches against all the standard 'non editing commands' and doesn't ask for any authentication:
8
+
9
+ <code>[ %r{/(view|rss|print|find|meta)/.*}, WEBrick::HTTPAuth::NoAuthenticationRequired.new ]</code>
10
+
11
+ * The following doesn't permit any file or picture uploads:
12
+
13
+ <code>[ %r{/upload/.*}, WEBrick::HTTPAuth::NotPermitted.new ]</code>
14
+
15
+ * The following asks for a site wide password to edit or save changes to the home page:
16
+
17
+ <code>[ %r{/(edit|save)/home page}, WEBrick::HTTPAuth::SiteWidePassword.new('password','You need to enter the site wide password to edit the home page') ]</code>
18
+
19
+ * The following uses the standard WEBrick authentication system on any page whose name starts with private. The standard WEBrick authentication uses a database of usernames and passwords. See [[ Gnome's Guide => http://shogo.homelinux.org/~ysantoso/webrickguide/html/html_webrick.html ]] for details.
20
+
21
+ <code>[ %r{/(view|edit|save)/private.*},WEBrick::HTTPAuth::BasicAuth.new( :UserDB => htpasswd, :Realm => realm ) ]</code>
22
+
23
+ * The following is the default. For any page it just asks for a username, but the password can be left blank.
24
+
25
+ <code>[ %r{.*}, WEBrick::HTTPAuth::AskForUserName.new( 'No password, just enter a name') ]</code>
26
+
27
+ * BasicAuth isn't very secure as it transfers passwords over plaintext. If you can cope with some incompatability with very old browsers, DigestAuth is more secure. To implement DigestAuth:
28
+ # run this command: @htdigest -c /path/to/your/soks-wiki/htdigest "name of your realm" yourusername@ and enter your password. On gentoo, the full path is @/usr/sbin/htdigest2@
29
+ # Add this line into start.rb, inside the authenticators= block: @[ %r{/(view|edit|save)/private.*},WEBrick::HTTPAuth::DigestAuth.new( :UserDB => WEBrick::HTTPAuth::Htdigest.new('/path/to/your/soks-wiki/htdigest'), :Realm => "name of your realm") ]@
30
+ # Uncomment this line: @:authenticators => authenticators@
31
+ -- Skorgu
32
+
33
+ Note a big bug is that viewing attached images and files is NOT password protected. This will be fixed in version 0.0.6.
34
+
35
+ ----
36
+
37
+ Is there any means to changing the authentication on the fly like how the editable "sidebar page" works? (Have a "master" page that is access controlled, on which one would put other page links that would then become access controlled.) --Bil
38
+
39
+ ----
40
+
41
+ Can someone point me to an example (or outline the steps) to having the user names checked for validity by an LDAP server ? (Note: I asked a similar question on the Webricken mailing list.) --Bil
42
+
43
+ Not used LDAP myself, but the example at http://dataspill.org/posts/show/4 seems to show how one might communicate with the LDAP server to check valididty. This would need to be inserted into a WEBrick authenticator. If you just duplicate the code of an existing WEBrick authenticator (e.g. 1.8/webrick/httpauth/basicath.rb) you should be able to do a few tweaks to the authenticate method to get what you want. --tamc2
@@ -2,7 +2,7 @@ h1. How to report a bug
2
2
 
3
3
  I really appreciate bug reports.
4
4
 
5
- Please go to http://soks.counsell.org and create a new page whose title starts with bug:, e.g. @bug: does not make tea@.
5
+ Please go to http://www.soks.org and create a new page whose title starts with bug:, e.g. @bug: does not make tea@.
6
6
 
7
7
  In that page, please give as much information as you can and leave some contact details.
8
8
 
@@ -11,3 +11,5 @@ Soks has a number of keyboard short cuts. Depending on your browser, only some
11
11
  * ctrl-h: Home page
12
12
  * ctrl-i: Site Index
13
13
  * ctrl-r: Recent changes to this site
14
+
15
+ Note: on Linux/Firefox, substitute "meta" or "alt" for "ctrl".
@@ -21,6 +21,7 @@ h2. Editing Pages
21
21
  * To alias a link: <notextile> [[ a different name for </notextile>=><notextile> site index ]] </notextile>
22
22
  * To insert another page: <notextile>[ [ insert site index ]]</notextile>
23
23
  * This is particularly usefull if you want to insert a picture: <notextile>[ [ insert picture of the soks logo ]]</notextile>
24
+ * It can also be usefull to save one step in directing people to download an attached file: <notextile>[ [ insert attached file to download ]]</notextile>.
24
25
 
25
26
  h2. Searching
26
27
 
@@ -1,6 +1,6 @@
1
1
  h2. Instructions and Howtos
2
2
 
3
- p{font-size: x-small;}. Instructions and Howtos was created automatically from pages whose title matches /^How to /i.
3
+ p{font-size: x-small;}. Instructions and Howtos was created automatically from pages whose title matches ==/^How to /i==.
4
4
 
5
5
  <automaticsummary>
6
6
 
@@ -13,6 +13,9 @@ p{font-size: x-small;}. Instructions and Howtos was created automatically from p
13
13
  * [[ How to use the keyboard shortcuts ]]
14
14
  * [[ How to use this wiki ]]
15
15
  * [[ How to report a bug ]]
16
+ * [[ How to get the latest Soks from cvs ]]
17
+ * [[ How to password protect your wiki ]]
18
+ * [[ How to import data to this wiki ]]
16
19
 
17
20
 
18
21
  </automaticsummary>
@@ -5,10 +5,13 @@ p{font-size: x-small;}. Known bugs was created automatically from pages whose ti
5
5
  <automaticsummary>
6
6
 
7
7
  * [[ Bug: Does not make use of if-modified-since request headers ]] revised on 2005 Jan 25 18:23 by AutomaticImport
8
- * [[ Bug: Uploads are not password protected ]] revised on 2005 Jan 25 18:23 by AutomaticImport
9
8
  * [[ Bug: GEM limits title lengths ]] revised on 2005 Jan 26 08:55 by tamc2
10
- * [[ Bug: Punctuation in page titles still problematic ]] revised on 2005 Feb 12 10:08 by tamc2
11
9
  * [[ Bug: notextile does not prevent page inserts ]] revised on 2005 Feb 12 12:00 by tamc2
10
+ * [[ Bug: RSS feed does not validate ]] revised on 2005 Mar 15 16:24 by tamc2
11
+ * [[ Bug: Unanticipated Rollbacks ]] revised on 2005 Mar 08 05:50 by Bil Kleb
12
+ * [[ Bug: Textile mishandles paragraphs ]] revised on 2005 Mar 09 05:13 by tamc2
13
+ * [[ bug: competing edits ]] revised on 2005 Mar 10 14:47 by tamc2
14
+
12
15
 
13
16
  </automaticsummary>
14
17
 
@@ -1,5 +1,54 @@
1
1
  h1. List of changes
2
2
 
3
+ h2. Between v-0-0-6 and v-0-0-5
4
+
5
+ h3. Features
6
+
7
+ * The default template now includes a 'sidebar page' that can be edited inside the wiki. (Thanks to Bil Kleb).
8
+ * Changed the way the soks libraries are required to hopefully allow a wiki to be more easily moved between machines (Thanks to Giovanni Ferro).
9
+ * Some new settings:
10
+ ** Setting @:server_type => WEBrick::Daemon@ in start.rb causes Soks to try and fork into a separate process. By default this is off. (Thanks to Remy Drouilhet)
11
+ ** The name of the home page is now a setting in start.rb (@:home_page => "home page"@).
12
+ ** Setting @:redcloth_hard_breaks => true@ in start.rb causes Redcloth to revert to the 2.x approach of turning every newline to a @<br />@. This is off by default (i.e. the default works like Redcloth 3.x). (Thanks to Seb Clediere.)
13
+ * Roughed up a wiki2html helper that maintains a static html copy of the site in sync with the dynamic copy.
14
+ * Toned down the colors and tweaked the layout of the default wiki look.
15
+ * Removed the 'instiki' and the 'rails' templates from the distribution, because I haven't kept them up to date.
16
+
17
+ h3. Refactoring
18
+
19
+ * Filehandler servlet now incorporated into the WikiServlet.
20
+ * General cleanup in WikiServlet
21
+ * Rewrote the RollingMatch class (in soks-view, deals with automatic linking) to be less complex and a little bit faster.
22
+
23
+ h3. Bugfixes
24
+
25
+ * Fixed Bug: Time per change on meta page view incorrect
26
+ * Fixed Bug: Punctuation in page titles still problematic by adding two validations. The first is a piece of javascript that warns the user from using problematic punctuation, the second is in the servlet and removes all problematic punctuation. As a side effect, this has fixed Bug: ampersand in page name creates missing links that work .
27
+ * Fixed Bug: Search textarea and button rendered without vertical separation by removing the search button. It wasn't needed, and IMO looked clunky.
28
+ * Fixed Bug: Certain text crashes yaml revision loading
29
+ * Fixed Bug: Do not save and delete links confusing on edit page by replacing the links with form buttons.
30
+ * Shutting down Soks with ctrl-c (which is trapped by the TERM signal - does this work on Windows? non OSX unix?) now waits until all the running helpers have finished making their changes to the wiki. This should have fixed bug: Halting can corrupt revisions and may help with Bug: Unanticipated Rollbacks if graceless shutdown is the cause.
31
+ * Fixed Bug: Update frequency rounds inappropriately in meta view using Bil Kleb's extension to the Numeric class.
32
+ * Fixed Bug: AutomaticRecentChanges ignores changes parameter
33
+ * Fixed Bug: Uploads are not password protected
34
+ * Fixed Bug: Pictures and Attachments linked to site root
35
+ * Partially fixed Bug: RSS feed does not validate, in that I changed the encoding given in the xml so that umlauts work.
36
+ * Partially fixed Bug: Upload filenames needlessly mangled, in that it now only removes spaces from filename (which is unfortunately required for RedCloth to be able to make links to the file).
37
+ * Robots.txt in the default template dissalows the 'meta' page view
38
+
39
+ h3. Bugs remaining
40
+
41
+ Seems like I've accumulated enough changes above to start thinking about another release. This means that some bugs are not going to be fixed for this release. If you strongly object, please let me know.
42
+ * Bug: Does not make use of if-modified-since request headers
43
+ * Bug: GEM limits title lengths
44
+ * Bug: notextile does not prevent page inserts
45
+ * Bug: Textile mishandles paragraphs
46
+ * Bug: competing edits
47
+
48
+ The following bugs have only been partially fixed, so some problems may remain
49
+ * Bug: RSS feed does not validate
50
+ * Bug: Unanticipated Rollbacks
51
+
3
52
  h2. Between v-0-0-5 and v-0-0-4
4
53
 
5
54
  h3. Features
@@ -0,0 +1,58 @@
1
+ h1. New recent changes class
2
+
3
+ The current recent changes helper is pretty simple, and relies on automatic summary to do the dirty work.
4
+
5
+ Bil Kleb made the following request:
6
+
7
+ 1. Filter out the changes made by /^Automatic/ authors
8
+
9
+ 2. Chunk changes to a given page by day, i.e, collapse
10
+
11
+ <pre>
12
+ <code>
13
+ Feedback revised on 2005 Mar 05 04:37 by Bil Kleb
14
+ Feedback revised on 2005 Mar 05 04:36 by Bil Kleb
15
+ Feedback revised on 2005 Mar 05 04:35 by Bil Kleb
16
+ Feedback revised on 2005 Mar 05 04:34 by Bil Kleb
17
+ Feedback revised on 2005 Mar 05 04:33 by Bil Kleb
18
+ </pre>
19
+ </code>
20
+
21
+ to something like usemod produces:
22
+
23
+ <pre>
24
+ <code>
25
+ March 5, 2005
26
+
27
+ * (diff) Feedback 4:37 am (5 changes) Bil Kleb
28
+ </pre>
29
+ </code>
30
+
31
+ where "diff" shows you that last diff and "changes" shows you all the changes to this page
32
+
33
+ This would require the following changes:
34
+
35
+ 1) Re-write the AutomaticRecentchanges so that it creates the page itself rather than passing off to an AutomaticSummary class.
36
+
37
+ That would involve:
38
+ a) registering with the wiki to be notified of page changes ( wiki.watch_for( :page_revised ) { |event, page, revision| do_something_with( page, revision ) }
39
+ b) when a revision event occurs, update some data structure of the recent revisions
40
+ c) converting the data structure into a textile representation and writing to the wiki ( wiki.revise pagename, content, author )
41
+
42
+ 2) Create some new 'view' types that would have the 'diff' and the 'changes' laid out as you would like.
43
+
44
+ New views can be created in the views directory of the wiki. If the wiki receives a request for a url http://whatever.com/diff/feedback it will look in the views folder for a file called Page_diff.rhtml. This is expected to be an Erb file. The ruby in the erb file is bound to the context of the View class, so has local variables: pagename (String), page (Page), renderedview (String - html from textile), and access to the methods of the View and the Wiki classes.
45
+
46
+ 3) (Maybe) the changes and diff probably want to point to a specific set of changes / diff. That would mean would need to work out a way of getting a 'revision' variable from the url, through to the view method in the view class.
47
+
48
+ I guess the format for the url could be:
49
+ a) http://whaterver.com/diff/3/feedback
50
+ or
51
+ b) http://whaterver.com/diff/feedback?revision=3
52
+
53
+ I guess I visually prefer a) but b) would be easier to code.
54
+
55
+ Would then need to change:
56
+ lib/soks-servlet.rb/WikiServlet#service to extract the desired revision number from the request (e.g. by looking at request.query['revision']) and then edit the call to view.view to have an extra parameter (e.g. view(pagename, view, person, revision)).
57
+
58
+ Then modify lib/soks-view.rb/View#view to accept the extra parameter. It would then be available as a local variable in the Page_diff.rhtml