Soks 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.txt +1 -0
- data/bin/soks-create-wiki.rb +9 -2
- data/lib/helpers/default-helpers.rb +1 -0
- data/lib/helpers/maintenance-helpers.rb +2 -2
- data/lib/soks-servlet.rb +1 -1
- data/lib/soks-view.rb +1 -1
- data/lib/soks.rb +2 -0
- data/templates/default/content/Api%20for%20classes%20to%20modify%20the%20wiki.textile +4 -0
- data/templates/default/content/Automatic%20counters.textile +22 -0
- data/templates/default/content/Automatic%20exporters.textile +23 -0
- data/templates/default/content/Automatic%20importers.textile +57 -0
- data/templates/default/content/Automatic%20maintenance%20helpers.textile +39 -0
- data/templates/default/content/Bug%3A%20Page%2Einserted%5Finto%20is%20never%20purged.textile +17 -0
- data/templates/default/content/How%20to%20hack%20soks.textile +9 -6
- data/templates/default/content/How%20to%20re%2Dbuild%20the%20page%20cache.textile +71 -0
- data/templates/default/content/How%20to%20upgrade%20soks.textile +10 -0
- data/templates/default/content/How%20to%20use%20the%20Automatic%20Helper%20classes.textile +12 -0
- data/templates/default/content/List%20of%20changes.textile +12 -1
- data/templates/default/content/News%3A%20Version%201%2D0%2D1%20released.textile +12 -0
- data/templates/default/content/Pages%20to%20include%20in%20the%20distribution.textile +9 -6
- data/templates/default/content/README.textile +1 -0
- data/templates/default/content/Recent%20changes%20to%20this%20site.textile +80 -83
- data/templates/default/content/Site%20Index.textile +16 -1
- data/templates/default/start.rb +3 -1
- data/templates/default/version.txt +1 -1
- data/templates/default/views/frame.rhtml +1 -1
- data/test/test_soks-servlet.rb +1 -1
- metadata +10 -13
- data/TODO.txt +0 -31
- data/lib/helpers/mail2wiki-test.rb +0 -15
- data/lib/soks-drb.rb +0 -20
- data/lib/soks-fcgi.rb +0 -127
- data/templates/default/attachment/blank.gif +0 -0
- data/templates/default/attachment/pngbehavior.htc +0 -86
- data/templates/default/attachment/tiny-logo thumb.bmp +0 -0
- data/templates/default/content/Bug%3A%20E%2Dmail%20addresses%20with%20hyphens%20not%20recognised.textile +0 -17
- data/test/stress_url_calls.rb +0 -33
- data/test/stress_urls.txt +0 -68
@@ -1,6 +1,6 @@
|
|
1
1
|
h2. Recent Changes to This Site
|
2
2
|
|
3
|
-
|
3
|
+
A RSS feed of changes to this site is available [[ here => /listrss/recent changes to this site ]]
|
4
4
|
|
5
5
|
<automaticsummary>
|
6
6
|
|
@@ -8,6 +8,82 @@ An RSS feed of changes to this site is available [[ here => /listrss/recent chan
|
|
8
8
|
|
9
9
|
h2. Today
|
10
10
|
|
11
|
+
* 13:33 - [[How to upgrade soks]] revised by tamc2 ([[changes => /revision/How to upgrade soks?time=1123608824]])
|
12
|
+
* 13:28 - [[News: Version 1-0-1 released]] revised by tamc2 ([[changes => /revision/News: Version 1-0-1 released?time=1123608530]])
|
13
|
+
* 13:25 - [[How to re-build the page cache]] revised by tamc2 ([[changes => /revision/How to re-build the page cache?time=1123608302]])
|
14
|
+
* 13:23 - [[Bug: Page.inserted_into is never purged]] revised by tamc2 ([[changes => /revision/Bug: Page.inserted_into is never purged?time=1123608197]])
|
15
|
+
* 13:22 - [[Fixed bug: E-mail addresses with hyphens not recognised]] revised by tamc2 ([[changes => /revision/Fixed bug: E-mail addresses with hyphens not recognised?time=1123608160]])
|
16
|
+
* 13:22 - [[Bug: E-mail addresses with hyphens not recognised]] revised by tamc2 ([[changes => /revision/Bug: E-mail addresses with hyphens not recognised?time=1123608160]])
|
17
|
+
* 13:22 - [[Fixed Bug: Does not redirect pages with no view]] revised by tamc2 ([[changes => /revision/Fixed Bug: Does not redirect pages with no view?time=1123608125]])
|
18
|
+
* 13:22 - [[Bug: Does not redirect pages with no view]] revised by tamc2 ([[changes => /revision/Bug: Does not redirect pages with no view?time=1123608125]])
|
19
|
+
* 13:21 - [[Fixed Bug: AutomaticSummary does not reflect changes to summarised pages]] revised by tamc2 ([[changes => /revision/Fixed Bug: AutomaticSummary does not reflect changes to summarised pages?time=1123608094]])
|
20
|
+
* 13:21 - [[Bug: AutomaticSummary does not reflect changes to summarised pages]] revised by tamc2 ([[changes => /revision/Bug: AutomaticSummary does not reflect changes to summarised pages?time=1123608094]])
|
21
|
+
* 13:20 - [[Fixed Bug: Wrong title in Result Search page]] revised by tamc2 ([[changes => /revision/Fixed Bug: Wrong title in Result Search page?time=1123608046]])
|
22
|
+
* 13:20 - [[Bug: Wrong title in Result Search page]] revised by tamc2 ([[changes => /revision/Bug: Wrong title in Result Search page?time=1123608046]])
|
23
|
+
* 13:20 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1123608021]])
|
24
|
+
* 13:18 - [[README]] revised by tamc2 ([[changes => /revision/README?time=1123607929]])
|
25
|
+
* 10:00 - [[[Soks] Enabling blogs?]] revised by Tom Counsell ([[changes => /revision/[Soks] Enabling blogs??time=1123596007]])
|
26
|
+
* 04:48 - [[Syntax highlight code]] revised by tamc2 ([[changes => /revision/Syntax highlight code?time=1123577312]])
|
27
|
+
|
28
|
+
h2. Last Saturday
|
29
|
+
|
30
|
+
* 05:33 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1123320821]])
|
31
|
+
|
32
|
+
h2. 29 Jul
|
33
|
+
|
34
|
+
* 11:01 - [[sandbox]] revised by Kelzer ([[changes => /revision/sandbox?time=1122649295]])
|
35
|
+
* 08:38 - [[Thinking about meta-data]] revised by Giulio Piancastelli ([[changes => /revision/Thinking about meta-data?time=1122640697]])
|
36
|
+
|
37
|
+
h2. 28 Jul
|
38
|
+
|
39
|
+
* 12:44 - [[Thinking about meta-data]] revised by tamc2 ([[changes => /revision/Thinking about meta-data?time=1122569096]])
|
40
|
+
* 12:18 - [[Thinking about meta-data]] revised by Giulio Piancastelli ([[changes => /revision/Thinking about meta-data?time=1122567482]])
|
41
|
+
* 09:35 - [[How to re-build the page cache]] revised by tamc2 ([[changes => /revision/How to re-build the page cache?time=1122557708]])
|
42
|
+
* 06:22 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1122546127]])
|
43
|
+
|
44
|
+
h2. 27 Jul
|
45
|
+
|
46
|
+
* 15:45 - [[Bug: E-mail addresses with hyphens not recognised]] revised by tamc2 ([[changes => /revision/Bug: E-mail addresses with hyphens not recognised?time=1122493547]])
|
47
|
+
* 15:44 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1122493498]])
|
48
|
+
* 15:01 - [[Bug: Does not redirect pages with no view]] revised by tamc2 ([[changes => /revision/Bug: Does not redirect pages with no view?time=1122490863]])
|
49
|
+
* 14:47 - [[Bug: AutomaticSummary does not reflect changes to summarised pages]] revised by tamc2 ([[changes => /revision/Bug: AutomaticSummary does not reflect changes to summarised pages?time=1122490039]])
|
50
|
+
* 14:46 - [[Bug: Page.inserted_into is never purged]] revised by tamc2 ([[changes => /revision/Bug: Page.inserted_into is never purged?time=1122489997]])
|
51
|
+
* 13:08 - [[Thinking about meta-data]] revised by tamc2 ([[changes => /revision/Thinking about meta-data?time=1122484094]])
|
52
|
+
* 12:56 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1122483372]])
|
53
|
+
* 12:54 - [[How to hack soks]] revised by tamc2 ([[changes => /revision/How to hack soks?time=1122483256]])
|
54
|
+
* 10:39 - [[How to hack soks]] revised by Giulio Piancastelli ([[changes => /revision/How to hack soks?time=1122475152]])
|
55
|
+
* 10:29 - [[Bug: Wrong title in Result Search page]] revised by Giulio Piancastelli ([[changes => /revision/Bug: Wrong title in Result Search page?time=1122474575]])
|
56
|
+
* 10:26 - [[To Do List]] revised by Giulio Piancastelli ([[changes => /revision/To Do List?time=1122474419]])
|
57
|
+
* 06:02 - [[home page]] revised by tamc2 ([[changes => /revision/home page?time=1122458556]])
|
58
|
+
* 05:52 - [[Latest News]] revised by tamc2 ([[changes => /revision/Latest News?time=1122457965]])
|
59
|
+
* 05:22 - [[Recent changes to this site]] revised by tamc2 ([[changes => /revision/Recent changes to this site?time=1122456133]])
|
60
|
+
* 05:03 - [[This is a test]] revised by tamc2 ([[changes => /revision/This is a test?time=1122455013]])
|
61
|
+
* 03:42 - [[Bug: Wrong title in Result Search page]] revised by tamc2 ([[changes => /revision/Bug: Wrong title in Result Search page?time=1122450129]])
|
62
|
+
|
63
|
+
h2. 26 Jul
|
64
|
+
|
65
|
+
* 19:16 - [[This is a test]] revised by don ([[changes => /revision/This is a test?time=1122419781]])
|
66
|
+
* 10:08 - [[Bug: Wrong title in Result Search page]] revised by Giulio Piancastelli ([[changes => /revision/Bug: Wrong title in Result Search page?time=1122386925]])
|
67
|
+
* 07:17 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1122376653]])
|
68
|
+
|
69
|
+
h2. 25 Jul
|
70
|
+
|
71
|
+
* 13:48 - [[Automatic importers]] revised by tamc2 ([[changes => /revision/Automatic importers?time=1122313715]])
|
72
|
+
* 13:17 - [[How to hack soks]] revised by tamc2 ([[changes => /revision/How to hack soks?time=1122311821]])
|
73
|
+
* 13:14 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1122311644]])
|
74
|
+
* 13:10 - [[Bug: Wrong title in Result Search page]] revised by tamc2 ([[changes => /revision/Bug: Wrong title in Result Search page?time=1122311458]])
|
75
|
+
* 11:09 - [[Bug: Wrong title in Result Search page]] revised by Giulio Piancastelli ([[changes => /revision/Bug: Wrong title in Result Search page?time=1122304157]])
|
76
|
+
* 07:24 - [[Automatic exporters]] revised by tamc2 ([[changes => /revision/Automatic exporters?time=1122290674]])
|
77
|
+
* 07:24 - [[Automatic maintenance helpers]] revised by tamc2 ([[changes => /revision/Automatic maintenance helpers?time=1122290661]])
|
78
|
+
* 07:23 - [[Automatic counters]] revised by tamc2 ([[changes => /revision/Automatic counters?time=1122290626]])
|
79
|
+
* 07:23 - [[How to use the Automatic Helper classes]] revised by tamc2 ([[changes => /revision/How to use the Automatic Helper classes?time=1122290607]])
|
80
|
+
* 06:47 - [[Api for classes to modify the wiki]] revised by tamc2 ([[changes => /revision/Api for classes to modify the wiki?time=1122288428]])
|
81
|
+
* 06:43 - [[How to use the automatic summary classes]] revised by tamc2 ([[changes => /revision/How to use the automatic summary classes?time=1122288204]])
|
82
|
+
* 05:21 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1122283272]])
|
83
|
+
|
84
|
+
h2. 24 Jul
|
85
|
+
|
86
|
+
* 14:48 - [[home page]] revised by tamc2 ([[changes => /revision/home page?time=1122230929]])
|
11
87
|
* 14:20 - [[Distribution Home Page]] revised by tamc2 ([[changes => /revision/Distribution Home Page?time=1122229219]])
|
12
88
|
* 13:57 - [[News: Version 1-0-0 released]] revised by tamc2 ([[changes => /revision/News: Version 1-0-0 released?time=1122227862]])
|
13
89
|
* 13:57 - [[How to upgrade soks]] revised by tamc2 ([[changes => /revision/How to upgrade soks?time=1122227823]])
|
@@ -58,7 +134,7 @@ h2. Today
|
|
58
134
|
* 05:38 - [[Bug: Sok CVS tar file has "implausibly old time stamp"]] revised by tamc2 ([[changes => /revision/Bug: Sok CVS tar file has "implausibly old time stamp"?time=1122197934]])
|
59
135
|
* 05:17 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1122196657]])
|
60
136
|
|
61
|
-
h2.
|
137
|
+
h2. 23 Jul
|
62
138
|
|
63
139
|
* 18:41 - [[Bug: Memory leak]] revised by tamc2 ([[changes => /revision/Bug: Memory leak?time=1122158464]])
|
64
140
|
* 17:25 - [[Fixed Bug: RSS feed does not validate]] revised by tamc2 ([[changes => /revision/Fixed Bug: RSS feed does not validate?time=1122153907]])
|
@@ -85,7 +161,7 @@ h2. Yesterday
|
|
85
161
|
* 04:37 - [[Bug: AutomaticPageMover still apears in RecentChanges]] revised by tamc2 ([[changes => /revision/Bug: AutomaticPageMover still apears in RecentChanges?time=1122107865]])
|
86
162
|
* 04:35 - [[News: Next release due, so this site is being edited]] revised by tamc2 ([[changes => /revision/News: Next release due, so this site is being edited?time=1122107703]])
|
87
163
|
|
88
|
-
h2.
|
164
|
+
h2. 22 Jul
|
89
165
|
|
90
166
|
* 12:00 - [[News: Next release due, so this site is being edited]] revised by tamc2 ([[changes => /revision/News: Next release due, so this site is being edited?time=1122048055]])
|
91
167
|
* 08:10 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1122034247]])
|
@@ -93,7 +169,7 @@ h2. Last Friday
|
|
93
169
|
* 07:01 - [[To Do List]] revised by Bil Kleb ([[changes => /revision/To Do List?time=1122030097]])
|
94
170
|
* 06:43 - [[Planned Features]] revised by Bil Kleb ([[changes => /revision/Planned Features?time=1122029002]])
|
95
171
|
|
96
|
-
h2.
|
172
|
+
h2. 21 Jul
|
97
173
|
|
98
174
|
* 18:01 - [[[Soks] Sub wikis]] revised by Tom Counsell ([[changes => /revision/[Soks] Sub wikis?time=1121983315]])
|
99
175
|
|
@@ -195,85 +271,6 @@ h2. 22 May
|
|
195
271
|
* 14:56 - [[[Soks] (no subject)]] revised by Bil.Kleb@nasa.gov ([[changes => /revision/[Soks] (no subject)?time=1116788195]])
|
196
272
|
* 14:56 - [[[Soks] [Fwd: *cloth and ToC]]] revised by Bil Kleb ([[changes => /revision/[Soks] [Fwd: *cloth and ToC]?time=1116788193]])
|
197
273
|
* 14:56 - [[[Soks] Soks speed]] revised by Tom Counsell ([[changes => /revision/[Soks] Soks speed?time=1116788189]])
|
198
|
-
* 14:56 - [[[Soks] non-greedy regexps in automatic summary]] revised by Bil Kleb ([[changes => /revision/[Soks] non-greedy regexps in automatic summary?time=1116788187]])
|
199
|
-
* 14:56 - [[[Soks] Q: how to I change the default "home page" for WEBrick?]] revised by Bil Kleb ([[changes => /revision/[Soks] Q: how to I change the default "home page" for WEBrick??time=1116788183]])
|
200
|
-
* 14:56 - [[[Soks] Annotations]] revised by Bil Kleb ([[changes => /revision/[Soks] Annotations?time=1116788182]])
|
201
|
-
* 14:56 - [[[Soks] Trouble adding new page]] revised by Bil Kleb ([[changes => /revision/[Soks] Trouble adding new page?time=1116788174]])
|
202
|
-
* 14:56 - [[[Soks] feature descriptions]] revised by Bil Kleb ([[changes => /revision/[Soks] feature descriptions?time=1116788171]])
|
203
|
-
* 14:56 - [[Soks stopping problem.]] revised by Sebastien Clediere ([[changes => /revision/Soks stopping problem.?time=1116788170]])
|
204
|
-
* 14:56 - [[[Soks] [Fwd: Another neat Soks Wiki thing]]] revised by Bil Kleb ([[changes => /revision/[Soks] [Fwd: Another neat Soks Wiki thing]?time=1116788169]])
|
205
|
-
* 14:56 - [[[Soks] unanticipated rollbacks]] revised by Bil Kleb ([[changes => /revision/[Soks] unanticipated rollbacks?time=1116788166]])
|
206
|
-
* 14:56 - [[[Soks] page templates/categories]] revised by Bil Kleb ([[changes => /revision/[Soks] page templates/categories?time=1116788163]])
|
207
|
-
* 14:55 - [[[Soks] compressing and filtering Recent Changes]] revised by Bil Kleb ([[changes => /revision/[Soks] compressing and filtering Recent Changes?time=1116788159]])
|
208
|
-
* 14:55 - [[[Soks] User reaction: edit page button/link mixture]] revised by Bil Kleb ([[changes => /revision/[Soks] User reaction: edit page button/link mixture?time=1116788157]])
|
209
|
-
* 14:55 - [[[Soks] Dynamic menu]] revised by Bil Kleb ([[changes => /revision/[Soks] Dynamic menu?time=1116788152]])
|
210
|
-
* 14:55 - [[A few customer reactions (was Re: [Soks] Re: [Fwd: Soks rocks])]] revised by Bil Kleb ([[changes => /revision/A few customer reactions (was Re: [Soks] Re: [Fwd: Soks rocks])?time=1116788149]])
|
211
|
-
* 14:55 - [[[Soks] Dynamic menu (was Re: A few customer reactions)]] revised by Tom Counsell ([[changes => /revision/[Soks] Dynamic menu (was Re: A few customer reactions)?time=1116788146]])
|
212
|
-
* 14:55 - [[[Soks] Searching attached files]] revised by Tom Counsell ([[changes => /revision/[Soks] Searching attached files?time=1116788143]])
|
213
|
-
* 14:55 - [[[Soks] [Fwd: Re: Soks rocks (but now need "deep" search capability)]]] revised by Bil Kleb ([[changes => /revision/[Soks] [Fwd: Re: Soks rocks (but now need "deep" search capability)]?time=1116788142]])
|
214
|
-
* 14:55 - [[WG: Delivery Status Notification (Failure)]] revised by Uwe Kallmeyer ([[changes => /revision/WG: Delivery Status Notification (Failure)?time=1116788139]])
|
215
|
-
* 14:55 - [[[Soks] Rounding error?]] revised by Bil Kleb ([[changes => /revision/[Soks] Rounding error??time=1116788138]])
|
216
|
-
* 14:55 - [[[Soks] Soks-0.0.5: RecentChanges ignoring 'changes' argument?]] revised by Bil Kleb ([[changes => /revision/[Soks] Soks-0.0.5: RecentChanges ignoring 'changes' argument??time=1116788137]])
|
217
|
-
* 14:55 - [[Soks 0.0.5 feedback...]] revised by Sebastien Clediere ([[changes => /revision/Soks 0.0.5 feedback...?time=1116788135]])
|
218
|
-
* 14:55 - [[[Fwd: Soks rocks]]] revised by Bil Kleb ([[changes => /revision/[Fwd: Soks rocks]?time=1116788134]])
|
219
|
-
* 14:55 - [[[Soks] Re: [Fwd: Soks rocks]]] revised by Bil Kleb ([[changes => /revision/[Soks] Re: [Fwd: Soks rocks]?time=1116788131]])
|
220
|
-
* 14:55 - [[[Soks] Linking to attached files]] revised by Bil Kleb ([[changes => /revision/[Soks] Linking to attached files?time=1116788129]])
|
221
|
-
* 14:55 - [[Feedback]] revised by Remy Drouilhet ([[changes => /revision/Feedback?time=1116788127]])
|
222
|
-
* 14:55 - [[Status Alert: Domain Change Notification]] revised by support@godaddy.com ([[changes => /revision/Status Alert: Domain Change Notification?time=1116788124]])
|
223
|
-
* 14:55 - [[Information regarding the registration of SOKS.ORG]] revised by support@godaddy.com ([[changes => /revision/Information regarding the registration of SOKS.ORG?time=1116788122]])
|
224
|
-
* 14:55 - [[Important Information Regarding Your Purchase]] revised by service@godaddy.com ([[changes => /revision/Important Information Regarding Your Purchase?time=1116788119]])
|
225
|
-
* 14:55 - [[GoDaddy.com Order Confirmation]] revised by sales@godaddy.com ([[changes => /revision/GoDaddy.com Order Confirmation?time=1116788114]])
|
226
|
-
* 14:55 - [[AW: soks vs. instiki]] revised by Uwe Kallmeyer ([[changes => /revision/AW: soks vs. instiki?time=1116788112]])
|
227
|
-
* 14:55 - [[Soks v-0-0-5 released]] revised by Thomas Counsell ([[changes => /revision/Soks v-0-0-5 released?time=1116788111]])
|
228
|
-
* 14:55 - [[soks vs. instiki]] revised by Uwe Kallmeyer ([[changes => /revision/soks vs. instiki?time=1116788110]])
|
229
|
-
* 14:55 - [[[Soks] [ANN] Soks v-0-0-5]] revised by Thomas Counsell ([[changes => /revision/[Soks] [ANN] Soks v-0-0-5?time=1116788109]])
|
230
|
-
* 14:55 - [[What's the best way to write a Textile-to-PDF::Writer converter?]] revised by Austin Ziegler ([[changes => /revision/What's the best way to write a Textile-to-PDF::Writer converter??time=1116788100]])
|
231
|
-
* 14:55 - [[Why "pre" AND "code" tags in Textile Markup?]] revised by Andreas Semt ([[changes => /revision/Why "pre" AND "code" tags in Textile Markup??time=1116788100]])
|
232
|
-
* 14:54 - [[Try Ruwiki, too (Re: [ANN] Soks - Yet Another Wiki)]] revised by James Britt ([[changes => /revision/Try Ruwiki, too (Re: [ANN] Soks - Yet Another Wiki)?time=1116788084]])
|
233
|
-
* 14:54 - [[RubyForge New Mailing List]] revised by admin@rubyforge.org ([[changes => /revision/RubyForge New Mailing List?time=1116788071]])
|
234
|
-
* 14:54 - [[[ANN] Soks - Yet Another Wiki]] revised by Marcel Molina Jr. ([[changes => /revision/[ANN] Soks - Yet Another Wiki?time=1116788070]])
|
235
|
-
* 14:54 - [[Soks correction for windows...]] revised by Seb ([[changes => /revision/Soks correction for windows...?time=1116788068]])
|
236
|
-
* 14:54 - [[Soks - Yet Another Wiki]] revised by Alexey Verkhovsky ([[changes => /revision/Soks - Yet Another Wiki?time=1116788067]])
|
237
|
-
* 14:54 - [[Ugly Page URLs in Soks]] revised by Gavri Fernandez ([[changes => /revision/Ugly Page URLs in Soks?time=1116788066]])
|
238
|
-
* 14:54 - [[Fixed bug: automatic link links to stuff inside html tags]] revised by the import script ([[changes => /revision/Fixed bug: automatic link links to stuff inside html tags?time=1116788047]])
|
239
|
-
* 11:11 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1116774686]])
|
240
|
-
|
241
|
-
h2. 21 May
|
242
|
-
|
243
|
-
* 15:54 - [[Test Page]] revised by tamc2 ([[changes => /revision/Test Page?time=1116705256]])
|
244
|
-
* 15:46 - [[Test Page]] revised by tester ([[changes => /revision/Test Page?time=1116704760]])
|
245
|
-
* 15:40 - [[TestAPage]] revised by tester ([[changes => /revision/TestAPage?time=1116704457]])
|
246
|
-
|
247
|
-
h2. 20 May
|
248
|
-
|
249
|
-
* 15:32 - [[testo]] revised by britt ([[changes => /revision/testo?time=1116617523]])
|
250
|
-
|
251
|
-
h2. 19 May
|
252
|
-
|
253
|
-
* 14:44 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1116528244]])
|
254
|
-
* 14:43 - [[Type a title here]] revised by tamc2 ([[changes => /revision/Type a title here?time=1116528183]])
|
255
|
-
|
256
|
-
h2. 17 May
|
257
|
-
|
258
|
-
* 20:49 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1116377378]])
|
259
|
-
* 20:48 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1116377296]])
|
260
|
-
|
261
|
-
h2. 16 May
|
262
|
-
|
263
|
-
* 05:42 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1116236521]])
|
264
|
-
|
265
|
-
h2. 15 May
|
266
|
-
|
267
|
-
* 08:11 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1116159103]])
|
268
|
-
|
269
|
-
h2. 14 May
|
270
|
-
|
271
|
-
* 13:44 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1116092662]])
|
272
|
-
|
273
|
-
h2. 05 May
|
274
|
-
|
275
|
-
* 18:44 - [[To Do List]] revised by tamc2 ([[changes => /revision/To Do List?time=1115333083]])
|
276
|
-
* 17:45 - [[List of changes]] revised by tamc2 ([[changes => /revision/List of changes?time=1115329528]])
|
277
274
|
|
278
275
|
|
279
276
|
</div>
|
@@ -27,6 +27,7 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
27
27
|
* [[ [Soks] editing Automatic Summary pages ]]
|
28
28
|
* [[ [Soks] Editing CSS through browser ]]
|
29
29
|
* [[ [Soks] email addresses imported to wiki ]]
|
30
|
+
* [[ [Soks] Enabling blogs? ]]
|
30
31
|
* [[ [Soks] feature descriptions ]]
|
31
32
|
* [[ [Soks] home page counter ]]
|
32
33
|
* [[ [Soks] Linking to attached files ]]
|
@@ -61,7 +62,11 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
61
62
|
* [[ All News ]]
|
62
63
|
* [[ Api for classes to modify the wiki ]]
|
63
64
|
* [[ Author ]]
|
65
|
+
* [[ Automatic counters ]]
|
66
|
+
* [[ Automatic exporters ]]
|
67
|
+
* [[ Automatic importers ]]
|
64
68
|
* [[ Automatic linking between pages ]]
|
69
|
+
* [[ Automatic maintenance helpers ]]
|
65
70
|
* [[ Automatic Summaries ]]
|
66
71
|
* [[ AW: soks vs. instiki ]]
|
67
72
|
* [[ Picture of bad_buttons_bad ]]
|
@@ -71,11 +76,11 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
71
76
|
* [[ Bill Wood ]]
|
72
77
|
* [[ Bug: Competing edits ]]
|
73
78
|
* [[ Bug: Does not make use of if-modified-since request headers ]]
|
74
|
-
* [[ Bug: E-mail addresses with hyphens not recognised ]]
|
75
79
|
* [[ Bug: Email adresses in page titles cause incorrect links ]]
|
76
80
|
* [[ Bug: GEM limits title lengths ]]
|
77
81
|
* [[ Bug: Memory leak ]]
|
78
82
|
* [[ Bug: notextile does not prevent page inserts ]]
|
83
|
+
* [[ Bug: Page.inserted_into is never purged ]]
|
79
84
|
* [[ Bug: Pages that link here may not appear on restart ]]
|
80
85
|
* [[ Bug: Textile mishandles paragraphs ]]
|
81
86
|
* [[ Bug: Type a title here ]]
|
@@ -89,11 +94,14 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
89
94
|
* [[ Fixed Bug: automatic linking does not work with trailing punctuation ]]
|
90
95
|
* [[ Fixed Bug: AutomaticPageMover still apears in RecentChanges ]]
|
91
96
|
* [[ Fixed Bug: AutomaticRecentChanges ignores changes parameter ]]
|
97
|
+
* [[ Fixed Bug: AutomaticSummary does not reflect changes to summarised pages ]]
|
92
98
|
* [[ Fixed bug: calendar does not appear ]]
|
93
99
|
* [[ Fixed Bug: Cannot change capitalization of a page title ]]
|
94
100
|
* [[ Fixed Bug: Certain text crashes yaml revision loading ]]
|
95
101
|
* [[ Fixed Bug: Do not save and delete links confusing on edit page ]]
|
102
|
+
* [[ Fixed Bug: Does not redirect pages with no view ]]
|
96
103
|
* [[ Fixed Bug: Duplicate links-to a page sometimes appear ]]
|
104
|
+
* [[ Fixed bug: E-mail addresses with hyphens not recognised ]]
|
97
105
|
* [[ Fixed Bug: External links incorrectly include trailing punctuation ]]
|
98
106
|
* [[ Fixed Bug: FATAL When renaming upload picture pages ]]
|
99
107
|
* [[ Fixed Bug: Forward slashes in titles problematic ]]
|
@@ -123,6 +131,7 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
123
131
|
* [[ Fixed Bug: Upload filenames needlessly mangled ]]
|
124
132
|
* [[ Fixed Bug: Uploads are not password protected ]]
|
125
133
|
* [[ Fixed bug: viewing revisions requires authentification ]]
|
134
|
+
* [[ Fixed Bug: Wrong title in Result Search page ]]
|
126
135
|
* [[ GoDaddy.com Order Confirmation ]]
|
127
136
|
* [[ Picture of hh.jpg ]]
|
128
137
|
* [[ home page ]]
|
@@ -136,8 +145,10 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
136
145
|
* [[ How to import data ]]
|
137
146
|
* [[ How to install Soks ]]
|
138
147
|
* [[ How to password protect your wiki ]]
|
148
|
+
* [[ How to re-build the page cache ]]
|
139
149
|
* [[ How to report a bug ]]
|
140
150
|
* [[ How to upgrade soks ]]
|
151
|
+
* [[ How to use the Automatic Helper classes ]]
|
141
152
|
* [[ How to use the keyboard shortcuts ]]
|
142
153
|
* [[ How to use this wiki ]]
|
143
154
|
* [[ Instructions and Howtos ]]
|
@@ -154,6 +165,7 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
154
165
|
* [[ News: Version 0.0.6 Released ]]
|
155
166
|
* [[ News: Version 0.0.7 Released ]]
|
156
167
|
* [[ News: Version 1-0-0 released ]]
|
168
|
+
* [[ News: Version 1-0-1 released ]]
|
157
169
|
* [[ News: Version numbering system change ]]
|
158
170
|
* [[ Not a Soks Bug: Sok CVS tar file has "implausibly old time stamp" ]]
|
159
171
|
* [[ Pages to include in the distribution ]]
|
@@ -184,12 +196,15 @@ p{font-size: x-small;}. Site Index was created automatically from pages whose ti
|
|
184
196
|
* [[ soks vs. instiki ]]
|
185
197
|
* [[ Soks... ]]
|
186
198
|
* [[ SoksSpace ]]
|
199
|
+
* [[ Syntax highlight code ]]
|
187
200
|
* [[ Tag: Include this page in the distribution ]]
|
188
201
|
* [[ tamc ]]
|
189
202
|
* [[ tamc2 ]]
|
190
203
|
* [[ Test Page ]]
|
191
204
|
* [[ Test-first (was Re: [Soks] Dynamic menu) ]]
|
192
205
|
* [[ testo ]]
|
206
|
+
* [[ Thinking about meta-data ]]
|
207
|
+
* [[ This is a test ]]
|
193
208
|
* [[ To Do List ]]
|
194
209
|
* [[ Try Ruwiki, too (Re: [ANN] Soks - Yet Another Wiki) ]]
|
195
210
|
* [[ Type a title here ]]
|
data/templates/default/start.rb
CHANGED
@@ -11,7 +11,7 @@ $LOG.datetime_format = "%Y-%m-%d %H:%M:%S"
|
|
11
11
|
begin
|
12
12
|
require 'rubygems'
|
13
13
|
require_gem 'Soks', '~> <%= settings[:version] %>'
|
14
|
-
$LOG.info 'Loaded Soks
|
14
|
+
$LOG.info 'Loaded Soks from gem'
|
15
15
|
rescue LoadError
|
16
16
|
$LOG.info "Soks Gem version <%= settings[:version] %> could not be found"
|
17
17
|
$:.push( "<%= settings[:soks_libraries].join('","') %>" )
|
@@ -19,6 +19,8 @@ rescue LoadError
|
|
19
19
|
$LOG.info 'Loaded Soks libraries from <%= settings[:soks_libraries].join('","') %>'
|
20
20
|
end
|
21
21
|
|
22
|
+
$LOG.info "Running Soks version #{SOKS_VERSION}"
|
23
|
+
|
22
24
|
root_directory = File.expand_path( File.dirname( __FILE__) )
|
23
25
|
$MESSAGES = YAML.load( IO.readlines("#{root_directory}/views/messages.yaml").join )
|
24
26
|
banned_titles = IO.readlines("#{root_directory}/banned_titles.txt").map { |title| title.strip }
|
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<title><%= page.name %></title>
|
4
|
+
<title><%= query['regex'] ? "Results of search for '#{query['regex']}'" : page.name %></title>
|
5
5
|
<meta name='description' content='<%= description %>' />
|
6
6
|
<meta name='keywords' content='Soks, <%= name %>' />
|
7
7
|
<link href='<%= file 'stylesheet.css' %>' rel='stylesheet' type='text/css' media='screen' />
|
data/test/test_soks-servlet.rb
CHANGED
@@ -99,7 +99,7 @@ class TestWikiServlet < Test::Unit::TestCase
|
|
99
99
|
|
100
100
|
def test_redirect_to_view
|
101
101
|
@servlet.service( re = MockRequest[ :path => '/randompage' ], rp = MockResponse.new )
|
102
|
-
assert_equal( 'http://testsite.com/view/
|
102
|
+
assert_equal( 'http://testsite.com/view/randompage', rp[:redirect_destination])
|
103
103
|
end
|
104
104
|
|
105
105
|
def test_missing_view
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: Soks
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
7
|
-
date: 2005-
|
6
|
+
version: 1.0.1
|
7
|
+
date: 2005-08-09 00:00:00 +01:00
|
8
8
|
summary: Yet another wiki.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -35,7 +35,6 @@ files:
|
|
35
35
|
- contrib/diff_licence.txt
|
36
36
|
- contrib/easyprompt.rb
|
37
37
|
- contrib/easyprompt_licence.txt
|
38
|
-
- contrib/mnemonic
|
39
38
|
- contrib/redcloth-3.0.3.rb
|
40
39
|
- contrib/redcloth_license.txt
|
41
40
|
- contrib/diff/lcs
|
@@ -49,8 +48,6 @@ files:
|
|
49
48
|
- contrib/diff/lcs/string.rb
|
50
49
|
- lib/authenticators.rb
|
51
50
|
- lib/helpers
|
52
|
-
- lib/soks-drb.rb
|
53
|
-
- lib/soks-fcgi.rb
|
54
51
|
- lib/soks-model.rb
|
55
52
|
- lib/soks-servlet.rb
|
56
53
|
- lib/soks-storage.rb
|
@@ -61,7 +58,6 @@ files:
|
|
61
58
|
- lib/helpers/counter-helpers.rb
|
62
59
|
- lib/helpers/default-helpers.rb
|
63
60
|
- lib/helpers/mail2wiki-helper.rb
|
64
|
-
- lib/helpers/mail2wiki-test.rb
|
65
61
|
- lib/helpers/maintenance-helpers.rb
|
66
62
|
- lib/helpers/rss2wiki-helper.rb
|
67
63
|
- lib/helpers/wiki2html.rb
|
@@ -73,30 +69,31 @@ files:
|
|
73
69
|
- templates/default/start.rb
|
74
70
|
- templates/default/version.txt
|
75
71
|
- templates/default/views
|
76
|
-
- templates/default/attachment/blank.gif
|
77
72
|
- templates/default/attachment/favicon.ico
|
78
73
|
- templates/default/attachment/logo.jpg
|
79
74
|
- templates/default/attachment/logo.png
|
80
75
|
- templates/default/attachment/logo.tiff
|
81
76
|
- templates/default/attachment/newpage.js
|
82
|
-
- templates/default/attachment/pngbehavior.htc
|
83
77
|
- templates/default/attachment/print_stylesheet.css
|
84
78
|
- templates/default/attachment/robots.txt
|
85
79
|
- templates/default/attachment/rss.png
|
86
80
|
- templates/default/attachment/stylesheet.css
|
87
|
-
- templates/default/attachment/tiny-logo thumb.bmp
|
88
81
|
- templates/default/caches/readme.txt
|
89
82
|
- templates/default/content/Api%20for%20classes%20to%20modify%20the%20wiki.textile
|
90
83
|
- templates/default/content/Author.textile
|
84
|
+
- templates/default/content/Automatic%20counters.textile
|
85
|
+
- templates/default/content/Automatic%20exporters.textile
|
86
|
+
- templates/default/content/Automatic%20importers.textile
|
91
87
|
- templates/default/content/Automatic%20linking%20between%20pages.textile
|
88
|
+
- templates/default/content/Automatic%20maintenance%20helpers.textile
|
92
89
|
- templates/default/content/Automatic%20Summaries.textile
|
93
90
|
- templates/default/content/Bug%3A%20Competing%20edits.textile
|
94
91
|
- templates/default/content/Bug%3A%20Does%20not%20make%20use%20of%20if%2Dmodified%2Dsince%20r.textile
|
95
|
-
- templates/default/content/Bug%3A%20E%2Dmail%20addresses%20with%20hyphens%20not%20recognised.textile
|
96
92
|
- templates/default/content/Bug%3A%20Email%20adresses%20in%20page%20titles%20cause%20incorrec.textile
|
97
93
|
- templates/default/content/Bug%3A%20GEM%20limits%20title%20lengths.textile
|
98
94
|
- templates/default/content/Bug%3A%20Memory%20leak.textile
|
99
95
|
- templates/default/content/Bug%3A%20notextile%20does%20not%20prevent%20page%20inserts.textile
|
96
|
+
- templates/default/content/Bug%3A%20Page%2Einserted%5Finto%20is%20never%20purged.textile
|
100
97
|
- templates/default/content/Bug%3A%20Pages%20that%20link%20here%20may%20not%20appear%20on%20r.textile
|
101
98
|
- templates/default/content/Bug%3A%20Textile%20mishandles%20paragraphs.textile
|
102
99
|
- templates/default/content/Bug%3A%20Unanticipated%20Rollbacks.textile
|
@@ -110,12 +107,15 @@ files:
|
|
110
107
|
- templates/default/content/How%20to%20import%20data.textile
|
111
108
|
- templates/default/content/How%20to%20install%20Soks.textile
|
112
109
|
- templates/default/content/How%20to%20password%20protect%20your%20wiki.textile
|
110
|
+
- templates/default/content/How%20to%20re%2Dbuild%20the%20page%20cache.textile
|
113
111
|
- templates/default/content/How%20to%20report%20a%20bug.textile
|
114
112
|
- templates/default/content/How%20to%20upgrade%20soks.textile
|
113
|
+
- templates/default/content/How%20to%20use%20the%20Automatic%20Helper%20classes.textile
|
115
114
|
- templates/default/content/How%20to%20use%20the%20keyboard%20shortcuts.textile
|
116
115
|
- templates/default/content/How%20to%20use%20this%20wiki.textile
|
117
116
|
- templates/default/content/List%20of%20changes.textile
|
118
117
|
- templates/default/content/News%3A%20Version%201%2D0%2D0%20released.textile
|
118
|
+
- templates/default/content/News%3A%20Version%201%2D0%2D1%20released.textile
|
119
119
|
- templates/default/content/Pages%20to%20include%20in%20the%20distribution.textile
|
120
120
|
- templates/default/content/Per%20Wiki%20Templates.textile
|
121
121
|
- templates/default/content/Picture%20of%20a%20pair%20of%20soks.textile
|
@@ -144,8 +144,6 @@ files:
|
|
144
144
|
- templates/default/views/UploadPage_edit.rhtml
|
145
145
|
- test/html
|
146
146
|
- test/mock-objects.rb
|
147
|
-
- test/stress_url_calls.rb
|
148
|
-
- test/stress_urls.txt
|
149
147
|
- test/test_counter-helper.rb
|
150
148
|
- test/test_soks-helper-maintenance.rb
|
151
149
|
- test/test_soks-helpers.rb
|
@@ -159,7 +157,6 @@ files:
|
|
159
157
|
- test/html/poignant.textile
|
160
158
|
- LICENSE.txt
|
161
159
|
- README.txt
|
162
|
-
- TODO.txt
|
163
160
|
test_files: []
|
164
161
|
rdoc_options: []
|
165
162
|
extra_rdoc_files: []
|
data/TODO.txt
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
h1. TODO
|
2
|
-
|
3
|
-
h2. PUNCTUATION
|
4
|
-
# Make sure autolink works with all punctuation
|
5
|
-
# Make the page urls ignore punctuation
|
6
|
-
# Refactor so that urls all created in single method
|
7
|
-
# Make sure that input fields are correctly escaped
|
8
|
-
|
9
|
-
h2. FEATURES
|
10
|
-
# Seb's attachment fix
|
11
|
-
# Page count automatic summaries
|
12
|
-
|
13
|
-
h2. RECENT CHANGES
|
14
|
-
# Fix changes view (and associated recent changes view) to deal with revision merges and deletes
|
15
|
-
# Alter Recent Changes to only merge change runs if they happen with X (12?) hours of each other?)
|
16
|
-
|
17
|
-
h2. RSS
|
18
|
-
# Check order of rss on new templates
|
19
|
-
# Make sure that default template doesn't require authentication for new rss feeds
|
20
|
-
# Make the recent changes feed put the name and time of changes
|
21
|
-
|
22
|
-
h2. SPEED
|
23
|
-
# Profile
|
24
|
-
# Allow caches to be saved to disk and re-loaded
|
25
|
-
## Pages
|
26
|
-
## Links
|
27
|
-
## Redcloth
|
28
|
-
|
29
|
-
h2. HELPERS
|
30
|
-
# Check mail import
|
31
|
-
# Check rss feed import
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'mail2wiki-helper'
|
2
|
-
|
3
|
-
@imap = Net::IMAP.new('imap.hermes.cam.ac.uk')
|
4
|
-
@imap.login( 'tamc2', 'iama8yes' )
|
5
|
-
|
6
|
-
@imap.select 'mcr notices'
|
7
|
-
|
8
|
-
message = Message.new( @imap, 1 )
|
9
|
-
|
10
|
-
p message.date
|
11
|
-
p message.subject
|
12
|
-
p message.textile
|
13
|
-
|
14
|
-
@imap.logout
|
15
|
-
@imap.disconnect
|
data/lib/soks-drb.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
#!/usr/local/bin/ruby
|
2
|
-
require 'drb'
|
3
|
-
|
4
|
-
def start_wiki( settings = {}, &automatic_agents )
|
5
|
-
|
6
|
-
$SETTINGS.merge! settings
|
7
|
-
$MESSAGES = YAML.load( IO.readlines("#{$SETTINGS[:root_directory]}/views/messages.yaml").join )
|
8
|
-
|
9
|
-
wiki = Wiki.new( "#{$SETTINGS[:root_directory]}/content" )
|
10
|
-
view = View.new( wiki, $SETTINGS[:name] )
|
11
|
-
|
12
|
-
Thread.new( automatic_agents, wiki, view ) do |block, wiki, view|
|
13
|
-
block.call( wiki, view )
|
14
|
-
end.priority = -2
|
15
|
-
|
16
|
-
DRb.start_service( 'druby://localhost:9001', view)
|
17
|
-
DRb.thread.join
|
18
|
-
|
19
|
-
$stderr.puts "Wiki started as DRb on druby://localhost:9001"
|
20
|
-
end
|
data/lib/soks-fcgi.rb
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
#!/usr/local/bin/ruby
|
2
|
-
require 'cgi'
|
3
|
-
require 'drb'
|
4
|
-
# Require authenticators
|
5
|
-
|
6
|
-
class CGI
|
7
|
-
def redirect( where )
|
8
|
-
print this.header( { 'Status' => '302 Moved', 'location' =>
|
9
|
-
'#{where}' } )
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
# Default settings moved to soks.rb
|
14
|
-
|
15
|
-
class WikiCgi
|
16
|
-
|
17
|
-
def initialize( cgi, wiki, settings )
|
18
|
-
@cgi, @wiki, @name, @wikiurl, @authenticators = server, wiki, settings[:name] , settings[:url] , settings[:authenticators]
|
19
|
-
end
|
20
|
-
|
21
|
-
def service( cgi )
|
22
|
-
case cgi.path_translated
|
23
|
-
# Redirect some cgis to static file servlet
|
24
|
-
when '/robots.txt', '/favicon.ico' ;
|
25
|
-
cgi.redirect( "#{@wikiurl}/attachment#{cgi.path_translated}")
|
26
|
-
# If cgi of the form /verb/pagename then execute the approriate method
|
27
|
-
when /\/(\w+?)\/(.+)/
|
28
|
-
verb, pagename = $1, $2
|
29
|
-
# authenticate cgi, response
|
30
|
-
if self.respond_to?( "do#{verb.capitalize}" )
|
31
|
-
self.send( "do#{verb.capitalize}", cgi, pagename, cgi.remote_user )
|
32
|
-
else
|
33
|
-
cgi.out { @wiki.view( pagename, verb, cgi.remote_user ) }
|
34
|
-
end
|
35
|
-
when /\/(.+)/ ; redirect( cgi, $1, 'view' ) # No verb given
|
36
|
-
when "/" ; redirect( cgi, "Home Page", 'view' ) # No page or verb given
|
37
|
-
end
|
38
|
-
|
39
|
-
#response['Content-Type'] ||= "text/html"
|
40
|
-
#response['Cache-control'] ||= 'no-cache'
|
41
|
-
#response['Pragma'] ||= 'no-cache'
|
42
|
-
end
|
43
|
-
|
44
|
-
def authenticate( cgi )
|
45
|
-
@authenticators.each do |path_regex,authenticator|
|
46
|
-
if cgi.path_translated.downcase =~ path_regex
|
47
|
-
authenticator.authenticate( cgi )
|
48
|
-
break
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
|
-
def redirect( cgi, pagename, verb = 'view' )
|
54
|
-
pagename = pagename.url_encode # Reformat into url encoding
|
55
|
-
cgi.redirect( verb ? "#{@wikiurl}/#{verb}/#{pagename}" : "#{@wikiurl}/#{pagename}")
|
56
|
-
end
|
57
|
-
|
58
|
-
def doWiki( cgi, pagename, person )
|
59
|
-
redirect( pagename.gsub(/([a-z])([A-Z])/,'\1 \2') )
|
60
|
-
end
|
61
|
-
|
62
|
-
def doFind( cgi, pagename, person )
|
63
|
-
cgi.out { @wiki.find( cgi.query['regex'].strip ) }
|
64
|
-
end
|
65
|
-
|
66
|
-
def doSave( cgi, pagename, person )
|
67
|
-
content = cgi.query["content"].to_s
|
68
|
-
newpagename = cgi.query["titleprefix"].to_s + cgi.query["newtitle"].to_s
|
69
|
-
@wiki.revise( pagename, content.gsub(/\r\n/,"\n"), person, newpagename) if content
|
70
|
-
redirect( newpagename )
|
71
|
-
end
|
72
|
-
|
73
|
-
def doRollback( cgi, pagename, person )
|
74
|
-
revision = cgi.query['revision'] ? cgi.query['revision'].to_i : nil
|
75
|
-
@wiki.rollback( pagename, revision, person ) if revision
|
76
|
-
redirect( pagename )
|
77
|
-
end
|
78
|
-
|
79
|
-
def doDelete( cgi, pagename, person )
|
80
|
-
@wiki.delete( pagename, person )
|
81
|
-
redirect( pagename )
|
82
|
-
end
|
83
|
-
|
84
|
-
def doUpload( cgi, pagename, person )
|
85
|
-
newpagename = cgi.query["titleprefix"].to_s + cgi.query["newtitle"].to_s
|
86
|
-
unless cgi.query['file'] == ""
|
87
|
-
@wiki.revise( pagename, upload( cgi.query['file'].filename[/[0-9A-Za-z.]*$/], cgi.query['file'] ) , person, newpagename )
|
88
|
-
else
|
89
|
-
@wiki.move( pagename, person, newpagename )
|
90
|
-
end
|
91
|
-
redirect( newpagename )
|
92
|
-
end
|
93
|
-
|
94
|
-
def doRss( cgi, pagename, person )
|
95
|
-
cgi.out { @wiki.view( pagename, 'rss', person ) }
|
96
|
-
# response["Content-Type"] = "text/xml"
|
97
|
-
end
|
98
|
-
|
99
|
-
private
|
100
|
-
|
101
|
-
def upload( filename, filedata )
|
102
|
-
path = "#{$SETTINGS[:root_directory]}/attachment/"
|
103
|
-
filename = unique_filename( path ,filename )
|
104
|
-
File.open( File.join( path, filename ), 'wb' ) { |file| filedata.list.each { |data| file << data } }
|
105
|
-
"/attachment/#{filename}"
|
106
|
-
end
|
107
|
-
|
108
|
-
def unique_filename( path, filename )
|
109
|
-
bits = filename.split(/\./)
|
110
|
-
while File.exist? File.join( path, filename )
|
111
|
-
if bits.length >= 1
|
112
|
-
bits[-2].succ!
|
113
|
-
else
|
114
|
-
bits[0].succ!
|
115
|
-
end
|
116
|
-
filename = bits.join('.')
|
117
|
-
end
|
118
|
-
filename
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
wiki = DRbObject.new( nil, 'druby://localhost:9001')
|
123
|
-
settings = wiki.settings
|
124
|
-
cgi = CGI.new
|
125
|
-
|
126
|
-
cgi = WikiCgi.new( cgi, wiki, settings )
|
127
|
-
cgi.service
|
Binary file
|